2017-01-26 17:38 GMT+01:00 bruno vianna <bruno(a)pobox.com>om>:
hello meshlings
LOL, hi!!!
i want to access a router through ssh. this would be
no problem if it were
connected directly to the internet on a wan port - dropbear is listening for
right ports.
the problem is that the router is behind another router - so instead of a
public ip address, it has a subnet address, like this:
internet
<->
isp router (which i don't have access to)
<->
lime router (wan port gets a subnet ip like 192.168.1.7)
if I have the public ip address of the isp router, and the local address
that the lime router got assigned, is there any way I can make some ssh
tunneling to reach the lime router? any ideas?
Does the "ISP router" have SSH?
In this case I would do like this:
ssh -L 7777:192.168.1.7:22 -p 333 admin(a)dyndns.of.your.isp.router.com
and then
ssh -p 7777 root@localhost
where:
192.168.1.7 is the IP of the LiMe router,
22 is the SSH/Dropbear port on LiMe router,
333 is the SSH port on the ISP router (if it's 22, you can omit the option),
admin is the account you have on the ISP router,
dyndns.of.your.isp.router.com is how to connect to ISP router, e.g. a
dynamic DNS,
7777 is a temporary port to be opened on your pc,
root is the account you want to open on LiMe router,
localhost is your pc.
If the ISP router doesn't have SSH you will have to ask to the LiMe
router owner to give you a way in...
For example a reverse SSH (with -R option) executed on LiMe router
pointing to a reachable SSH server.
Or including the LiMe router in a VPN (for this the GSoC idea about
integrating LibreNet6 with LiMe would be perfect to have).
Hope this helps!
Ciao,
Ilario