Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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

Good day! I need to configure openvpn on server with one IP (, for multiple networks, for example:

Network 1 computers:

Network 2 computers:


I need an advice on how to do that.

share|improve this question
up vote 1 down vote accepted

Indeed you will want to start OpenVPN will multiple configs which reside in /etc/openvpn. Please take note that you'll need to make sure that port #### will have to have a different value for each configuration and that you'll be using, as well as those ports opened up on your firewall.

Also, please note that the 125.16/16 subnet is not allocated for personal use. If you use that space in your configuration it will interfere with connectivity to those actual machines. For internal network purposes you'll want to use the subnets listed here:  (10/8 prefix)  (172.16/12 prefix) (192.168/16 prefix)

Simple config modifications would be as follows:

Config 1:

port 1194

Config 2:

port 1195
share|improve this answer

You can start openvpn with 2 config files (by default it starts all the config files in the /etc/openvpn directory) so you will have 2 vpn and you configure each one with a different subnet.

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.