Skip to contentSkip to conversation

return flow NAT table on POSTROUTING

DISCUSSION Amin Azez 2 participants 2 messages May 15, 2006 netfilter

lore
Share & tools
lore

Amin Azez

author
#0 lore raw

I've observed on kernel 2.6.11.7 that return flows for SNAT'd connections do not pass through the NAT chain in the POSTROUTING table.

They do however pass through the MANGLE chain in the POSTROUTING table.

Is this to be expected?

(Of course the original flow did pass through the NAT chain which is how the SNAT occurred).

Sam

#1 lore raw
Quoted 9 lines · Amin Azez

I've observed on kernel 2.6.11.7 that return flows for SNAT'd connections do not pass through the NAT chain in the POSTROUTING table.

They do however pass through the MANGLE chain in the POSTROUTING table.

Is this to be expected?

(Of course the original flow did pass through the NAT chain which is how the SNAT occurred).

Return traffic never goes through the NAT table, its too late to change the mappings once the connection has been established.