Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Virtual private networks
»
Trying to run wireguard and openvpn at the same time on opnsense 24.1
« previous
next »
Print
Pages: [
1
]
Author
Topic: Trying to run wireguard and openvpn at the same time on opnsense 24.1 (Read 1171 times)
ivarh
Newbie
Posts: 8
Karma: 0
Trying to run wireguard and openvpn at the same time on opnsense 24.1
«
on:
February 27, 2024, 11:49:53 am »
I have a 3 instance wireguard setup that is using /dev/run{0,1,2} and they are working fine
I am trying to set up an openvpn server in addition to these, but it seems to allocate /dev/tun1 to use as the tunnel device.
The error logged is: Cannot open TUN/TAP dev /dev/tun1: Device busy (errno=16)
I see no way I can override the tun device selected.
Does anyone know how to resolve this?
Logged
ivarh
Newbie
Posts: 8
Karma: 0
Re: Trying to run wireguard and openvpn at the same time on opnsense 24.1
«
Reply #1 on:
February 27, 2024, 12:19:40 pm »
I was able to resolve the issue by editing the confif.xml file to change <vpnid>1</vpnid> to <vpnid>3</vpnid>
under the section labelled
<openvpn>
<openvpn-server>
I think there might be a bug in opnsense if you mix Wireguard and OpenVPN on the same firewall
Logged
franco
Administrator
Hero Member
Posts: 17656
Karma: 1610
Re: Trying to run wireguard and openvpn at the same time on opnsense 24.1
«
Reply #2 on:
February 27, 2024, 02:12:50 pm »
On 24.1 wireguard interfaces can no longer be TUN interfaces since wireguard-go is gone so these do not interfere with OpenVPN at all.
Cheers,
Franco
Logged
tiermutter
Hero Member
Posts: 1095
Karma: 61
Re: Trying to run wireguard and openvpn at the same time on opnsense 24.1
«
Reply #3 on:
February 27, 2024, 02:26:12 pm »
Quote from: ivarh on February 27, 2024, 12:19:40 pm
I think there might be a bug in opnsense if you mix Wireguard and OpenVPN on the same firewall
Running two OVPN and two WG instances on the same device I have no issues... not with 24.1 nor with any other version
Logged
i am not an expert... just trying to help...
franco
Administrator
Hero Member
Posts: 17656
Karma: 1610
Re: Trying to run wireguard and openvpn at the same time on opnsense 24.1
«
Reply #4 on:
February 27, 2024, 02:29:22 pm »
It used to be a bit problematic between wireguard-go and openvpn both opening tun devices which have a unique numbering but openvpn and wireguard GUI parts didn't know so they thought they both "own" the same instance.
But wireguard-kmod was ok and is ok
Cheers,
Franco
Logged
ivarh
Newbie
Posts: 8
Karma: 0
Re: Trying to run wireguard and openvpn at the same time on opnsense 24.1
«
Reply #5 on:
February 28, 2024, 06:31:24 am »
Just upgraded to 24.1 and now wireguard no longer uses a tun device. However I now have a item in my plugin list that I cant delete that says: os-wireguard-go (missing) N/A N/A N/A N/A N/A.
Is there a way to remove this expired entry from the plugin list?
Logged
franco
Administrator
Hero Member
Posts: 17656
Karma: 1610
Re: Trying to run wireguard and openvpn at the same time on opnsense 24.1
«
Reply #6 on:
February 28, 2024, 07:32:50 am »
System: Firmware: Status: Resolve plugin conflicts -> Reset all local conflicts.
Cheers,
Franco
«
Last Edit: February 28, 2024, 08:02:40 am by franco
»
Logged
ivarh
Newbie
Posts: 8
Karma: 0
Re: Trying to run wireguard and openvpn at the same time on opnsense 24.1
«
Reply #7 on:
February 28, 2024, 07:49:04 am »
Thanks, I found it under:
Settings -> Firmware -> Status
Thanks again all for the help.
Regards,
Ivarh
Logged
franco
Administrator
Hero Member
Posts: 17656
Karma: 1610
Re: Trying to run wireguard and openvpn at the same time on opnsense 24.1
«
Reply #8 on:
February 28, 2024, 08:03:01 am »
Yep, sorry, typed from (bad) memory.
Cheers,
Franco
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
Virtual private networks
»
Trying to run wireguard and openvpn at the same time on opnsense 24.1