LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   How to block specific IPs? (https://www.linuxquestions.org/questions/linux-networking-3/how-to-block-specific-ips-308550/)

cranium2004 04-01-2005 05:35 AM

How to block specific IPs?
 
Hello,
I want to block specific IPs or allow specific IPs at Ethernet level. How can i do that? I dont want those blocked IP packets to reach IP layer instead reject them by NIC or any program after processing Ethernet layer?
If thats not possible then is there any way to allow packets with only specific HW address of NICs?

regards,
cranium.

marghorp 04-01-2005 07:23 AM

Use iptables and set a rule to reject the packets.

More info and iptables on http://www.netfilter.org/

cranium2004 04-01-2005 07:29 AM

But iptables works at IP layer. I want to block at Ethernet/ Link layer.

johnMG 04-01-2005 09:02 AM

Maybe http://ebtables.sourceforge.net/ ?


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