Skip to contentSkip to conversation

Iptables bug?!

DISCUSSION Fabrizio Di Meo 2 participants 2 messages Feb 20, 2003 – Feb 21, 2003

lore
Share & tools
lore
#0 lore raw

Hi,

I'm using suse 7.3 and iptables v1.2.2.

Performing a prerouting operation like the folowing one:

iptables -t nat -A PREROUTING -p tcp --dport 139 -i ppp0 -j DNAT --to 192.168.1.5:139

I got an anomaly because even though it's really working fine it goes on to forward the packets when removed by this:

iptables -t nat -D PREROUTING -p tcp --dport 139 -i ppp0 -j DNAT --to 192.168.1.5:139

I couldn't explain that such iptables' behaviour....is here anyone who can?

Thank you,

Fabrizio

---------------------------------
Yahoo! Cellulari: loghi, suonerie, picture message per il tuo telefonino

#1 lore raw
Quoted 9 lines · Fabrizio Di Meo

Hi,

I'm using suse 7.3 and iptables v1.2.2.

Performing a prerouting operation like the folowing one:

iptables -t nat -A PREROUTING -p tcp --dport 139 -i ppp0 -j DNAT --to 192.168.1.5:139

Quoted 8 lines

I got an anomaly because even though it's really working fine it goes on to forward the packets when removed by this:

iptables -t nat -D PREROUTING -p tcp --dport 139 -i ppp0 -j DNAT --to 192.168.1.5:139

I couldn't explain that such iptables' behaviour....is here anyone who can?

Very likely connection tracking still has 'live' connections, and it is allowing them to continue. If the connection is already ESTABLISHED then NAT will normally continue to function for that connection even if the rule that initiated it is removed.

j