vpnkillswitch-off 251 Bytes
Newer Older
Jay Ta'ala's avatar
Jay Ta'ala committed
1
2
#!/bin/bash

3
4
sudo /usr/bin/ufw --force reset
sudo /usr/bin/ufw enable
Jay Ta'ala's avatar
Jay Ta'ala committed
5
6

# delete back rules from reset
7
sudo /usr/bin/rm /etc/ufw/*.rules.*
Jay Ta'ala's avatar
Jay Ta'ala committed
8
9

# reset to defaults and enable
10
11
sudo /usr/bin/ufw default deny incoming
sudo /usr/bin/ufw default allow outgoing