Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Virtual private networks
»
OpenVPN Instances
« previous
next »
Print
Pages: [
1
]
Author
Topic: OpenVPN Instances (Read 1735 times)
opn_nwo
Jr. Member
Posts: 70
Karma: 0
OpenVPN Instances
«
on:
September 15, 2023, 10:23:41 pm »
What's the advantage of using this instead of the "old way". I have 2 different servers running on different ports just fine. Also why in the instance config page I can't select a bind interface instead of an IP address.
Logged
meschmesch
Full Member
Posts: 184
Karma: 5
Re: OpenVPN Instances
«
Reply #1 on:
September 19, 2023, 01:58:44 pm »
According to the Opnsense blog "The new OpenVPN instances pages and API create an independent set of instances more closely following the upstream documentation of OpenVPN. Legacy client/server settings cannot be managed from the API and are not migrated, but will continue to work independently." As far as I understood from other discussions, the old way may become completely replaced by the instances in the far future.
You can leave the bind interface empty, no need to modify. The Server IP is set via "Server (IPv4)". This is self explanatory "This directive will set up an OpenVPN server which will allocate addresses to clients out of the given network/netmask. The server itself will take the .1 address of the given network for use as the server-side endpoint of the local TUN/TAP interface".
Logged
opn_nwo
Jr. Member
Posts: 70
Karma: 0
Re: OpenVPN Instances
«
Reply #2 on:
September 22, 2023, 06:46:57 pm »
Thanks for the reply. My issue with not having the interface as binding option is that my WAN is assigned through DHCP (cable home connection). Then I use Cloudflare dynamic DNS to resolve the name which I use for remote connections. The IP hasn't changed in almost two years, but there is always a chance it will.
Logged
meschmesch
Full Member
Posts: 184
Karma: 5
Re: OpenVPN Instances
«
Reply #3 on:
September 22, 2023, 09:54:42 pm »
You connect to your dyndns address from WAN, correct? Since openvpn 1194 binds to any interface and thus to WAN, you will always have a connection from outside to port 1194? Even in case the IP changes, dynamic DNS will point you to the correct new IP. I don't see why this should effect Openvpn?
Logged
opn_nwo
Jr. Member
Posts: 70
Karma: 0
Re: OpenVPN Instances
«
Reply #4 on:
September 26, 2023, 03:05:17 pm »
Fair enough, I'll try that. Thanks.
Logged
franco
Administrator
Hero Member
Posts: 17657
Karma: 1611
Re: OpenVPN Instances
«
Reply #5 on:
September 26, 2023, 03:13:34 pm »
Create loopback, set IP in a nonexistent private network. Listen with OpenVPN on this private IP. Use that as target IP with port forward on WAN and done. "any" works too but you can only use the port once globally then (it may matter in multi-WAN scenarios).
Cheers,
Franco
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
Virtual private networks
»
OpenVPN Instances