A
A
Anton2021-11-22 17:52:22
openvpn
Anton, 2021-11-22 17:52:22

How to allocate a separate ip for each VPN client?

Hello.
I purchased a VPS with 5 ip on one eth0 interface.
Script from here https://github.com/angristan/openvpn-install/ created 5 clients that connect to ip-1, and then through iptables their traffic goes to ip-2, ip-3, ip-4, ip-5 .

How to make each client connect to "its own" ip-x?

Now it turns out that all clients pour traffic on ip-1. Want to share.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
hint000, 2021-11-22
@hunk3r

Now it turns out that all clients pour traffic on ip-1. Want to share.
The speed from this will not increase, if you are talking about it. There is only one physical interface.
And so no one prevents the client from connecting to a different address, for this you need to specify a different address in the client configuration (open the config in a text editor and correct the address). Well, the server must listen on all addresses.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question