mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 08:46:58 +08:00
ocserv-fw: when called with --removeall exit immediately after action
This commit is contained in:
@@ -7,6 +7,7 @@ COMMENT="ocserv-fw"
|
||||
if test "$1" = "--removeall";then
|
||||
eval "$(iptables -S | grep "comment ${COMMENT}" | sed -e 's/-A/-D/g' -e 's/^-/iptables -/g')"
|
||||
eval "$(ip6tables -S | grep "comment ${COMMENT}" | sed -e 's/-A/-D/g' -e 's/^-/ip6tables -/g')"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if test "${REASON}" = "connect";then
|
||||
|
||||
Reference in New Issue
Block a user