Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


OpenVPN multiple IP routing
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.

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

  • teknolaizteknolaiz Member
    edited November 2015

    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.

    Thanked by 1nandika
  • exception0x876exception0x876 Member, Host Rep, LIR

    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.

Sign In or Register to comment.