Hi,

On 21/08/2023 08:12, Jason Long via Openvpn-users wrote:
Hello,
My server and client IP addresses are in range 10.0.2.X.
I created a CCD directory and create a file inside the folder. I wrote the 
below lines in this file:

iroute 10.0.2.0 255.255.255.0


Then, I opened the server.conf file and wrote these lines in it:

client-config-dir CCD
ccd-exclusive
route 10.0.2.2 255.255.255.0

I restarted the OpenVPN service and client connected to my OpenVPN server.

I changed the "iroute" and "route" IP addresses to something like 
"192.168.1.0", but why client can connect to my OpenVPN server?

Because there is a file in CCD having the same name as the client CN.
If such file does not exist, then the client won't be able to connect.

This is what ccd-exclusive does.


Cheers,


--
Antonio Quartulli


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

Reply via email to