Hi all,
I compiled OpenVPN 2.6.6 with community sources on Debian 10 as follows:
./configure --prefix=/opt/openvpn --disable-lz4 --enable-x509-alt-username --with-openssl-engine OPENSSL_SSL_LIBS="-L/usr/lib/x86_64-linux-gnu -lssl" OPENSSL_SSL_CFLAGS="-I/usr/include" OPENSSL_CRYPTO_LIBS="-L/usr/lib/x86_64-linux-gnu -lcrypto" OPENSSL_CRYPTO_CFLAGS="-I/usr/include" LZO_CFLAGS="-I/usr/include" LZO_LIBS="-L/usr/lib/x86_64-linux-gnu -llzo2"
Goal is to use google-auth with auth-pam and OpenVPN 2.6.6. Therefore I added the following line to the server.conf (and also created a suitable pam.d/openvpn config)
plugin /opt/openvpn/lib/openvpn/plugins/openvpn-plugin-auth-pam.so openvpn
I start the server with the following command:
/opt/openvpn/sbin/openvpn --daemon ovpn-server --status /run/openvpn/server.status 10 --cd /opt/openvpn --config /opt/openvpn/server.conf --writepid /run/openvpn/server.pid
Then the tun interface starts and I can login with a client. BUT after about 1 minute after the start of the server (if a client is connected as well as no client is connected) the server crashes (tun interface is down) and I find the following error below in openvpn.log:
->Server start
...
2023-08-24 16:49:06 IFCONFIG POOL IPv4: base=172.17.72.2 size=253
2023-08-24 16:49:06 MULTI: TCP INIT maxclients=1024 maxevents=1029
2023-08-24 16:49:06 Initialization Sequence Completed
-> Server has started
2023-08-24 16:50:37 Closing TUN/TAP interface
2023-08-24 16:50:37 net_addr_v4_del: 172.17.72.1 dev tun0
2023-08-24 16:50:37 PLUGIN_CLOSE: /opt/openvpn/lib/openvpn/plugins/openvpn-plugin-auth-pam.so
2023-08-24 16:50:37 SIGTERM[hard,] received, process exiting
Any idea anyone how to solve this problem?
Thanks in advance!
Best regards
Borat
OpenVPN 2.6.6 openvpn-plugin-auth-pam crash Debian 10
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
-
- OpenVpn Newbie
- Posts: 3
- Joined: Thu Aug 24, 2023 2:44 pm
-
- OpenVpn Newbie
- Posts: 3
- Joined: Thu Aug 24, 2023 2:44 pm
Re: OpenVPN 2.6.6 openvpn-plugin-auth-pam crash Debian 10
Problem is solved. Altough I deaktivated the old openvpn server systemVinit did do things in the backgroud. After a restart of the server the openvpn service is stable now.