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
Code: Select all
#!/bin/bash
sleep 5
exit 0
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