Skip to contentSkip to conversation

iptables and mac filtering

DISCUSSION vlad f halilow 3 participants 3 messages Apr 8, 2006

lore
Share & tools
lore
#0 lore raw

Hi there. Please help with strange issuse. I have debian woody with 2.6.12 kernel + iptables.1.3.3. (unstable) under vmware workstation. I try to block connection to my PPPoE server (rp-pppoe) by mac-address of client. something like

#iptables -I INPUT -m mac --mac-source blablag -j DROP

. Line inserted showed by iptables -L -v -n but not block any IP-less requests from address specified. Ping or any IP protocols blocking success, but pppoe discovery, exchange and traffic pass the filter wthout any problem with no rule countr increment. How i can fix this thing? Or what i to do wrong?

#1 lore raw
Quoted 5 lines

. Line inserted showed by iptables -L -v -n but not block any IP-less requests from address specified. Ping or any IP protocols blocking success, but pppoe discovery, exchange and traffic pass the filter wthout any problem with no rule countr increment. How i can fix this thing? Or what i to do wrong?

IPTables is IP filtering tool, you should look at arptables for any 3 layer protocol MAC-filtering.

Signature · 1 line
Best regards, Oleg
#2 lore raw
In reply to vlad f halilow
Quoted 6 lines · vlad f halilow

Hi there. Please help with strange issuse. I have debian woody with 2.6.12 kernel + iptables.1.3.3. (unstable) under vmware workstation. I try to block connection to my PPPoE server (rp-pppoe) by mac-address of client. something like

Quoted 7 lines

#iptables -I INPUT -m mac --mac-source blablag -j DROP

. Line inserted showed by iptables -L -v -n but not block any IP-less requests from address specified. Ping or any IP protocols blocking success, but pppoe discovery, exchange and traffic pass the filter wthout any problem with no rule countr increment. How i can fix this thing? Or what i to do wrong?

You said it yourself. These are IP-less requests. They never make it up to the protocol levels where iptables operates. Yes, iptables can match on MAC addresses, but if the packet is handled entirely at the Data Link layer (MAC sublevel), iptables will never see it.

Signature · 1 line
Bob Nichols         Yes, "NOSPAM" is really part of my email address.