mirror of
https://gitlab.com/shorewall/code.git
synced 2025-01-29 08:59:15 +01:00
Add error message when iptables cannot be found by determine_capabilities()
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@7928 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
b030624c68
commit
de449ad878
@ -1013,11 +1013,16 @@ determine_capabilities() {
|
||||
|
||||
[ -n "$IPTABLES" ] || IPTABLES=$(mywhich iptables)
|
||||
|
||||
if [ -z "$IPTABLES" ]; then
|
||||
echo " ERROR: No executable iptables binary can be found on your PATH" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
qt $IPTABLES -F $chain
|
||||
qt $IPTABLES -X $chain
|
||||
if ! $IPTABLES -N $chain; then
|
||||
echo " ERROR: The command \"$IPTABLES -N $chain\" failed" >&2
|
||||
exit 1;
|
||||
exit 1
|
||||
fi
|
||||
|
||||
qt $IPTABLES -A $chain -m conntrack --ctorigdst 192.168.1.1 -j ACCEPT && CONNTRACK_MATCH=Yes
|
||||
|
Loading…
Reference in New Issue
Block a user