Answer the question
In order to leave comments, you need to log in
Tracing in IPTables?
Good day to ALL!
Let's say we have a raw table like this:
*raw
-P PREROUTING ACCEPT
-P OUTPUT ACCEPT
-A PREROUTING -i eth0 -s xxxx/32 -p tcp -m tcp --dport 12345 -j TRACE
-A OUTPUT -o eth0 -d xxxx /32 -p tcp -m tcp --sport 12345 -j TRACE
COMMIT
What does the "policy:2" in the "TRACE: raw:PREROUTING:policy:2" prefix mean?
Thank you.
Answer the question
In order to leave comments, you need to log in
https://gist.github.com/egernst/2c39c6125d916f8caa...
Note: If the matching rule number (3 for prerouting chain of raw table) is greater than the number of rules there, it means there wasn't a match for any of the rules and it is just returning to whomever called the chain.
came to this question too and dit some testing: policy:5 seem to refer to the fictitious last "rule" of your chain, where the policy is considered. so loonyuni's traced chain should have 4 explicit rules in it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question