Hi Everyone,
Is there anyone who can help me to assign static IP on OpenVPN using Ubuntu 12.04.
Here's my config on my server.conf:
port 1194
proto udp
dev tun
ca ca.crt
cert myserver.crt
key myserver.key # This file should be kept secret
dh dh1024.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
client-config-dir ccd
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 208.67.222.222"
push "dhcp-option DNS 208.67.220.220"
client-to-client
keepalive 10 120
comp-lzo
max-clients 10
persist-key
persist-tun
status openvpn-status.log
verb 3
mute 20
And I created a ccd directory and config:
mkdir /etc/openvpn/ccd
touch /etc/openvpn/ccd/username1
/etc/openvpn/ccd/username1:
Code:
ifconfig-push 10.8.0.9 10.8.0.10
But did not getting the IP I assigned it gives the dhcp availabale IP.
Hope someone can help me with this.
Thanks in advance