LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   iptables & mac addresses (https://www.linuxquestions.org/questions/linux-security-4/iptables-and-mac-addresses-130294/)

freelinuxcpp 12-31-2003 04:28 AM

iptables & mac addresses
 
Hello every1
i d like to oblige everybody using my gateway to use a specific IP ( cause often the little smart guys we have change their IPs and do illegal stuff ) well i used this syntax with iptables
iptables -A INPUT -s ! 192.168.0.2 -m mac --mac-source 00:08:02:EB:6B:D7 -j DROP
the 192.168.0.2 was a machine that i used for tests i changed it's ip to 192.168.0.3 BUT !, the probleme is : iptables don't block all packets that's right the client machine wont surf over the net but it can send packet over the gatway such ICMP one , and when using IPs rather than nomral address we can even open URLs with the browser .... sounds like only the DNS stops working , is there any other way to get this working ?
thanx from the advence !

peter_robb 12-31-2003 04:48 AM

Have a read of this thread..
http://www.linuxquestions.org/questi...hreadid=128325

freelinuxcpp 12-31-2003 05:22 AM

Thanx peter , it's exactly what i need :)


All times are GMT -5. The time now is 03:16 PM.