Author
Message
OpenSource Ghost DD-WRT User Joined: 14 Feb 2022 Posts: 50
Posted: Sat Sep 24, 2022 15:41 Post subject: How to block non-1Gbps negotiation via SSH?
What tools and commands can I use via SSH to block clients attempting sub-1Gbps negotiation? If client reduces its speed from 1Gbps to 100Mbps (in sleep mode or via "GreenEthernet"), then I want router to block that client.
Back to top
Sponsor
egc DD-WRT Guru Joined: 18 Mar 2014 Posts: 12881 Location: Netherlands
Posted: Sat Sep 24, 2022 17:05 Post subject:
swconfig will show you the link speed of the ports
You can see the MAC addresses and IP address/names of connected devices with arp -a which will give you an idea on what port they are connected.
Note some routers have their port numbered backwards so to be sure unplug the device and see on swconfig what the right port number is
Run a script every x seconds querying swconfig and use iptables to block the corresponding MAC addresses, should be easy to make _________________ Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read): https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
Back to top
OpenSource Ghost DD-WRT User Joined: 14 Feb 2022 Posts: 50
Posted: Sat Sep 24, 2022 17:38 Post subject:
I'd have to know how to write a script like that... I failed every time I tried to write a cron script (for anything)...
Shouldn't "ethtool" be able to fully control negotiation allowances?
Back to top
egc DD-WRT Guru Joined: 18 Mar 2014 Posts: 12881 Location: Netherlands
Posted: Sat Sep 24, 2022 17:51 Post subject:
I do not think we have a userspace utility, but I could be wrong.
Maybe entware has it ? _________________ Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read): https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
Back to top