How to use my 2 server ips?

Business solution to host your own OpenVPN server with web management interface and bundled clients.
Post Reply
ohadb2
OpenVpn Newbie
Posts: 6
Joined: Thu Feb 16, 2017 1:31 pm

How to use my 2 server ips?

Post by ohadb2 » Tue Nov 07, 2017 7:08 am

Hi,

I have VPS with 2 different IP address.
How can I use my openvpn access server to use 2 of this ips?
I want 1 user for the first IP and 1 user to the second ip.

Thank you !

User avatar
novaflash
OpenVPN Inc.
Posts: 1073
Joined: Fri Apr 13, 2012 8:43 pm

Re: How to use my 2 server ips?

Post by novaflash » Tue Nov 07, 2017 8:48 am

That is actually not a scenario that the OpenVPN Access Server was designed for, sorry.
I'm still alive, just posting under the openvpn_inc alias now as part of a larger group.

ohadb2
OpenVpn Newbie
Posts: 6
Joined: Thu Feb 16, 2017 1:31 pm

Re: How to use my 2 server ips?

Post by ohadb2 » Tue Nov 07, 2017 2:09 pm

So how I can install 2 different openvpn servers in one machine?

User avatar
novaflash
OpenVPN Inc.
Posts: 1073
Joined: Fri Apr 13, 2012 8:43 pm

Re: How to use my 2 server ips?

Post by novaflash » Tue Nov 07, 2017 3:33 pm

OpenVPN Access Server doesn't support that, sorry.

The best you can do is enable the outgoing source NAT to use both IP addresses randomly when sending out traffic to the Internet.

cd /usr/local/openvpn_as/scripts/
./sacli --key "vpn.server.routing.snat_source.0" --value "eth0:123.45.67.88:123.45.67.89" ConfigPut
I'm still alive, just posting under the openvpn_inc alias now as part of a larger group.

ohadb2
OpenVpn Newbie
Posts: 6
Joined: Thu Feb 16, 2017 1:31 pm

Re: How to use my 2 server ips?

Post by ohadb2 » Tue Nov 07, 2017 3:47 pm

I saw that I can set in user settings "Select IP Addressing".
Maybe I can use this option to select which IP user will use?

Post Reply