Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
24.1 Legacy Series
»
OpenVPN TAP Instance fails if server address not defined
« previous
next »
Print
Pages: [
1
]
Author
Topic: OpenVPN TAP Instance fails if server address not defined (Read 1435 times)
mkerost
Newbie
Posts: 4
Karma: 1
OpenVPN TAP Instance fails if server address not defined
«
on:
February 24, 2024, 07:20:25 pm »
I see that the old client/server OpenVPN configuration is deprecated in 24.1.2_1, so I tested out migrating my existing OpenVPN servers to the new Instance configuration. I run TAP connections between sites.
When converting over my old settings, the server would not start. It complained: "Options error: Parameter ca_file can only be specified in TLS-mode, i.e. where --tls-server or --tls-client is also specified."
This seems to be due to leaving the "Server (IPv4)" setting blank. When I provide a value (e.g., 10.0.47.0/24) it works.
My understanding is a Server IP is
not required for TAP connections
. My old configuration did not use a Server IP and worked. Perhaps my understanding is wrong here, and if so, perhaps Server IP should be a require setting so others don't get flummoxed.
On a side note, when I created the new OpenVPN instance, I went into Interface -> Assignments, and attempted to change the old OpenVPN interface to the new one, by changing the device in the drop down and pressing the save button. This gave me the following error: "You cannot set device bridge0 to interface opt5 because it cannot be a member of itself.". Is this related to the fact that in my bridge settings, I have the bridge device as a member of the bridge? Is this not a good thing to do?
Logged
muchacha_grande
Full Member
Posts: 219
Karma: 19
Re: OpenVPN TAP Instance fails if server address not defined
«
Reply #1 on:
March 06, 2024, 03:33:58 pm »
Hi mkerost, I'm facing the same problem since yesterday.
I was trying to migrate my legacy openvpn switched vpn to the new instance definition, but it seems that something is missing on the web configuration because, in addition to needing Server (IPv4), it doen't allow you to select the bridge interface nor the DHCP range to assign IP addresses to clients, as you can configure in the legacy page.
If you complete the Server (IPv4) network, it creates a tunnel VPN as if you were using a TUN VPN. I already tested it.
Logged
muchacha_grande
Full Member
Posts: 219
Karma: 19
Re: OpenVPN TAP Instance fails if server address not defined
«
Reply #2 on:
March 06, 2024, 04:52:50 pm »
I dig deeper into the issue and compared the configurations generated in both legacy and new definitions and I think there are a couple of miss configurations on the new instance approach. I'll open a ticket on github.
EDIT:
I opened a ticket on github and AdSchellevis is working on the issue.
«
Last Edit: March 07, 2024, 10:14:04 pm by muchacha_grande
»
Logged
mkerost
Newbie
Posts: 4
Karma: 1
Re: OpenVPN TAP Instance fails if server address not defined
«
Reply #3 on:
March 08, 2024, 12:32:51 am »
Thank you so much for posting this on github. You were able to dig much deeper into this than I was. I'll follow the thread there and post any feedback if the updates don't fix things.
Logged
franco
Administrator
Hero Member
Posts: 17668
Karma: 1611
Re: OpenVPN TAP Instance fails if server address not defined
«
Reply #4 on:
March 08, 2024, 11:42:43 am »
GitHub link for reference:
https://github.com/opnsense/core/issues/7302
Logged
muchacha_grande
Full Member
Posts: 219
Karma: 19
Re: OpenVPN TAP Instance fails if server address not defined
«
Reply #5 on:
March 11, 2024, 01:29:02 pm »
Hi @mkerost, this issue has been solved. If you would like to test it you may apply the patches "opnsense-patch 3d09a2c 59ce2706 46354f48 ac4bbb" assuming you are on OPNSense 24.1.3_1
I've tested and it worked perfect.
Cheers...
Logged
mkerost
Newbie
Posts: 4
Karma: 1
Re: OpenVPN TAP Instance fails if server address not defined
«
Reply #6 on:
March 11, 2024, 05:34:36 pm »
I'll try it out this weekend when our traffic is low. Crossing fingers
Logged
mkerost
Newbie
Posts: 4
Karma: 1
Re: OpenVPN TAP Instance fails if server address not defined
«
Reply #7 on:
March 16, 2024, 06:53:24 pm »
Worked perfectly. Thank you!
Logged
muchacha_grande
Full Member
Posts: 219
Karma: 19
Re: OpenVPN TAP Instance fails if server address not defined
«
Reply #8 on:
March 18, 2024, 03:55:15 pm »
Great... it's possible that the fix is included in the next update.
Logged
franco
Administrator
Hero Member
Posts: 17668
Karma: 1611
Re: OpenVPN TAP Instance fails if server address not defined
«
Reply #9 on:
March 18, 2024, 04:06:20 pm »
Correct, out later this week. Watch out for 24.1.4.
Cheers,
Franco
Logged
muchacha_grande
Full Member
Posts: 219
Karma: 19
Re: OpenVPN TAP Instance fails if server address not defined
«
Reply #10 on:
March 21, 2024, 09:28:42 pm »
Just for the record... With 24.1.4 update I was able to successfully migrate the VPNs (TUN and TAP) of one of my routers.
The resulting configuration was almost identical to the legacy one and worked perfect in term of functionality.
I'm now migrating the other routers.
Logged
franco
Administrator
Hero Member
Posts: 17668
Karma: 1611
Re: OpenVPN TAP Instance fails if server address not defined
«
Reply #11 on:
March 21, 2024, 09:39:48 pm »
yay
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
24.1 Legacy Series
»
OpenVPN TAP Instance fails if server address not defined