OpenVpn and SSH tunneling

1

2

first of all I'm a linux newbie and just rent my vps few days ago. I'm using this vps for ssh tunneling and web server (apache, php, etc).

Today I want to install openvpn but I'm bit confused that if I installed the openvpn can I still use ssh for tunneling?

Sometimes I may want to switch between them.

Thanks in advance.

June

Posted 2013-07-12T11:38:08.310

Reputation: 15

Yes you can have openvpn and ssh installed concurrently and have both working as tunnels. – Paul – 2013-07-12T13:52:43.517

Paul, please post your comment on the answer box so I can mark this resolved. – June – 2013-07-16T02:47:13.043

Answers

1

OpenVPN and ssh use different ports to interact with clients, and use different methods for tunnelling traffic.

OpenVPN works at an IP level, and uses routing to direct specific network traffic into the tunnel. This can include all traffic.

ssh tunnelling works at a TCP port level. A port is opened on the client, and any traffic send to the local port gets tunnelled across the ssh session to the remote server.

In most cases, these two forms of tunnelling can coexist, without interfering with each other.

Paul

Posted 2013-07-12T11:38:08.310

Reputation: 52 173