Le 03/09/2023 à 15:23, Jason Long a écrit :
Hello,
As I said, I have some scenario and I want to learn more.

By abusively relying on others? Strange way to achieve your goals.


Do you mean "ccd-exclusive"? If yes, then I edited the Server.conf as below:

ifconfig 20.1.0.1 255.255.255.0
mode server
tls-server
client-config-dir ccd
ccd-exclusive

And:

# cat ccd/client
10.0.2.0 255.255.255.0
ifconfig-push 20.1.0.202 20.1.0.201


After it, a client whose CN name is "client", always takes IP address 
20.1.0.202. Am I right?

What's the first line for? Once again, read the f***ing docs: https://community.openvpn.net/openvpn/wiki/HOWTO#Configuringclient-specificrulesandaccesspolicies


How can I give the IP address by MAC address?

Why would you do that if you can use the certificate for the same purpose? At least give a plausible reason why the CN would suit your needs.

Bruno



_______________________________________________
Openvpn-users mailing list
Openvpn-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-users

Reply via email to