Is it possible to setup the ZS OpenVPN client IP assignment as static ? I’ve tried using the –persist-local option on the client side but sometimes the IP address will change. It would be nice if I could set the IP address assignment on the server (ZS box) side of things that way clients login in would ALWAYS get the same IP.
But how would I do it in Zeroshell ? It’s not a standard openvpn install.
I’ve added this to the ZS Openvpn command line parameters (via GUI):
Then went to /DB/_DB.001/var/register/system/openvpn and created a ccd directory. I then created a file that matches it CN of a specific client (ie:patient) in the ccd directory. Added this line to the file:
please help with OpenVPN static IP. as i have one MYSQL server behind ZS. and using my application with Openvpn. first my clients connect from WAN side to Openvpn and then they use MYSQL.
( MYSQL server is also connected as client to Openvpn )
now i want static IP only for MYSQL server.
how can i do this in ZS. or is there any other way plz help..
created CCD folder in /DB/_DB.001/var/register/system/openvpn/ccd , create a file “USER ID” then add a line in to that file ” ifconfig-push xxx.xxx.xxx.xxx 255.255.255.0 “
and just put a line in ZS vpn Command Line Parameters ” –client-config-dir /DB/_DB.001/var/register/system/openvpn/ccd ” …. thats all.
Worked for me too.
Did as bhumin stated. Works great.
Thing to remember:
1. the full or complete path to the ccd directory (see bhumin’s post)
2. the file name has to be the same as the client’s CN. This can be determined in the X.509 CA section, selecting a user and clicking on manage. The user’s CN is at the top.