OPNsense Forum

Archive => 18.1 Legacy Series => Topic started by: bulmaro on May 18, 2018, 09:15:21 pm

Title: [SOLVED] Client Static IP addresses in OpenVPN
Post by: bulmaro on May 18, 2018, 09:15:21 pm
In the configuration of server1.conf, the line client-config-dir /var/etc/openvpn-csc/1, allows me to create each file with user name of openvpn client with the configuration.
ifconfig-push 10.8.4.5 10.8.4.6
This assigns the ip to the openvp client when signing the connection.

my problem is that when there is an update or restart of the computer, it deletes the created configuration file.
Some idea to keep the file created manually or some configuration can be configured.
Thank you for your attention, Regards
Title: Re: Client Static IP addresses in OpenVPN
Post by: guest15389 on May 19, 2018, 08:13:55 pm
My guess would be to add that to the Client Specific overrides in the advanced section.
Title: Re: Client Static IP addresses in OpenVPN
Post by: bulmaro on May 20, 2018, 01:38:07 am
thanks for the reference, solved.
VPN / OpenVPN / Client Specific Overrides

In case someone serves you