captainhook
Basic Pleskian
- Server operating system version
- CentOS 7
- Plesk version and microupdate number
- Plesk Obsidian 18.0.50 Update 2
Hi folks,
I am using Docker to run a few services, however I do NOT want the ports exposed to the internet. I am running CentOS 7 with firewalld, not Plesk's firewall product.
Does anyone know how to modify firewall rules using firewalld/firewall-cmd to block external access to Docker containers that are exposed?
There is a KB (https://support.plesk.com/hc/en-us/...-do-not-block-connections-to-Docker-container) which suggests adding iptables rules, however I am using firewalld and not plain iptables.
Here's my current firewall setup:
I do have a firewall zone called 'docker', but I'm not entirely sure what it's doing:
Thanks
I am using Docker to run a few services, however I do NOT want the ports exposed to the internet. I am running CentOS 7 with firewalld, not Plesk's firewall product.
Does anyone know how to modify firewall rules using firewalld/firewall-cmd to block external access to Docker containers that are exposed?
There is a KB (https://support.plesk.com/hc/en-us/...-do-not-block-connections-to-Docker-container) which suggests adding iptables rules, however I am using firewalld and not plain iptables.
Here's my current firewall setup:
Code:
[root@n1 x]# firewall-cmd --list-all
plesk (active)
target: default
icmp-block-inversion: no
interfaces: enp1s0
sources:
services: ssh
ports: 22/tcp 21/tcp 80/tcp 443/tcp 54297/tcp
protocols:
masquerade: no
forward-ports:
source-ports:
icmp-blocks:
rich rules:
rule family="ipv4" source address="0.0.0.0/0" destination address="x.x.x.x/32" port port="8443" protocol="tcp" accept
I do have a firewall zone called 'docker', but I'm not entirely sure what it's doing:
Code:
[root@n1 x]# firewall-cmd --list-all-zones
....
docker (active)
target: default
icmp-block-inversion: no
interfaces: br-f7932280dd8a docker0
sources:
services:
ports:
protocols:
masquerade: no
forward-ports:
source-ports:
icmp-blocks:
rich rules:
...
Thanks