How to block non-1Gbps negotiation via SSH?

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Author Message
OpenSource Ghost
DD-WRT User


Joined: 14 Feb 2022
Posts: 50

PostPosted: Sat Sep 24, 2022 15:41    Post subject: How to block non-1Gbps negotiation via SSH? Reply with quote
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.
Sponsor
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12812
Location: Netherlands

PostPosted: Sat Sep 24, 2022 17:05    Post subject: Reply with quote
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 Wink

_________________
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
OpenSource Ghost
DD-WRT User


Joined: 14 Feb 2022
Posts: 50

PostPosted: Sat Sep 24, 2022 17:38    Post subject: Reply with quote
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?
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12812
Location: Netherlands

PostPosted: Sat Sep 24, 2022 17:51    Post subject: Reply with quote
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
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum