Every time I connect to my VPN, I should run
sudo ifconfig ppp0 mtu 1300
How could I make it permanent?
I am using Ubuntu 14.04.
Every time I connect to my VPN, I should run
sudo ifconfig ppp0 mtu 1300
How could I make it permanent?
I am using Ubuntu 14.04.
I've tried to apply Farshad's solution on ubuntu 16, and it wasn't working.
Only small fix was needed there - remove sudo
inside your script, because everything inside /etc/network/if-up.d/
dir is already run as root user
#!/bin/sh
if [ "$IFACE" = "ppp0" ]; then
ifconfig ppp0 mtu 1300
fi
You can define the mtu
setting inside the /etc/ppp/options
file. The setting should already be present in the options
file but should be commented out by default.
as farshad said in following link:
the answer is add new file inside /etc/network/if-up.d/:
#!/bin/sh
if [ "$IFACE" = "ppp0" ]; then
sudo ifconfig ppp0 mtu 1300
fi