A Windows client would like to use a static IP (without using a DHCP server at ALL). Here is the Linux server config:
Code: Select all
port 1194
proto udp
dev tun
ca ca.crt
cert server.crt
key server.key # This file should be kept secret
dh dh2048.pem
server 10.0.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
client-config-dir /etc/openvpn/staticclients
#route 10.0.0.0 255.255.255.252
client-to-client
keepalive 10 120
tls-auth ta.key 0 # This file is secret
cipher AES-128-CBC # AES
comp-lzo
persist-key
persist-tun
status openvpn-status.log
verb 3
Code: Select all
ifconfig-push 10.0.0.8 10.0.0.9
Code: Select all
client
dev tun
proto udp
remote 192.x.x.x
resolv-retry infinite
nobind
persist-key
persist-tun
cipher aes-128-cbc
ca ca.crt
cert user.crt
key user.key
tls-auth ta.key 1
remote-cert-tls server
comp-lzo
verb 1
reneg-sec 0
ip-win32 manual
Thank you.