creating multiple instances with open vpn

2
Creating multiple instances with OpenVPN kb.bodhost.com /creating-multiple-instances-on-a-dedicated-server-with-openvpn/ View all posts by Paul Lopez → In this tutorial we will see how to create multiple instances on dedicated server with OpenVPN! Depending on where you are, it happens that some ports are blocked or filtered. Rather than having each time to redo your configuration to adapt to the new port, it is easier to create a specific configuration port. It should be noted that since the recent version of OpenVPN, the application will default launch all configurations found in the file “/ etc / openvpn” that is to say, all the files in “.conf “. Now we will see the configuration part: The only prerequisite is that this configuration uses a different DHCP range and a different port. It is necessary to change the following lines: – port 443 – Server 10.9.0.0 255.255.255.0 Left a configuration file for port 443 and right for port 80: So there would be no conflict between the two configurations files. Thereafter it will add a new iptables to allow the new VPN NAT: iptables -t nat -A POSTROUTING -s 10.9.0.0/24 -o eth0 -j MASQUERAD

Transcript of creating multiple instances with open vpn

Page 1: creating multiple instances with open vpn

Creating multiple instances with OpenVPNkb.bodhost.com /creating-multiple-instances-on-a-dedicated-server-with-openvpn/

View all posts by Paul Lopez →

In this tutorial we will see how to create multipleinstances on dedicated server with OpenVPN!

Depending on where you are, it happens that some ports areblocked or filtered. Rather than having each time to redo yourconfiguration to adapt to the new port, it is easier to create aspecific configuration port.

It should be noted that since the recent version of OpenVPN,the application will default launch all configurations found inthe file “/ etc / openvpn” that is to say, all the files in “.conf “.

Now we will see the configuration part:

The only prerequisite is that this configuration uses a different DHCP range and a different port. It isnecessary to change the following lines:

– port 443

– Server 10.9.0.0 255.255.255.0

Left a configuration file for port 443 and right for port 80:

So there would be no conflict between the two configurations files. Thereafter it will add a new iptablesto allow the new VPN NAT:

iptables -t nat -A POSTROUTING -s 10.9.0.0/24 -o eth0 -j MASQUERAD

Page 2: creating multiple instances with open vpn

Thereafter we can ensure that both configurations are functional:

With this configurationmanagement, the management ofyour VPN will be more flexible!