OPNsense Forum

Archive => 16.7 Legacy Series => Topic started by: PotatoCarl on September 12, 2016, 02:54:29 pm

Title: Fix IPs with OpenVPN?
Post by: PotatoCarl on September 12, 2016, 02:54:29 pm
Hi
I have issued with connection my Fritz!Box 7490 with OPNSense and I have the feeling that the configuration I used on my old 7390 is not "safe enough" for todays standard. So I wanted to connect directly one host behind the box with the OPNSense network via OPENVPN. Which works in fact fine. However, as I am relying on fixed IPs with my backup daemon, I would like to fix the IP4 address for this host when it dials in via OpenVPN.

I could not see any option for this. Can this be realized somehow? Otherwise I would have to generate a second server for "backbone hosts" instead.

Thanks
Title: Re: Fix IPs with OpenVPN?
Post by: fabian on September 12, 2016, 04:02:21 pm
There is an option for that in OpenVPN: ifconfig-pool-persist
You may need to add this in the advanced options if required.
Title: Re: Fix IPs with OpenVPN?
Post by: PotatoCarl on September 14, 2016, 09:57:25 am
Thank you for the answer. Just to confirm: I just add "ifconfig-pool-persist" in the "advanced" field in the openvpn server configuartion, correct? Can I select the IP or will it just be "it" from now own?

If the second option, what happens if all IP4s are used?

Thank you.
Title: Re: Fix IPs with OpenVPN?
Post by: fabian on September 14, 2016, 09:23:37 pm
no, the option needs a parameter (a filename)
Title: Re: Fix IPs with OpenVPN?
Post by: PotatoCarl on September 16, 2016, 03:49:04 pm
Sorry for asking stupid questions. I tried various forms additing it to the advance tabs, also looking up at OpenVPN homepage the options, but it is not accepted.

Can you give me an example for a correct line?

Thanks.