I need to setup a firewall between a server, and the clients on the intranet that filters access by MAC on the FORWARD chain.
The server has one NIC (on subnet 10.0.0.0/29), the firewall two NICs (one on subnet 10.0.0.0/29, the other one on subnet 18.104.22.168/23), and the client has one NIC (on subnet 22.214.171.124/23)
My goal is to be able to to forward only traffic from only a few MACs and drop the rest.
Right now I've iptables set as below:
iptables -P INPUT DROP iptables -P OUTPUT DROP iptables -P FORWARD DROP iptables -A FORWARD -m mac --mac-source 00:00:00:00:00:00 -j ACCEPT
When I check iptables I can see that there's traffic on the rule but I the ping I send is getting no reply.
Any ideas? Thanks in advance.