Nyr / openvpn-install

OpenVPN road warrior installer for Ubuntu, Debian, AlmaLinux, Rocky Linux, CentOS and Fedora
MIT License
19.24k stars 4.91k forks source link

How to use more than 1 IP #302

Closed unstopabl3 closed 7 years ago

unstopabl3 commented 7 years ago

Hi, I've been using your script for a while and firstly I'd like to thank you for your effort and hard work.

Previously I was using your script on a VPS which had only 1 statis IP e.g 192.168.1.5 and that's what would show up when I would go to ipburger.com

Now I have installed the script on a new KVM based VPS which has CentOS 6.5 64 bits and I have a total of 3 IPv4 IPs in my account which I want to use with this script but can't figure out how to use them.

I want to be able to have 3 client/ovpn files each with a different IP address and when I connect using that file I should get that IP. I tried by re-running your script again it doesn't ask for a new IP and uses the same IP for all new users. Whereas I would like to assign different IP for different users. Previously with CentOS 5x and older OpenVPN versions I would make a new config file for each IP alongwith a new matching client file, make a new rule in iptable and run all the config files on the server listening for connections. Then I would just connect with the desired client.ovpn file and get a different IP.

Hope you can provide me with noob friendly answer.

Thanks very much.

Nyr commented 7 years ago

The process described of using per-client configurations is exactly what you need to do.

The script doesn't support that and given the global IPv4 exhaustion, that will likely continue to be the case.

lukebarone commented 7 years ago

As well, the IP you found "by ipburger" is a private IP address, meaning you won't be able to access it from outside your network, in order to connect to the server.

On Mon, May 1, 2017 at 10:45 AM, Nyr notifications@github.com wrote:

The process described of using per-client configurations is exactly what you need to do.

The script doesn't support that and given the global IPv4 exhaustion, that will likely continue to be the case.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Nyr/openvpn-install/issues/302#issuecomment-298384594, or mute the thread https://github.com/notifications/unsubscribe-auth/AGcIFhkmlKjESxeeEd8CfoYHKOAl8-yyks5r1hocgaJpZM4NNN5P .

unstopabl3 commented 7 years ago

@Nyr @lukebarone

Can one of you point me to an updated tutorial on how to install openvpn on centos 6.5 or 7 with the latest builds of openvpn such as 2.4.x as all the tutorials on the internet are outdated and don't work.

Nyr commented 7 years ago

EPEL has OpenVPN 2.4 available, so that's what the script will install in CentOS.

This is not the right place to ask for general OpenVPN help, use their forums for that.