Hi all,
From what I understand, Tomato (Shibby) supports MAC Filtering, but only on the wireless devices, not on the wired devices. Is there a way to accomplish that through iptables or are there some other ways?
What I am trying to do is to have a list of certified home devices that are able to use the network. Other devices that are not on the certified list will not be able to do anything on the network. To do that, I have built an exception list with iptables where all the certified devices (MY-HOME-DEVICE-X) will have access on the wired network, and others will not be able to transfer anything:
iptables -t nat -A PREROUTING -i br0 -m mac --mac-source MY-HOME-DEVICE-1 -j ACCEPT
iptables -t nat -A PREROUTING -i br0 -m mac --mac-source MY-HOME-DEVICE-2 -j ACCEPT
iptables -t nat -A PREROUTING -i br0 -j DROP
With the iptables setup like above, MY-HOME-DEVICE-1 & 2 are working, but it's cutting off all other devices on both Wired and Wireless. Is that because both Wired and Wireless are bound to br0? If so, what interface should I pass in to the command just for the Wired connections?
Thanks very much.
From what I understand, Tomato (Shibby) supports MAC Filtering, but only on the wireless devices, not on the wired devices. Is there a way to accomplish that through iptables or are there some other ways?
What I am trying to do is to have a list of certified home devices that are able to use the network. Other devices that are not on the certified list will not be able to do anything on the network. To do that, I have built an exception list with iptables where all the certified devices (MY-HOME-DEVICE-X) will have access on the wired network, and others will not be able to transfer anything:
iptables -t nat -A PREROUTING -i br0 -m mac --mac-source MY-HOME-DEVICE-1 -j ACCEPT
iptables -t nat -A PREROUTING -i br0 -m mac --mac-source MY-HOME-DEVICE-2 -j ACCEPT
iptables -t nat -A PREROUTING -i br0 -j DROP
With the iptables setup like above, MY-HOME-DEVICE-1 & 2 are working, but it's cutting off all other devices on both Wired and Wireless. Is that because both Wired and Wireless are bound to br0? If so, what interface should I pass in to the command just for the Wired connections?
Thanks very much.