OPNsense Forum

Archive => 22.1 Legacy Series => Topic started by: thefunkygibbon on February 18, 2022, 01:22:47 AM

Title: OpenVPN Client - Can't seem to set up
Post by: thefunkygibbon on February 18, 2022, 01:22:47 AM
Hi

I've gone through the process of setting up a ovpn client vpn to my provider.  This is connecting fine (apparently.. haven't manage to actually test it yet).    But i'm at a point in the guides I have found that I should be creating an interface 'ovpnc0' (so, presumably I can route certain traffic down that interface) but when I go to interface assignments and try to create a new interface, there isn't one there with that name.  Has something changed in the latest builds of OPNsense or is something just broken on my setup somehow?

thanks
Title: Re: OpenVPN Client - Can't seem to set up
Post by: franco on February 18, 2022, 08:17:35 AM
Hi, is this 22.1.1? If yes could be a side effect of https://github.com/opnsense/core/commit/5f6b380a33

# opnsense-patch 5f6b380a33

This historic code is a pretty mess.


Cheers,
Franco
Title: Re: OpenVPN Client - Can't seem to set up
Post by: thefunkygibbon on February 18, 2022, 08:22:05 AM
Yes it is latest version.
I can't be the only person who is using that and openvpn as a client though?? How would one even use openvpn client if it wasn't the way that I'm being told to set it up? 
Title: Re: OpenVPN Client - Can't seem to set up
Post by: franco on February 18, 2022, 08:24:17 AM
Listen to me please as I explained it above.


Cheers,
Franco
Title: Re: OpenVPN Client - Can't seem to set up
Post by: franco on February 18, 2022, 09:00:31 AM
Looks like a better fix https://github.com/opnsense/core/commit/c0467fb54ae1


Cheers,
Franco
Title: Re: OpenVPN Client - Can't seem to set up
Post by: thefunkygibbon on February 18, 2022, 12:20:47 PM
Quote from: franco on February 18, 2022, 08:24:17 AM
Listen to me please as I explained it above.

Cheers,
Franco


?? sorry?  I understand that you pointed to some github code and you said it was a mess of a code.  I don't understand your reply to me implying that i should read what you wrote and understand it like it was some kind of fix or something? looking at the link , what that is to do with me wondering why am i the only person who could be experiencing/talking about this?

with respect, sending some backend code to a non-coder and expecting them to understand it doesn't go very far to understand what you are talking about.   
Title: Re: OpenVPN Client - Can't seem to set up
Post by: seed on February 18, 2022, 12:27:39 PM
looking at: https://forum.opnsense.org/index.php?topic=26992.msg131068#msg131068

it seems like franco already released a hotfix for this issue.
Title: Re: OpenVPN Client - Can't seem to set up
Post by: franco on February 18, 2022, 01:19:55 PM
Quote from: thefunkygibbon on February 18, 2022, 12:20:47 PM
with respect, sending some backend code to a non-coder and expecting them to understand it doesn't go very far to understand what you are talking about.

Time to read up on opnsense-patch utility.

# man opnsense-patch

Test the patch that I provided for you.

# opnsense-patch 5f6b380a33

Give feedback if it solved the issue.

Easy. :)

All the niceties aside 22.1.1_3 already backed out the bad change because this took longer than expected the get some sort of feedback from a reporter.


Cheers,
Franco
Title: Re: OpenVPN Client - Can't seem to set up
Post by: thefunkygibbon on February 18, 2022, 02:04:15 PM
great stuff.  just done it. does it need a reboot or any services restarting to take effect?

opnsense-patch 5f6b380a33
Fetched 5f6b380a33 via https://github.com/opnsense/core
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|From 5f6b380a336f72dd058f495fb27d3734ab1beedd Mon Sep 17 00:00:00 2001
|From: Franco Fichtner <franco@opnsense.org>
|Date: Wed, 9 Feb 2022 09:03:32 +0100
|Subject: [PATCH] interfaces: get_interface_list() must exclude OpenVPN
|
|---
| src/etc/inc/util.inc | 2 ++
| 1 file changed, 2 insertions(+)
|
|diff --git a/src/etc/inc/util.inc b/src/etc/inc/util.inc
|index 0bf05060be..2546147bb3 100644
|--- a/src/etc/inc/util.inc
|+++ b/src/etc/inc/util.inc
--------------------------
Patching file etc/inc/util.inc using Plan A...
Reversed (or previously applied) patch detected!  Assuming -R.Hunk #1 succeeded at 861.
done
All patches have been applied successfully.  Have a nice day.

Title: Re: OpenVPN Client - Can't seem to set up
Post by: franco on February 18, 2022, 02:05:44 PM
Nope, works right away as it is only relevant for the GUI page rendering.


Cheers,
Franco
Title: Re: OpenVPN Client - Can't seem to set up
Post by: thefunkygibbon on February 18, 2022, 02:07:23 PM
great. I restarted openvpn service anyway and checked the interfaces and i now see ovpnc1 etc.  thanks. will carry on trying to get this set up shortly.  thanks :)
Title: Re: OpenVPN Client - Can't seem to set up
Post by: franco on February 18, 2022, 05:00:21 PM
thank you for the report of course :)