[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#516078: IP masquerade misbehaves on kernel-2.6.26



Hi Maarten,

I have just read your post and you are right. Unfortunately, I have had to work much more because I hadn't read your email. I excepcted to be notified by email, but I haven't. I have two nics

eth0 --> intranet static ip
eth1 --> internet dhcp ip

Although on both kernel 2.6.18-etch and 2.8.26-lenny eth1 MTU was 576 (X.25 network size) for some reason with the former kernel it worked, but with the latter it didn't. By setting up the right MTU size (1500 for my cable connection) everything works pretty good.

I found this article that was very helpful: http://adam.rosi-kessel.org/weblog/2009/02/25/iptables_router_failed_after_debian_lenny_upgrade_solved_by_setting_mtu

My solution was inspired in what says here http://www.debianadmin.com/change-mtu-maximum-transmission-unit-of-network-interface.html but I had to put this instead in my /etc/network/interfaces file:
...etc...
allow-hotplug eth1
iface eth1 inet dhcp
  post-up /sbin/ifconfig eth1 mtu 1500

I hope it helps anyone and again, thanks a lot Maarten for your help.

Best regards! :-)

PD: I have upgraded the pastebin links I pasted in my above posts. They were temporary and the new ones are permanent.
Test on 2.6.18-etch: http://pastebin.com/f24d02877
Test on 2.6.28-lenny: http://pastebin.com/f62e2ffe4





Más rápido, sencillo y seguro. Descárgate ya el nuevo Internet Explorer 8 ¡Es gratis!

Reply to: