OPNsense Forum

English Forums => General Discussion => Topic started by: discoverato on September 01, 2019, 08:55:13 PM

Title: OpenVPN server listening on specific interface in OPNsense.
Post by: discoverato on September 01, 2019, 08:55:13 PM
I would like to replicate a previous configuration I had in my handmade Debian router. I would like to access my domestic network through a VPN which I only access from a "cloud VPN". This is for various reasons, mostly because I do not want to have any open port on my domestic network.

I would like to configure my OPNsense in a way that a OpenVPN Server in OPNsense is listening on the interface of a OpenVPN client.

I have configured with no issue my OPNsense for being an OpenVPN client.  It connects to a 10.42.1.1 and gets a 10.42.1.2.

What I do not understand, is how to bind my OpenVPN Server to listen on interface 10.42.1.2. In the drop down menu I can only choose among WAN, LAN, WIFI, any, localhost.

(https://i.stack.imgur.com/XJcrN.png)

What can I do? Apparently, trying to add a new interface did not do the trick.

Maybe I am missing something with firewall and routing interfaces?

Thanks,

Title: Re: OpenVPN server listening on specific interface in OPNsense.
Post by: lfirewall1243 on September 10, 2019, 09:44:33 AM
Hi,

i think you have to add your VPN-Client first as an Interface (i think its named OVPNC1) after that you can choose it as interface when creating an OpenVPN Server.