I have a linux based router. I'm trying to create an iptable rule to redirect traffic for a specific client using its mac address. Here is the rule I have now (which isn't working):
iptables -t nat -A prerouting_lan -m mac --mac-source $mac -i br-lan -p tcp --dport 80 -j DNAT --to $ipaddr
What am I doing wrong? Any suggestions would be appreciated.
EV