I have setup a wireless AP and use DNSmasq for DHCP. The outgoing traffic is NATed and then tunneled such that the path MTU is about 1472.
The problem is that I am not able to ask the average wireless client to always change their MTU value when they connect. So is there a way to push this MTU value down to the clients when they connect?
I notice that by default the mtu discovery is turned off in linux:
Code:
~/$ cat /proc/sys/net/ipv4/ip_no_pmtu_disc
0
This MTU discovery seems to also be shut off by default in many other devices I have tried.
I also have found someone that posted an iptables rule:
Code:
/usr/sbin/iptables -t mangle -A POSTROUTING -p tcp --tcp-flags SYN,RST SYN -m tcpmss --mss 1421:65535 -j TCPMSS --clamp-mss-to-pmtu
but this iptables rule would appear to only benefit TCP traffic and not UDP.
I have also included an option to dnsmasq.conf file to set the MTU to 1472:
Code:
dhcp-option=ath0,26,1472
but this option seems to only work if the client also requests the MTU value when requesting an IP which none have seemed to do.
Is there anyway to force a client connecting to this AP to use an MTU of 1472?
Any help or ideas will be much appreciated.