Skip to contentSkip to conversation

iptables 2.6.38, can kernel erroneously bypass PREROUTING ?

DISCUSSION Martin Devera 2 participants 2 messages Sep 18, 2011 – Sep 19, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hello,

we have problem with high-bw router (1gbit, conntrack, nat, htb qos) where after some time (weeks) DNAT stops working. I tried to include "-t raw -A PREROUTING -i eth0" an it got ZERO hits
while -i eth1 has many.
Thus DNAT (in -t nat) doesn't work but interestingly conntrack (and thus
SNAT records) is ok - packets from eth0 sems to be routed.
Only they "somehow" skip all PREROUTING chains.. But from sources
I can find no way how only eth0 pkts could skip PREROUTING but still
be routed and contracked ... Anyone has a clue ?

A didn't more investigation as I had to reboot it - it always helps.

thanks, Martin

#1 lore raw

(netdev added to cc)

Quoted 11 lines · Martin Devera

we have problem with high-bw router (1gbit, conntrack, nat, htb qos) where after some time (weeks) DNAT stops working.
I tried to include "-t raw -A PREROUTING -i eth0" an it got ZERO hits while -i eth1 has many.
Thus DNAT (in -t nat) doesn't work but interestingly conntrack (and thus SNAT records) is ok - packets from eth0 sems to be routed. Only they "somehow" skip all PREROUTING chains.. But from sources I can find no way how only eth0 pkts could skip PREROUTING but still be routed and contracked ... Anyone has a clue ?

A didn't more investigation as I had to reboot it - it always helps.

Signature · 4 lines
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh