IPTables, Docker & Password Pusher #1433
Replies: 2 comments
-
Hi @Threepwood77 - Could you post the IPTables ruleset that you tried to apply? And also the nginx config. With that either I or someone from the community could try to recreate the issue and hopefully devise a fix. |
Beta Was this translation helpful? Give feedback.
-
Hello, server { my iptables rules (with many tests for docker ...) : iptables -t filter -F iptables -t filter -A OUTPUT -p udp --dport 123 -j ACCEPT iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT iptables -t filter -A INPUT -p icmp -j DROP iptables -t filter -A OUTPUT -p tcp --dport 80 -j ACCEPT Dockeriptables -A INPUT -p tcp --dport 443 -j ACCEPT thank you ! |
Beta Was this translation helpful? Give feedback.
-
Hello everyone,
I have a problem with my deployment.
the docker works, I use a nginx reverse proxy, everything works, it's perfect.
however, i'd like to secure access to the host machine with iptables (debian).
I've tried opening ports 5100 for localhost access, and ports 80 and 443 for public Internet access, but there's nothing I can do when access generates a timeout:
504 Gateway Time-out
nginx/1.18.0
when I disable all iptables rules, no problem, it works.
any idea of the rules that might be needed for this to work ?
thanks for your help.
Beta Was this translation helpful? Give feedback.
All reactions