EBT=/sbin/ebtables
NET=eth1
OUT=eth0
cat $the_mac_acl | while read -r ip mac; do
if [ "$ip" != "" ]; then
echo $EBT -A FORWARD -p IPv4 -o $OUT --ip-src $ip -s ! $mac -j DROP
echo $EBT -A FORWARD -p IPv4 -i $NET --ip-dst $ip -d ! $mac -j DROP
fi
done;
Label: bash, iptables
diposting oleh Unknown #
00:41