Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Jay Ta'ala
killswitch
Commits
5cec7dfe
Commit
5cec7dfe
authored
Mar 20, 2019
by
Jay Ta'ala
Browse files
Refactor to enable ufw right after reset.
parent
3be0553a
Changes
1
Show whitespace changes
Inline
Side-by-side
vpnkillswitch-off
View file @
5cec7dfe
#!/bin/bash
#!/bin/bash
sudo
ufw
--force
reset
sudo
ufw
--force
reset
sudo
ufw
enable
# delete back rules from reset
# delete back rules from reset
sudo rm
/etc/ufw/
*
.rules.
*
sudo rm
/etc/ufw/
*
.rules.
*
...
@@ -8,4 +9,3 @@ sudo rm /etc/ufw/*.rules.*
...
@@ -8,4 +9,3 @@ sudo rm /etc/ufw/*.rules.*
# reset to defaults and enable
# reset to defaults and enable
sudo
ufw default deny incoming
sudo
ufw default deny incoming
sudo
ufw default allow outgoing
sudo
ufw default allow outgoing
sudo
ufw
enable
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment