IPsec VPN with remote authentication

Started by miken32, October 26, 2021, 01:37:58 AM

Previous topic - Next topic
October 26, 2021, 01:37:58 AM Last Edit: October 26, 2021, 01:40:06 AM by miken32
Having some issues getting this setup. If I use local authentication it works no problem. Using my configured LDAP server does not work; logs on the LDAP server indicate the router doesn't make a connection attempt. The only thing in the log files is this in /var/log/audit.log:

Oct 25 17:32:27 calgary audit[48186]: user mike failed authentication for ipsec on OPNsense\Auth\Services\IPsec via OPNsense\Auth\Local
Oct 25 17:32:27 calgary audit[48186]: user mike could not authenticate for ipsec. [using OPNsense\Auth\Services\IPsec + OPNsense\Auth\Local]


And this in /var/log/ipsec.log:

Oct 25 17:32:27 calgary charon[19217]: 07[IKE] <con4|9> XAuth pam_authenticate for 'mike' failed: System error
Oct 25 17:32:27 calgary charon[19217]: 07[IKE] <con4|9> XAuth authentication of 'mike' failed

Does anyone have any experience with this setup? Any way to enable some authentication debugging to see if it's working as expected? From the log entries I have, it seems like it's only using local.

October 26, 2021, 01:53:10 AM #1 Last Edit: October 26, 2021, 01:56:01 AM by miken32
Ok, hit save again and it worked (or, at least I'm seeing requests on the LDAP server.) There seems to be some weirdness with saving settings, I noticed MOBIKE support acting up as well (comparing contents of ipsec.conf config file to the checkbox in the web UI.) Will try to reproduce and file a bug report.

Why can't I delete my post?