i have a server with 5 nics connected to a switch, and running GNS3 (cisco router emulator).
I need to block, in the server, the packets originated by the nics at layer 2 level (the nics are not configured with ip) so i have to block with ip tables, the outgoing traffic in every nic with its own mac address as source.
i have tried some commands like this but it does not work iptables -I "CHAIN-NAME" -m mac --mac-source "MAC-ADDRESS" -j "ACTION"
I'm using DEBIAN 7