Finish MACLIST_TABLE implementation

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@2816 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2005-10-06 20:10:40 +00:00
parent a510a70124
commit 748375d12d

View File

@ -2770,7 +2770,7 @@ setup_mac_lists() {
have_mac_chain()
{
local result
case $MACLIST_TABLE in
filter)
havechain $1 && result=0 || result=1
@ -2894,7 +2894,7 @@ setup_mac_lists() {
done
;;
*)
run_itables -t mangle -A PREROUTING $(match_source_hosts $hosts) -m state --state NEW \
run_iptables -t mangle -A PREROUTING -i $interface $(match_source_hosts $hosts) -m state --state NEW \
$policy -j $(mac_chain $interface)
;;
esac