-
-
Save pedroamador/da65648314c2ed127df74081b8d5db36 to your computer and use it in GitHub Desktop.
Configure mtu inside wsl to avoid conectivity problems when using vpn
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
mkdir ~/start-scripts | |
cat <<EOF >> ~/start-scripts/change-mtu.sh | |
#! /bin/bash | |
ip link set dev eth0 mtu 1350 | |
EOF | |
chmod +x ~/start-scripts/change-mtu.sh | |
echo "sudo ~/start-scripts/change-mtu.sh" >> ~/.bashrc | |
sudo -i | |
echo "$USER ALL=NOPASSWD: $HOME/start-scripts/change-mtu.sh" | EDITOR='tee -a' sudo -n -e /etc/sudoers.d/mtu |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment