Skip to content

Commit

Permalink
Firewalld: remove masquerade (#1297)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakolehm committed Apr 16, 2019
1 parent 6400551 commit 15b7257
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/pharos/scripts/configure-firewalld.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ fi

firewall-cmd --permanent --add-service pharos-worker
firewall-cmd --permanent --add-source ipset:pharos --zone trusted
firewall-cmd --add-masquerade --permanent
if firewall-cmd --query-masquerade > /dev/null 2>&1 ; then
firewall-cmd --remove-masquerade --permanent
fi

if [[ "${RELOAD}" = "true" ]]; then
firewall-cmd --reload
Expand Down

0 comments on commit 15b7257

Please sign in to comment.