OpenVPN Client - Can't seem to set up

Started by thefunkygibbon, February 18, 2022, 01:22:47 AM

Previous topic - Next topic
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

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

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? 

Listen to me please as I explained it above.


Cheers,
Franco


February 18, 2022, 12:20:47 PM #5 Last Edit: February 18, 2022, 12:26:14 PM by thefunkygibbon
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.   

looking at: https://forum.opnsense.org/index.php?topic=26992.msg131068#msg131068

it seems like franco already released a hotfix for this issue.
i want all services to run with wirespeed and therefore run this dedicated hardware configuration:

AMD Ryzen 7 9700x
ASUS Pro B650M-CT-CSM
64GB DDR5 ECC (2x KSM56E46BD8KM-32HA)
Intel XL710-BM1
Intel i350-T4
2x SSD with ZFS mirror
PiKVM for remote maintenance

private user, no business use

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

February 18, 2022, 02:04:15 PM #8 Last Edit: February 18, 2022, 02:07:08 PM by thefunkygibbon
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.


Nope, works right away as it is only relevant for the GUI page rendering.


Cheers,
Franco

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 :)