I have duall access l2tp connection to internet through router and pptp connection to my company's local network. Network Manager connects succesfully to vpn, but when I try to get some resources from company's network(for examle, clone git repository or connect to jira's dashboard), vpn connection breaks up with message(from syslog):
short read (-1): Message too long
whereas connection to moinmoin wiki causing no errors.
Ubuntu version: 12.10
1 Answer
Usually this issue happens because of high MTU(Maximum Transmission Unit) value. So the fix is to Change the MTU value in the NetworkManager.
Open System Settings -> Network
Under "Wired" select options and change the MTU to some lower value
Alternate way to change this settings is by editing the /etc/network/interfaces
and add the line MTU value.
mtu some_value_here
Now restart the networking /etc/init.d/networking restart
To check the current MTU value use the command /sbin/ifconfig
and look MTU in eth0
-
maybe I should check MTU in wlan0, because i'm using connecting through wifi? Dec 3, 2012 at 8:53
-
1This worked for me. Before it was on
automatic
(I guess this is something around1500
). After setting it to1000
, my connection was stable.– panmariFeb 25, 2016 at 12:18 -