I have a system that came with a firewall already in place. The firewall consists of over 1000 iptables rules. One of these rule is dropping packets I don't want dropped. (I know this because I did iptables-save followed by iptables -F and the application started working.) There are way too many rules to sort through manually. Can I do something to show me which rule is dropping the packets?
Tell me more
×
Unix & Linux Stack Exchange is a question and answer site for
users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.
|
|
|||
|
|
|
You could add a TRACE rule early in the chain to log every rule that the packet traverses. I would consider using How is the firewall built? It may be easier to look at the builder rules than the built rules. |
|||
|
|
Run |
|||||
|
|
Since
This way you will see only the rules that incremented. |
|||
|
|