Author
Message
Viper8940 DD-WRT Novice Joined: 24 Jun 2019 Posts: 3
Posted: Mon Jun 24, 2019 16:59 Post subject: SSH into a VPN client router
I recently setup my ddwrt router as a VPN client.
I want to be able to control router settings remotely via ssh.
Not sure if I can do this remotely. If I am at home on my own network It works on lan ip but as soon as I get off my network I am unable to connect via wan ip.
Back to top
Sponsor
egc DD-WRT Guru Joined: 18 Mar 2014 Posts: 12909 Location: Netherlands
Posted: Mon Jun 24, 2019 18:05 Post subject:
If the VPN client is active you can not connect via the WAN for SSH etc.
The traffic coming in via the WAN is routed out via the VPN and the firewall will not allow that
There are several solutions available
the easiest to set up is Policy Based Routing, just enter the IP addresses you want to route via the VPN in the OVPN PBR field (use CIDR notation)
But there are several drawbacks like DNS leaks
Have a look here:
https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=1129398
and here:
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=318662 _________________ 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
Viper8940 DD-WRT Novice Joined: 24 Jun 2019 Posts: 3
Posted: Mon Jun 24, 2019 18:16 Post subject:
Thank you so much for your help!
What if I was to make the router a VPN server as well? That would tag you my wan ip I assume. Sorry for all the questions.
Back to top
egc DD-WRT Guru Joined: 18 Mar 2014 Posts: 12909 Location: Netherlands
Back to top