Answer the question
In order to leave comments, you need to log in
How to issue different external ip for each client?
I want to raise a VPN server on a VDS (vds will certainly have 3-5 white ips) that would give out its white ip to each login: pass bundle and this address would be permanently tied to a specific account
i.e. 1 server - 5 clients - 5 different addresses
Please tell me how to do this. On the example of OpenVPN.
Answer the question
In order to leave comments, you need to log in
You can raise 5 opevpn services.
For each white ip, one openvpn service, with its own config and its own clients and its own networks.
In the case of OpenVPN, clients connect to the white IP address of the server and receive gray IP addresses in the virtual private network - https://sergeysl.ru/freebsd-openvpn-client-static-ip/ What does it mean: "The VPN server issued its white ip"? Or do you mean access to the Internet of different clients from different IP addresses of the OpenVPN server?
The problem is not quite clear! Will your server act as a gateway for these five clients? Those.
1. client <-> server <-> Internet
or
2. client <-> Internet <-> server
If option 2, then no way (based on the VPN concept itself)
Softether is a thing in itself and has a very strange Japanese logic of work, think maybe normal openvpn is better
from your question, the task is not clear, but does the client need access from outside via this ip, if not, then {you can make a crutch, openvpn has scripts to run when connected client, you can write iptables SNAT in these scripts.
Option 2 pre-register all the rules and prescribe static addresses for clients using client-config-dir and push ifconfig}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question