OpenVPN to VPN service with ssh connection to LAN
Posted: Wed Sep 23, 2015 8:38 am
I current have my router setup as an OpenVPN client connected to a VPN service (PIA) using the guide in these forums. What I would also like to be able to do is open up a port, say 443, in order that I can ssh into a machine on the LAN whilst I am away from home. My issue is that currently, with all traffic configured to go through the VPN connection in order to prevent traffic escaping if the connection breaks, I am unable to connect externally to the network.
I am guessing that the solution to my problem may lie in routing and some other configuration changes but I am totally out of my depth in this regard, could somebody please advise on what is required?
I am guessing that the solution to my problem may lie in routing and some other configuration changes but I am totally out of my depth in this regard, could somebody please advise on what is required?
Code: Select all
client
dev tun
proto udp
remote aus.privateinternetaccess.com 1194
resolv-retry infinite
nobind
persist-key
persist-tun
tls-client
remote-cert-tls server
auth-user-pass /etc/openvpn/auth.txt
comp-lzo
verb 1
ca /etc/openvpn/local_ca.crt
cert /etc/openvpn/local.crt
key /etc/openvpn/local.key