From 422db6c43b58f7a50a21ba397f810d3adec65dc3 Mon Sep 17 00:00:00 2001 From: Fabian Sauter Date: Sun, 1 Sep 2019 16:19:17 +0200 Subject: [PATCH] Added firewall rules --- vpnsetup_fedora.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/vpnsetup_fedora.sh b/vpnsetup_fedora.sh index 730ecc9..4982d83 100755 --- a/vpnsetup_fedora.sh +++ b/vpnsetup_fedora.sh @@ -371,6 +371,11 @@ logpath = /var/log/secure EOF fi +bigecho "Creating firewall rules..." +firewall-cmd --permanent --add-port=500/udp +firewall-cmd --permanent --add-port=4500/udp +firewall-cmd --reload + bigecho "Enabling services on boot..." systemctl --now mask firewalld 2>/dev/null @@ -435,4 +440,4 @@ EOF ## Defer setup until we have the complete script vpnsetup "$@" -exit 0 +exit 0 \ No newline at end of file