mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-24 07:08:53 +01:00
Avoid annoying 'ipset:not found' message
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@2392 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
fbabd7d6ef
commit
f3ea3c7edb
@ -6368,14 +6368,16 @@ determine_capabilities() {
|
|||||||
qt $IPTABLES -t mangle -X fooX1234
|
qt $IPTABLES -t mangle -X fooX1234
|
||||||
|
|
||||||
|
|
||||||
qt ipset -X fooX1234 # Just in case something went wrong the last time
|
if qt which ipset; then
|
||||||
|
qt ipset -X fooX1234 # Just in case something went wrong the last time
|
||||||
|
|
||||||
if qt ipset -N fooX1234 iphash ; then
|
if qt ipset -N fooX1234 iphash ; then
|
||||||
if qt $IPTABLES -A fooX1234 -m set --set fooX1234 src -j ACCEPT; then
|
if qt $IPTABLES -A fooX1234 -m set --set fooX1234 src -j ACCEPT; then
|
||||||
qt $IPTABLES -D fooX1234 -m set --set fooX1234 src -j ACCEPT
|
qt $IPTABLES -D fooX1234 -m set --set fooX1234 src -j ACCEPT
|
||||||
IPSET_MATCH=Yes
|
IPSET_MATCH=Yes
|
||||||
|
fi
|
||||||
|
qt ipset -X fooX1234
|
||||||
fi
|
fi
|
||||||
qt ipset -X fooX1234
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$PKTTYPE" ]; then
|
if [ -n "$PKTTYPE" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user