Home Page › Forums › Network Management › ZeroShell › OpenVPN – Host to LAN
- This topic is empty.
-
AuthorPosts
-
August 6, 2009 at 9:14 pm #41842
gbigras
MemberIs 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.
thanks
GuyAugust 7, 2009 at 6:54 am #48566ppalias
MemberAugust 7, 2009 at 1:32 pm #48567gbigras
MemberThanks.
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):
–client-config-dir ./ccd
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:
ifconfig-push
no go.
thanks again
GuyAugust 8, 2009 at 11:20 am #48568bhumin
Membersame 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..thanks
August 8, 2009 at 1:21 pm #48569ppalias
MemberI’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 #48570gbigras
MemberWill give it a try.
Thanks ppalias.August 12, 2009 at 1:56 pm #48571bhumin
Memberi 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 english
August 12, 2009 at 2:05 pm #48572gbigras
MemberWorked 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.Thanks 8)
Guy
-
AuthorPosts
- You must be logged in to reply to this topic.