To set up static IP for a client first set up client-config’s in server.conf
# EXAMPLE: Suppose the client # having the certificate common name "Thelonious" # also has a small subnet behind his connecting # machine, such as 192.168.40.128/255.255.255.248. # First, uncomment out these lines: client-config-dir client-configs |
Then create the directory “/etc/openvpn/client-configs
Then create a file with the name of the client that is connecting in this folder
(for instance “/etc/openvpn/client-configs/backup”)
#Give this machine 10.8.0.3 a a static ip
ifconfig-push 10.8.0.3 10.8.0.0 |
(Remember to replace with values that makes sense to you)