New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
OpenVPN multiple IP routing
Hi!
I have a VPS server with 4 public IP addresses. Ubuntu 14.04 os.
I've installed OpenVPN with the openvpn autoinstaller script I've found here.
I'd like to create separate client.ovpn files for separate IP addresses.
Eg: ip1.ovpn - routed thru 1.2.3.4
ip2.ovpn - routed thru 2.3.4.5
...
Is this possible using the autoinstaller?
Or additional manual configuration necessary?
Thank you for the help in advance.
Comments
Copy the server.conf, rename it, edit it and change the IP address and tun device. Do this again for every other IP address you have. Finally adjust the client.ovpn configurations so that these connect to the right IPs, too.
Edit: Oh and don't forget to update necessary firewall rules.
You can do it with just 1 server.conf.. But you will have to do it manually. Assign each client to static internal IP and then do source routing to corresponding public ip.