Aston
July 20, 2024, 12:14pm
1
Hi guys
I have a GL-AR750 with OpenWrt 22.03.4 r20123-38ccc47687.
This device is setup on Access Point Mode and is connected to my network via WAN.
I need be able to disable/enable via SSH the LAN ports when I need.
Just the LAN ports, the router need to be able still connected to the internet via WAN.
Anyone can help with this?
Thanks
admon
July 20, 2024, 2:00pm
2
You can just start and stop SSH as you like.
But I would recommend to just have it active all time, since it's not an problem. Just go public key auth instead of password.
Aston
July 20, 2024, 9:54pm
3
Sorry, my sentence was incorrect.
I need disable the LAN ports and no the SSH.
1 Like
I wish we could. Or if someone knows how. I think this would be great for security if you're only using WiFi repeater mode
admon
July 21, 2024, 7:43am
5
Should be no problem at all, just run ifdown eth#
Aston
July 21, 2024, 10:37am
6
Is not working:
root@GL-AR750:~# ifconfig
br-lan Link encap:Ethernet HWaddr 94:83:C4:01:59:68
inet addr:192.168.3.108 Bcast:192.168.3.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8805 errors:0 dropped:1883 overruns:0 frame:0
TX packets:4102 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:867961 (847.6 KiB) TX bytes:454876 (444.2 KiB)
eth0 Link encap:Ethernet HWaddr 94:83:C4:01:59:68
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:9209 errors:0 dropped:185 overruns:0 frame:0
TX packets:4224 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1061202 (1.0 MiB) TX bytes:466464 (455.5 KiB)
Interrupt:4
eth1 Link encap:Ethernet HWaddr 94:83:C4:01:59:69
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:692 errors:0 dropped:0 overruns:0 frame:0
TX packets:9289 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:90714 (88.5 KiB) TX bytes:1812371 (1.7 MiB)
Interrupt:5
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:56 errors:0 dropped:0 overruns:0 frame:0
TX packets:56 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:6112 (5.9 KiB) TX bytes:6112 (5.9 KiB)
wlan0 Link encap:Ethernet HWaddr 94:83:C4:01:59:68
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:8364 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:1015743 (991.9 KiB)
wlan1 Link encap:Ethernet HWaddr 94:83:C4:01:59:69
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:8404 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:1022753 (998.7 KiB)
root@GL-AR750:~# ifdown eth1
Interface eth1 not found
root@GL-AR750:~# ifdown eth0
Interface eth0 not found