SSH to router that is connected to a VPN

Hello,

00

My home router uses MerlimWRT and I need to access it remotely with SSH. It usually works fine, however whenever I connect the router to a VPN it refuses the ssh connection from external IPs (I can ssh when I am on my network, but can’t do that when I am outside). Any idea how to fix this?

00

Thanks

Are you using the OpenVPN on your router (I know Merlin FW has it)? If so, in VPN > VPN Server > Advanced Settings > Custom Configuration you will need to include:

push “route 192.168.1.0 255.255.255.0 192.168.1.1 1”

See the server options on the OpenVPN man page https://community.openvpn.net/openvpn/wiki/Openvpn24ManPage for

–route network/IP [netmask] [gateway] [metric]