A few days ago I had posted that I was having problem on computers on my
LAN accessing some websites (security.debian.org, microsoft.com, etc.).
The problem was that the LAN laptop was working with MTU=1500. It is a
dual boot, WinXP and Debian Unstable.
In Windows, I changed the MTU values of the NIC permamently so that
works okay. However, in Debian, the default OS, I am not able to do so.
I tried putting "mtu 1490" in /etc/network/interfaces but that doesn't
take effect:
~$ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet dhcp
MTU 1490
WHen I boot, the laptop always has MTU=1500 and needs to be changed
manuallly:
$# ifconfig eth0 mtu 1490
1)How do I make this change permanent?
2) While reading about pppoe and MTU problems I disovered I can have a
rule in the FORWARD chain in iptables on my router machine (that
connects throug high speed modem and acts as a router) to fix this problem:
#--------------------------------------------
#now we use TCPMSS to clamp the MTU value to 1490. HS,18Oct2004.
$IPTABLES -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS \
--clamp-mss-to-pmtu
#--------------------------------------------
But this doesn't help (I just do /etc/init.d/networking restart and it
reload the iptables script, do I need to restart the router computer?).
BTW, I also have in this same firewall script(copied from internet):
#--------------------------------------------
#added by HSS, 28Jul2003.
#(from
http://194.242.45.189/robert/firewal...rules.ppp.html)
## FRAGMENTS
# I have to say that fragments scare me more than anything.
# Sending lots of non-first fragments was what allowed Jolt2 to
effectively "drown"
# Firewall-1. Fragments can be overlapped, and the subsequent
interpretation of such
# fragments is very OS-dependent.
# I am not going to trust any fragments.
# Log fragments just to see if we get any, and deny them too.
$IPTABLES -A INPUT -f -j LOG --log-prefix "IPTABLES FRAGMENTS: "
$IPTABLES -A INPUT -f -j DROP
#--------------------------------------------
Would this in anyway matter with the later rule of the TCPMSS?
Finally, I also discovered I can clamp the MTU to a lower value in
/etc/ppp/peers/dsl-provider by uncommenting this line:
#pty "/usr/sbin/pppoe -I eth0 -T 80 -m 1452"
But this also doesn't seem to solve the problelm.
Am I missing something here? Are the above two approaches
(iptables/dsl-provider) supposed work (one or the other)?
Thanks,
->HS