kernel.lover wrote:
>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.
>
>
Iptables can reject packets based on the HW (MAC) address. Read the
firewall tutorials from
http://www.netfilter.org. But remember that most
ethernet cards allow you to change their MAC address from software (in
Linux: man ifconfig), which means that a user with some IT knowledge can
pass through your firewall if he hijacks the MAC address of a computer
which has access.
Mihai