bmf
November 18, 2017, 4:51pm
1
Hi,
I've got the following:
pc linux (192.168.1.10) => router LEDE (192.168.1.100) === bridged ====> modem (192.168.1.1) === ADSL ===> internet
my modem has port 23 (telnet) open to allow admin login for some basic commands.
I'm a programmer however my networking is shameful. How can I, on the PC, telnet to the modem?
I had tried steps in this post: [SOLVED] How to access the modem (which is in bridge mode)?
ifconfig uci get network.wan.ifname
:0 192.168.1.1 netmask 255.255.255.0
iptables -t nat -I POSTROUTING -o uci get network.wan.ifname
-d 192.168.1.0/24 -j MASQUERADE
but no joy.
shdf
November 18, 2017, 10:27pm
2
the correct way is here :
IT WORKS!
Finally!
The newly created modem interface must have a random IP in the modem's subnet and not the IP of the modem itself. That was what I was doing wrong!
Thank's a lot @moeller0 !
So... to sum up:
If the LEDE router is at 192.168.1.1 , set the modem at a different subnet, e.g 192.168.2.1
Create the modem interface in /etc/config/network
config interface 'modem'
option ifname 'eth1'
option proto 'static'
option ipaddr '192.168.2.100'
option netmask '255.255.25…
if its all on the same netmask just telnet -o 192.168.1.1, i would set my lan to another dhcp range though say like 192.168.2.1
192.168.1.1 192.168.2.1 192.168.2.2-50
Modem ----------->Bridged mode------->Router---------------------->Lan/Switches/PC/Server
forward dhcp acquire wan ip address range of hosts for dhcp server