Author |
Message |
finotti
|
|
Post subject: SSHing a machine using openvpn
Posted: 16.08.2012, 00:54
|
|
Joined: 2010-09-12
Posts: 493
Status: Offline
|
|
Dear all,
Is there a way to SSH to a machine running openvpn? (I can get the real IP, of course.)
I can see my router passing packages to the computer in my network, but it never connects.
Any ideas?
Thanks,
Luis |
|
|
|
|
|
slh
|
|
Post subject: RE: SSHing a machine using openvpn
Posted: 16.08.2012, 01:54
|
|
Joined: 2010-08-25
Posts: 962
Status: Offline
|
|
If you're running a VPN solution, you have access to the local LAN - and can ssh to the machine's local IP (or DNS address). Access restrictions of your LAN apply, unless you configured your VPN solution specifically to put road warriors into a walled subnet - but this depends on your local configuration. |
|
|
|
|
|
finotti
|
|
Post subject: RE: SSHing a machine using openvpn
Posted: 16.08.2012, 09:26
|
|
Joined: 2010-09-12
Posts: 493
Status: Offline
|
|
Thanks for the reply, slh.
But can I access the machine from outside the LAN? As I said, the connection request (from outside the LAN) reaches the router, the router passes the packet to the correct machine, but the connection doesn't get established. I see no message in the computer's logs about the attempted connection (using "LogLevel DEBUG3" in sshd_config). If stop the VPN tunneling, I can ssh without problems. |
|
|
|
|
|
slh
|
|
Post subject: RE: SSHing a machine using openvpn
Posted: 16.08.2012, 15:06
|
|
Joined: 2010-08-25
Posts: 962
Status: Offline
|
|
Running a VPN client changes the routing, in order to (typically) re-route everything through the VPN tunnel, you typically can reconfigure it to whitelist a local subnet. |
|
|
|
|
|
|
|
|