K
K
ka-may2021-08-06 12:23:29
openvpn
ka-may, 2021-08-06 12:23:29

How to give an openVPN client an IP from a predefined pool?

Server config:

port 1194
proto udp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh.pem
duplicate-cn
server 10.8.0.0 255.255.255.0
route 10.8.1.0 255.255.255.0
route 10.8.2.0 255.255.255.0
client -config-dir "C:\\Program Files\\OpenVPN\\client-conf\\"
crl-verify "C:\\Program Files\\OpenVPN\\easy-rsa\\pki\\crl.pem"
keepalive 10 120
comp-lzo
persist-key
persist-tun
status openvpn-status.log
verb 3

There is a client configuration Administrator

ifconfig-push 10.8.1.1 10.8.1.2

Following which a tunnel is built for cn Administrator 10.8.1.1 <> 10.8.1.2

How can I set a pool of two addresses so that when the second client with cn Administrator connects, he would get the local address 10.8.1.3 and the remote 10.8.1.4

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Ruslan Fedoseev, 2021-08-06
@martin74ua

prohibit duplicate connections, give each user a specific address, fixed from the server side.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question