Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - loredo

#1
Hi everyone,

I've built an independent open-source plugin that adds OpenID Connect sign-in to the OPNsense WebGUI. It has now entered public beta.

Three user-facing highlights:

- Unknown identities can enter an approval queue, where an administrator links them to an existing or new local account. The permanent binding uses the provider's exact issuer and stable subject identifier—not an email address or username—so ordinary changes such as a new surname or email address do not silently change the account association.
- You decide how much to trust the identity provider. Keep explicit administrator approval, automatically match existing users, or allow account creation on first login for a suitably controlled provider population.
- Authorization can remain entirely local, or selected local groups can be managed from an IdP group claim. Full group delegation is also possible, but requires an explicit choice.

The normal OPNsense password login remains available as a recovery path.

I built this for a single LAN-only firewall in my homelab, not for customers or as a commercial product. Development is heavily AI-assisted and backed by extensive automated tests, including generated browser screenshots. My capacity for feature requests will be limited.

I am primarily looking for help confirming real-world IdP compatibility and for independent review of the implementation, specifications and security assumptions. Automated tests are useful evidence, but not a substitute for expert review or a formal security audit.

Project and installation instructions:
https://github.com/jpawlowski/opnsense-openid-connect

Test reports, technical reviews and contributions would be very welcome.
#2
General Discussion / Re: The Bhyve question
October 09, 2021, 02:25:51 PM
You might miss the tap device setup from
/usr/local/etc/rc.syshook.d/start/50-tapstart
#3
Unfortunately this is only a displaying matter.
#4
Okay, I found a proper workaround that would do, preferably https://github.com/opnsense/core/blob/master/src/opnsense/mvc/app/library/OPNsense/Auth/LDAP.php would do the same.

I created /root/.ldaprc with following content:


TLS_REQUIRE_CERT TLS_HARD
TLS_CACERTDIR /var/run/certs


I left out the explicit TLS_CACERTFILE cause that name is somewhat dynamic and I didn't want to hardcode it.
I'll open an issue on Github to consider this as an enhancement.
#5
It might be an upstream problem in PHP:
https://bugs.php.net/bug.php?id=73558

Question: Can there be any workaround, e.g. not using LDAP_OPT_X_TLS_CACERTFILE as it is anyway not working as intended? Putting the configured certificates into the global trust store might work.
#6
Hello,

I am trying to add an LDAPS server to the list of authentication options in "System > Access > Servers". More precicely, it is the LDAPS server of Microsoft Azure AD (https://docs.microsoft.com/en-us/azure/active-directory-domain-services/tutorial-configure-ldaps).

This is working absolutely fine on a pfSense machine, users can authenticate in OpenVPN easily.

However, adding the server in OPNsense is a bit of a hassle. When testing the server, this is what the logfile says:

opnsense: LDAP bind error [error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed (unable to get issuer certificate),Can't contact LDAP server]

The certificate is a self-signed one, created by an internal Sub CA (it was done on the pfSense machine, same way you can do it on OPNsense). However, it seems OPNsense is unable to verify the trust chain for the server certificate while pfSense is.

I installed the entire trust chain into the OPNsense trust store so in general the certificates are there. It just seems that they are not being used.

Can someone help me to find out more and identify the root cause? I am running on latest version 19.7.4_1.


Thanks,
Julian
#8
I can confirm it is working again, potentially a peering issue of Vodafone I guess.
#9
Yep, it is working just fine for everything else.

Just changed the screenshot to prove connectivity to another IPv6 website is working .......
#10
Hi,

it is currently not possible to do any updates using IPv6 connectivity.
It seems pkg.opnsense.org is not responding on it's v6 address, connecting to v4 works fine.

Can somebody look into this please?

-Julian
#11
Just wanted to let you know, after upgrading to 19.1.1 everything seems to work. Keep your fingers crossed! :-D
#12
Hardware and Performance / Re: APU2 Bios
February 08, 2019, 03:34:46 PM
No issues as far as i can tell
#13
Hardware and Performance / Re: APU2 Bios
February 08, 2019, 01:49:32 PM
Same
#14
Hardware and Performance / Re: APU2 Bios
January 22, 2019, 09:47:01 AM
awww, people report the reboot issue to be finally fixed for the mainline version.
Sounds promising, might be worth giving it a try. but maybe not mixing it up together with 19.1 migration - just to make sure there is nothing interfering, you never know...
#15
In my opinion, this still sounds like a bug.
"Prefer IPv4 over IPv6" should not mean the daemon shall not listen on IPv6 at all. What I'd expect is that whenever outbound connections are made, IPv4 is preferred. It might be that this is not possible to do properly with Unbound but then a dedicated setting in Unbound should be there for it and the central setting should not be taken into account.

Might be worth opening a ticket for it on Github, but that's up to you guys.