Commit a510e08f authored by Joshua Tauberer's avatar Joshua Tauberer

enable ufw firewall again

I had previously awkwardly disabled it because on my VPS the necessary kernel
module wasn't available. I meant to make it an option, but instead I took
out the apt-get install. Now it works for me so I'm putting everything back.
parent 263fdb15
...@@ -15,11 +15,9 @@ apt-get -q -y install python3 ...@@ -15,11 +15,9 @@ apt-get -q -y install python3
apt-get install -q -y ntp fail2ban apt-get install -q -y ntp fail2ban
# Turn on the firewall. First allow incoming SSH, then turn on the firewall. Additional open # Turn on the firewall. First allow incoming SSH, then turn on the firewall.
# ports will be set up in the scripts that set up those services. Some virtual machine providers # Other ports will be opened at the point where we set up those services.
# (ehm, Rimuhosting) don't provide a kernel that supports ufw, so let advanced users skip it. apt-get -q -y install ufw;
if [ -z "$DISABLE_FIREWALL" ]; then ufw allow ssh;
ufw allow ssh; ufw --force enable;
ufw --force enable;
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment