From eef158bfb8b0ee80522b6ed89f00674cfe64e95d Mon Sep 17 00:00:00 2001 From: Teddysun Date: Thu, 26 Sep 2019 23:58:40 +0900 Subject: [PATCH] Update wireguard.sh --- wireguard.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wireguard.sh b/wireguard.sh index 72d5401..70761b1 100644 --- a/wireguard.sh +++ b/wireguard.sh @@ -369,7 +369,7 @@ set_firewall() { if [ "$(firewall-cmd --state | sed -r "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[mGK]//g")" = "running" ]; then default_zone="$(firewall-cmd --get-default-zone)" if [ "$(firewall-cmd --zone=${default_zone} --query-masquerade)" = "no" ]; then - _error_detect "firewall-cmd --zone=${default_zone} --add-masquerade" + _error_detect "firewall-cmd --permanent --zone=${default_zone} --add-masquerade" fi if ! firewall-cmd --list-ports | grep -qw "${SERVER_WG_PORT}/udp"; then _error_detect "firewall-cmd --permanent --zone=${default_zone} --add-port=${SERVER_WG_PORT}/udp"