Score:0

OpenVPN static IP and reserve it

us flag

I build OpenVPN server, and topology subnet config is used. I also want to assign static IPs to specific user. My question is how to keep this static IP from being given out to the rest of the users on the server. Say, the server setup is like that:

server 10.3.18.0 255.255.255.0
route-gateway 10.3.18.1
topology subnet
client-config-dir /etc/openvpn/client

then I put the following to /etc/openvpn/client/user1 (user1 is the client name):

ifconfig-push 10.3.18.10 255.255.255.0

thus, the user1 client will be assigned the IP is 10.3.18.10, while all other clients will (should) be assigned IPs of 10.3.18.2 -- 10.3.18.9 then 10.3.18.11 -- 10.3.18.254.

And I very afraid that IP=10.3.18.10 will one day also be assigned to any incoming client and user1 (if connect after that) will not be able to get that IP. Yes I can choose static (reserved) IP of 10.3.18.254, not .10, but this won't guarantee that 10.3.18.254 be reserved, right?

Please advice how to deal with that.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.