J
J
Jores_T2017-02-13 16:47:10
openvpn
Jores_T, 2017-02-13 16:47:10

How to use OpenVPN and multiple IPs on a VPS?

Good afternoon.
The situation is as follows:
There is a KVM VPS with CentOS 7 on board.
Took with one more additional IP.
Installed OpenVPN, configured the config, launched it. The client successfully connected to IP1 and had IP1 at the output, then connected to IP2 and had IP2 at the output. Everything as I wanted. Decided to add 3 more IP addresses to the server, added.
Created eth0:1 eth0:2 eth0:3 configs in /etc/sysconfig/network-scripts/ respectively for new IPs.
And now, for some reason, when I connect to OpenVPN via any of the 5 IPs, I always have 1 IP at the output, which is eth0 in the main config
Tell me where I broke everything and how to return this correspondence - to which IP I connect, this and the output as external ?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question