Skip to contentSkip to conversation

Strange icmp nat problem

DISCUSSION Murat Demirten 2 participants 3 messages Sep 6, 2008 netfilter

lore
Share & tools
lore
#0 lore raw

Hi,

I have a very strange icmp nat problem with the kernel 2.4.17.

Here is the case:
- Our Linux 2.4.17 gateway up and running
- We start to ping a remote system from windows(local ip: 172.16.2.17) like that (ping -t foo.com)
- We just reboot the Linux gateway
- When the gateway is up and running again, windows client can not get ping response, still says timeout

When I sniff the icmp traffic on remote side (foo.com) I see that icmp echo request packets comes with an un-nated ip address:
172.16.2.17 > foo.com: icmp 40: echo request seq 43521

But as you can see, our gateway acts as a standart router, doesn't make any network address translation and just forwards packets with original source ip.

If we try same case with a Linux client, everything works fine, we can get the icmp echo response packets.

I tried http://www.mail-archive.com/[email protected]/msg00755.html
patch but doesn't change anything.

If I insert a rule like that:

iptables -I OUTPUT -p icmp -m state --state INVALID -j DROP

sometimes Windows clients start to work too (%50-50).

This problem doesn't exist kernel 2.4.30+ or 2.6.X

Anyone has a suggestion? Why kernel doesn't runs NAT routine for the packets generated by Windows?

#1 lore raw
Quoted 5 lines · Murat Demirten

This problem doesn't exist kernel 2.4.30+ or 2.6.X

Anyone has a suggestion? Why kernel doesn't runs NAT routine for the packets generated by Windows?

Well if it does not exist in newer versions, it's obviously a bugfix and time to upgrade.

#2 lore raw

We have to use 2.4.17 version and if anyone remember this bug past or know anything about this icmp nat problem it will be very helpful for me.

I searched all of the mailing list archives, googling etc. but found nearly nothing.

Regards,

Quoted 11 lines · Jan Engelhardt
Quoted 5 lines · Murat Demirten

This problem doesn't exist kernel 2.4.30+ or 2.6.X

Anyone has a suggestion? Why kernel doesn't runs NAT routine for the packets generated by Windows?

Well if it does not exist in newer versions, it's obviously a bugfix and time to upgrade.