Skip to content

Instantly share code, notes, and snippets.

@Swipe650
Last active August 12, 2018 13:48
Show Gist options
  • Save Swipe650/8f412e6906bfb1cd0a72c481d6df2bbb to your computer and use it in GitHub Desktop.
Save Swipe650/8f412e6906bfb1cd0a72c481d6df2bbb to your computer and use it in GitHub Desktop.
Disable VPN kill switch
#!/bin/bash
sudo ufw reset
sudo ufw default deny incoming
sudo ufw default allow outgoing
sudo ufw allow 1714:1764/udp
sudo ufw allow 1714:1764/tcp
sudo ufw allow 22/tcp
sudo ufw allow in 139,445/tcp
sudo ufw allow in 137,138/tcp
sudo ufw allow in 5556/tcp
sudo ufw allow in 5558/tcp
sudo ufw enable
if [ -e /home/swipe/.conky/fwon.png ]
then
mv /home/swipe/.conky/fwon.png /home/swipe/.conky/fwoff.png
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment