- This topic is empty.
August 6, 2009 at 9:14 pm #41842
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.
GuyAugust 7, 2009 at 6:54 am #48566ppaliasMemberAugust 7, 2009 at 1:32 pm #48567
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:
GuyAugust 8, 2009 at 11:20 am #48568bhuminMember
same requirement for me.
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..
thanksAugust 8, 2009 at 1:21 pm #48569ppaliasMember
I’d suggest entering the full path instead of ./ccd
You need to add the full CN instead of just patient, e.g patient.hospital.comAugust 10, 2009 at 12:30 pm #48570
Will give it a try.
Thanks ppalias.August 12, 2009 at 1:56 pm #48571bhuminMember
i did it. n its working like charm …
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.
thank u all..
sorry 4 my englishAugust 12, 2009 at 2:05 pm #48572
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.
- You must be logged in to reply to this topic.