forked from extern/shorewall_code
Add output rules for routestopped hosts during 'start' and 'restart'
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@2690 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
0bf8e6b293
commit
09541c7260
@ -1955,7 +1955,7 @@ process_routestopped() # $1 = command
|
|||||||
interface=${host%:*}
|
interface=${host%:*}
|
||||||
networks=${host#*:}
|
networks=${host#*:}
|
||||||
$IPTABLES $1 INPUT -i $interface $(source_ip_range $networks) -j ACCEPT
|
$IPTABLES $1 INPUT -i $interface $(source_ip_range $networks) -j ACCEPT
|
||||||
[ -z "$ADMINISABSENTMINDED" ] && \
|
[ -z "$ADMINISABSENTMINDED" -o $COMMAND != stop ] && \
|
||||||
run_iptables $1 OUTPUT -o $interface $(dest_ip_range $networks) -j ACCEPT
|
run_iptables $1 OUTPUT -o $interface $(dest_ip_range $networks) -j ACCEPT
|
||||||
|
|
||||||
matched=
|
matched=
|
||||||
|
Loading…
Reference in New Issue
Block a user