[Techtalk] Block MAC Address
Mohammad Shakir
shakirz1 at hotmail.com
Fri Mar 21 17:24:54 EST 2003
# Flush all Rules
/sbin/iptables --flush
/sbin/iptables --table nat --flush
/sbin/iptables --delete-chain
/sbin/iptables --table nat --delete-cha
/sbin/iptables -N MACtest
# to block this MAC Address
/sbin/iptables -t filter -A FORWARD -j MACtest
/sbin/iptables -A MACtest -m mac --mac-source 00:11:22:33:44:55 -j DROP
# for transprent proxy
/sbin/iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j
REDIRECT --to-port 3128
# for MASQUREADE
/sbin/iptables --table nat --append POSTROUTING -s 192.168.0.0/24
--out-interface ppp0 -j MASQUERADE
echo "1" > /proc/sys/net/ipv4/ip_forward
I want to block a mac address, but this script is not blocking for it, any
idea?
_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail
More information about the Techtalk
mailing list