- Plesk Onyx for Linux
Plesk Firewall is enabled on the server.
Docker container is created and mapped to some port(i.e. Redis contained with port mapping 6379 -> 6379).
Plesk Firewall deny rules(for incoming, outgoing, forwarding) do not block connections to port 6379 from outside.
The issue is submitted as a bug PPPM-9222 which is planned to be fixed in one of the future Plesk updates.
As a workaround, add the following rule into iptables manually:
Connect to the server via SSH.
Add the rule to forward chain:
# iptables -I FORWARD -d 172.17.0.2 -p tcp --dport <DOCKER_CONTAINER_PORT> -j DROP
Where <DOCKER_CONTAINER_PORT> should be replaced with the appropriate container port number. For example:
# iptables -I FORWARD -d 172.17.0.2 -p tcp --dport 6379 -j DROP