Talk:Sharing ppp connection with wlan interface

From ArchWiki
Jump to: navigation, search

Connections suddenly timing out

I've been using this method for some time and noticed that sometimes a connection to a remote server stalls and times out for no apparent reason. It happens only with some particular servers. Just as if the server suddenly stopped sending data - even though everything works OK when connecting from the matchine with firewall. It turns out that some servers are misconfigured to report that they support PMTU discovery while in fact they ignore ICMP messages telling them that the packets are too large. You can find more information here:

The following iptables rule seems to be a good workaround:

iptables -A FORWARD -p tcp -m tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu

I did't want to add it to the article myself because I'm not sure if it is the best way to do this and if it does not have any undesirable side effects. It would be nice if someone could verify this and add it if it's OK. Cameel 00:10, 28 December 2010 (EST)