Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I set the iptables rules in default.

# IPTABLES IN DEFAULT
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD DROP

How will allow a certain mac address in a forward chain? I tried this code:

iptables -A FORWARD -m mac --mac-source 00:00:00:00:00:a00 -j ACCEPT

but it won't work.

When I set all iptables chain by default to ACCEPT and block a certain mac address will work.

iptables -I FORWARD 1 -m mac --mac-source 00:00:00:00:00:00 -j DROP
share|improve this question
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.