Hello, I’ve setup some web applications which can be reach by an nginx-proxy and that works fine. Now I want to close all ports except 80 and 443 for incoming requests. But I’m stucked.
I’ve restarted docker after configuring the firewall - as I read in some forums, but it didn’t help - ports where still reachable from outside.
My Question is: Did anybody successfully configured a firewalld on its centos7 and how?
My config consists of 2 zones public and trusted.
sudo firewall-cmd --zone=public --list-all public (active) target: default icmp-block-inversion: no interfaces: enp2s0 sources: services: ports: 80/tcp 443/tcp protocols: masquerade: no forward-ports: source-ports: icmp-blocks: rich rules: firewall-cmd --zone=trusted --list-all trusted (active) target: ACCEPT icmp-block-inversion: no interfaces: docker0 sources: services: ports: protocols: masquerade: no forward-ports: source-ports: icmp-blocks: rich rules: