Hi folks!
I have a teenager who refuses to stop gaming all night. He has a wire attached to the router (Wi-Fi latency is not good enough for gaming).
I wrote firewall rules to block all but certain mac addresses by night (my cellphone and laptop)
Today I found out he is doing mac address cloning (my cellphone) in order to continue gaming.
Is there a way to disable a physical switch port with swconfig and put in crontab?
swconfig dev switch0 help
switch0: ag71xx-mdio.0(Atheros AR8327), ports: 7 (cpu @ 0), vlans: 128
--switch
Attribute 1 (int): enable_vlan (Enable VLAN mode)
Attribute 2 (none): reset_mibs (Reset all MIB counters)
Attribute 3 (int): enable_mirror_rx (Enable mirroring of RX packets)
Attribute 4 (int): enable_mirror_tx (Enable mirroring of TX packets)
Attribute 5 (int): mirror_monitor_port (Mirror monitor port)
Attribute 6 (int): mirror_source_port (Mirror source port)
Attribute 7 (string): arl_table (Get ARL table)
Attribute 8 (none): apply (Activate changes in the hardware)
Attribute 9 (none): reset (Reset the switch)
--vlan
Attribute 1 (int): vid (VLAN ID (0-4094))
Attribute 2 (ports): ports (VLAN port mapping)
--port
Attribute 1 (none): reset_mib (Reset single port MIB counters)
Attribute 2 (string): mib (Get port's MIB counters)
Attribute 3 (int): enable_eee (Enable EEE PHY sleep mode)
Attribute 4 (int): pvid (Primary VLAN ID)
Attribute 5 (string): link (Get port link information)
Notice that there is no disable option.
Connected port is #5
Port 5:
mib: Port 5 MIB counters
RxBroad : 1126
RxPause : 0
..
..
TxDefer : 0
TxLateCol : 0
enable_eee: 0
pvid: 1
link: port:5 link:up speed:1000baseT full-duplex txflow rxflow auto
Any ideas?
Firmware Version OpenWrt Chaos Calmer 15.05 / LuCI (git-15.248.30277-3836b45)
Thanks!
Regards
