Skip to content
Advertisement

blocking all internal traffic except incoming traffic from a specific ip on a single port

I’m trying to use IPtables to block all internal traffic with the exception of one server, here are my rules but when i telnet from another instance i can still connect….

JavaScript

Advertisement

Answer

When debugging iptables I normally:

  • reset all the counter – ‘iptables -Z’
  • make the connection
  • then review the rule hits – ‘iptables -L -v -n |more’

This should give you some pointers as to which rule is passing the connection

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement