Howdy, Stranger!

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

Advertise on LowEndTalk.com

OpenVPN multiple IP routing
New on LowEndTalk? Please read our 'Community Rules' by clicking on it in the right menu!

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

    I'm on vacation in Belize.

  • exception0x876exception0x876 Member, Provider

    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.

    2x4GHz cores 200GB NVMe VPS for $9.99/mo, 8-core VPS for $11.99/mo, 32GB RAM VPS for $15.99/mo - wishosting.com

    Affiliate program

Sign In or Register to comment.