OpenVPN freezes with learn-address/client-disconnect/auth-user-pass-verify options

Scripts with setup, destroy, and modify routing tables and firewall rulesets for client connections.
Post Reply
u391e
OpenVpn Newbie
Posts: 1
Joined: Wed May 08, 2019 10:56 am

OpenVPN freezes with learn-address/client-disconnect/auth-user-pass-verify options

Post by u391e » Wed May 08, 2019 1:14 pm

When new client connect/disconnect to server, OpenVPN increase packet latency (or totally freezes) for all client.

Example OpenVPN config:

Code: Select all

learn-address           /opt/openvpn/learn-address.sh
client-disconnect       /opt/openvpn/client-disconnect.sh
auth-user-pass-verify   /opt/openvpn/auth-user-pass-verify.sh via-env
Simple "slow" script (learn-address.sh/client-disconnect.sh/auth-user-pass-verify.sh) for demonstrate problem

Code: Select all

#!/bin/bash
sleep 5
exit 0
ping 8.8.8.8 for another user (already connected)

Code: Select all

64 bytes from 8.8.8.8: icmp_seq=11 ttl=121 time=7.24 ms
64 bytes from 8.8.8.8: icmp_seq=12 ttl=121 time=277.39 ms
64 bytes from 8.8.8.8: icmp_seq=13 ttl=121 time=369.38 ms
64 bytes from 8.8.8.8: icmp_seq=14 ttl=121 time=508.27 ms
64 bytes from 8.8.8.8: icmp_seq=15 ttl=121 time=376.38 ms
64 bytes from 8.8.8.8: icmp_seq=16 ttl=121 time=115.48 ms
64 bytes from 8.8.8.8: icmp_seq=17 ttl=121 time=7.46 ms


Post Reply