Quote:
Originally posted by DeployedOne
So your saying that as soon as I start using the "iptables -A INPUT -m mac --mac-source XX:XX:XX:XX:XX:XX -j ACCEPT" rule that is automaticaly drops all other MACs?
Thanks for your prompt response!
|
If your INPUT chain's global policy is ACCEPT or there isn't a rule after the mac match rule for DROPping all others then no. It won't drop `all the others'. Try
Code:
iptables -P INPUT DROP
iptables -A INPUT -m mac --mac-source XX:XX:XX:XX:XX:XX -j ACCEPT
for setting the global policy of INPUT chain
or
Code:
iptables -A INPUT -m mac --mac-source XX:XX:XX:XX:XX:XX -j ACCEPT
iptables -A INPUT -j DROP
for DROPping all the other packets that do not match with the first rule..