From: Mohammad Shakir Subject: How to Block Mac Address ? Date: Sat, 14 Jun 2003 23:56:22 -0700 (PDT) Sender: netfilter-admin@lists.netfilter.org Message-ID: <20030615065622.27723.qmail@web40707.mail.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0-2018361082-1055660182=:27585" Return-path: Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: To: netfilter@lists.samba.org --0-2018361082-1055660182=:27585 Content-Type: text/plain; charset=us-ascii I want to block a mac address for this I complie this rule but it is not working, any friend who can slove this problem. # 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:02:55:EE:65:D8 -j DROP # 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 --------------------------------- Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! --0-2018361082-1055660182=:27585 Content-Type: text/html; charset=us-ascii

I want to block a mac address for this I complie this rule
but it is not working, any friend who can slove this problem.


#  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:02:55:EE:65:D8 -j DROP

#  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


Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month! --0-2018361082-1055660182=:27585--