Multiple mac address parental control

I have seen two posts here back in 2019 about putting multiple mac addresses in a Parental Control firewall rule. Since this is 2021, I ask whether there has been development that allows for putting multiple mac addresses in a rule, as opposed to creating a rule for each device, which both posts suggests. This would be two rules for devices with wired and wireless network capacities. Seems a crazy solution. Any ideas, please? My current setup putting multiple mac addresses in a single rule does not work.

Thanks a lot.

uci add firewall rule
uci set firewall.@rule[-1].name="Filter-Parental-Controls"
uci set firewall.@rule[-1].src="lan"
uci add_list firewall.@rule[-1].src_mac="00:11:22:33:44:55"
uci add_list firewall.@rule[-1].src_mac="11:22:33:44:55:66"
uci add_list firewall.@rule[-1].src_mac="22:33:44:55:66:77"
uci set firewall.@rule[-1].dest="wan"
uci set firewall.@rule[-1].start_time="21:30:00"
uci set firewall.@rule[-1].stop_time="07:00:00"
uci set firewall.@rule[-1].weekdays="Mon Tue Wed Thu Fri"
uci set firewall.@rule[-1].target="REJECT"
uci commit firewall
/etc/init.d/firewall restart
4 Likes

Thanks a lot. This is very helpful to see what the rule looks like and to confirm the possibility of multiple macs on a single rule. thanks!

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.