[strongSwan] Issue with StrongSwan and a MySQL backend. Cannot authenticate.
notjoe at gmail.com
Wed Sep 14 14:49:28 CEST 2016
I have Strongswan installed and configured on my server. I've been able to successfully authentication against it when using the standard ipsec.secrets for the list of users. I want to enable the mysql plugin for backend authentication. However, I am unable to successfully authentication when I change my configuration.
I followed the instructions over at Can one use a MySQL backend for user authentication in a strongswan VPN server? <http://serverfault.com/questions/716552/can-one-use-a-mysql-backend-for-user-authentication-in-a-strongswan-vpn-server>
My strongswan.conf is as follows:
load_modular = yes
send_vendor_id = yes
database = mysql://root:temp1234@localhost/strongswan_free
Here is the error from the logs:
Sep 14 08:53:17 localhost pppd: Using interface ppp0
Sep 14 08:53:17 localhost pppd: Connect: ppp0 <--> /dev/pts/1
Sep 14 08:53:17 localhost pppd: No CHAP secret found for authenticating vpnuser
Sep 14 08:53:17 localhost pppd: Peer vpnuser failed CHAP authentication
Sep 14 08:53:17 localhost xl2tpd: control_finish: Connection closed to 192.168.20.224, serial 1 ()
I do not see anything in the logs about establishing a connection to the mysql server either. In addition to that, The connection ID on mysql is not incrementing on every VPN connection attempt so it doesn't look like it is even trying to use mysql to authenticate the user.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Users