Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Using Red hat linux/CentOS. Where I have 1 Public IP, that is accessible remotely via SSH. Now that server needs to connect one VPN Server so that VPN server can give one IP to our Server. Now from our server we need to then ping local ip such as 10.x.x.10 which is located behind there VPN server.

What VPN client do we use for such to achieve? What type of VPN client which allows to use such thing?

There are IPSec host to host and network to network but confusing is what means what? Do I just use IPSec host to host or I need to do network to network?

Another problem is if the VPN connection is made, how can I access my server remotely using SSH? Cause most of the time when VPN is connected then the public IP is not reachable anymore.

Can anyone advise for my CentOS/RHEL what type of VPN client I need to install and configure? (very confusing I know what I need but I do not know there standard names to explain my other end point ICT team).

share|improve this question
up vote 2 down vote accepted

A VPN network usually uses a different interface on your host so you can still use your other interface and public IP. So, you will still be able to access your SSH server as before.

The usual implementation used to set up a VPN network is openvpn (clientside and serverside). The whole configuration process is a bit long to be described entirely here and it depends on your specific needs. Here are three links to get you started.

The second link is from the Debian wiki but the configuration is identical for CentOS. The third link will give you specific details about openVPN installation on CentOS.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.