Fix IPs with OpenVPN?

Started by PotatoCarl, September 12, 2016, 02:54:29 PM

Previous topic - Next topic
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

There is an option for that in OpenVPN: ifconfig-pool-persist
You may need to add this in the advanced options if required.

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.

no, the option needs a parameter (a filename)

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.