Created
December 28, 2020 16:43
-
-
Save nareshkr22/d21117cf37a6f5b42dccb5dcb8d5fb55 to your computer and use it in GitHub Desktop.
UFW enable kill switch
This file contains 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 | |
sudo ufw disable | |
sudo ufw reset | |
sudo ufw allow in to 192.168.43.245/24 | |
sudo ufw allow out to 192.168.43.245/24 | |
sudo ufw default deny outgoing | |
sudo ufw default deny incoming | |
sudo ufw allow out on tun0 from any to any | |
sudo ufw allow in on tun0 from any to any | |
sudo ufw enable |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment