Commit 66f9deed authored by Alex's avatar Alex
Browse files

Firewall setup: Block all by default - ask if SSH should be allowed.

I am thinking it is better to block all incoming connection by default and ask user if SSH should be allowed.
parent 7cc6c15c
......@@ -60,9 +60,11 @@ hostnamectl set-hostname $hostname
# --
# Firewall
if zenity --question --title="Firewall" --text="Enable Firewall ? \n\nIf enabled a firewall is set up to allow incoming ssh traffic, blocking everything else." --ok-label="Yes" --cancel-label="No"; then
ufw allow ssh
if zenity --question --title="Firewall" --text="Enable Firewall?\n\nEnabling the firewall will block incoming connection by default. You will be asked whether to allow SSH." --ok-label="Yes" --cancel-label="No"; then
ufw enable
if zenity --question --title="Firewall - allow SSH" --text="Allow SSH?\n\nAdd an firewall rule to allow incoming SSH connection." --ok-label="Yes" --cancel-label="No"; then
ufw allow ssh
ufw disable
Supports Markdown
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