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 - flaax

#2
Same problem with CP and 25.1.5_4

The log shows successful authentication:
2025-04-14T11:55:45 Informational captiveportal AUTH myuser (xx.xx.xx.xx) zone 0

The CP web frontend displays "Authentication failed" and access to other networks is not possible.

Setup:
Captive Portal is configured on a WireGuard interface for clients
Authentication method: LDAP + OTP

LDAP without OTP also fails → not related to OTP or token order
Local database authentication doesn't work either

OPNsense LDAP authentication works (ldap user login on OPNsense with Lobby:Password priveleges)
If on the CP a wrong password is entered on purpose, CP does correct logging:
2025-04-14T12:00:39    Informational    captiveportal    DENY myuser (xx.xx.xx.xx) zone 0

If I enter a wrong password too many times, the ldap user is locked out on the ldap server. So the whole auth CP - opnsense ldap config - ldap server seems to work fine. At least with wrong login.

Workaround:
Rollback to previous version or add WireGuard peers to CP's allowed IPs.
#3
Thanks Legally a Shrimp for the great work with the php script!

For the instruction, point 5, firewall rule:
Please consider to choose block as action.
Since reject will send an anwser and you usually don't want this.


Also, if direction in
Source: <your alias / spamhaus_drop>
Destination is your OPNsense (or any)