Fix 3.3 version of maclist snafu

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@4866 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2006-11-13 16:00:48 +00:00
parent a6f9d5b184
commit 1c08b71522

View File

@ -195,10 +195,9 @@ setup_mac_lists() # $1 = Phase Number
# #
# Generate jumps from the input and forward chains # Generate jumps from the input and forward chains
# #
[ -n "$POLICY_MATCH" ] && policy="-m policy --pol $ipsec --dir in" || policy=
for hosts in $maclist_hosts; do for hosts in $maclist_hosts; do
ipsec=${hosts%^*} ipsec=${hosts%^*}
[ -n "$POLICY_MATCH" ] && policy="-m policy --pol $ipsec --dir in" || policy=
hosts=${hosts#*^} hosts=${hosts#*^}
interface=${hosts%%:*} interface=${hosts%%:*}
hosts=${hosts#*:} hosts=${hosts#*:}