Hi guys,
I've been trawling everywhere, but unable to find a way to block a device via the CLI, that is then reflected in the GUI.
I'm trying to regulate my kid's XBox time... After detecting the XBox MAC address on the network, a timer will kick in and once expired I want to block the XBox as though I'd blocked it via the GUI. That way, when he is allowed extra time, I can unblock it (remotely) via the GUI.
I can see that when a device is blocked in the GUI, an iptables entry is created:
Chain FORWARD (policy DROP)
target prot opt source destination
DROP all -- anywhere anywhere MAC B0:BE:76:65:96:C6
and the MAC is appended to an NVRAM variable:
nvram get MULTIFILTER_MAC
admin@RT-AC86U:/jffs/scripts# nvram get MULTIFILTER_MAC
60:6D:C7:5D1:24>C0:33:5E3:17:54>B0:BE:76:65:96:C6
...but in the GUI it doesn't show as blocked.
Hmm... Seems I can go to the GUI and block (even though it already is) and then unblock, and it seems to behave.
Is there an easier way to block, via the CLI as per the GUI??
Cheers,
Jon
I've been trawling everywhere, but unable to find a way to block a device via the CLI, that is then reflected in the GUI.
I'm trying to regulate my kid's XBox time... After detecting the XBox MAC address on the network, a timer will kick in and once expired I want to block the XBox as though I'd blocked it via the GUI. That way, when he is allowed extra time, I can unblock it (remotely) via the GUI.
I can see that when a device is blocked in the GUI, an iptables entry is created:
Chain FORWARD (policy DROP)
target prot opt source destination
DROP all -- anywhere anywhere MAC B0:BE:76:65:96:C6
and the MAC is appended to an NVRAM variable:
nvram get MULTIFILTER_MAC
admin@RT-AC86U:/jffs/scripts# nvram get MULTIFILTER_MAC
60:6D:C7:5D1:24>C0:33:5E3:17:54>B0:BE:76:65:96:C6
...but in the GUI it doesn't show as blocked.
Hmm... Seems I can go to the GUI and block (even though it already is) and then unblock, and it seems to behave.
Is there an easier way to block, via the CLI as per the GUI??
Cheers,
Jon