Showing posts with label openvpn static ip. Show all posts
Showing posts with label openvpn static ip. Show all posts

Tuesday, May 3, 2011

Static IP for OpenVPN Clients

To set your vpn clients to have a static IP uncomment the line from the server config
client-config-dir /etc/openvpn/ccd
then create a directory...
# mkdir /etc/openvpn/ccd
then create a file in the /etc/openvpn/ccd directory with the same name as the created client certificate (ex Juan)
# vim /etc/openvpn/ccd/Juan
Below is a sample content:
ifconfig-push 192.168.1.20 255.255.255.0
Save it and restart your OpenVPN server...
# /etc/init.d/openvpn restart
You can create as many as you like as long the certificate is the same as the config file in ccd directory