Hi, I want to store some info about past sessions and I run a client-disconnect script.However, when I make tests I realized my script does not run when I disconnect from VPN.When I login again, firstly client-disconnect scripts works, then I login. When I debug logs I realized that;
Fri Mar 27 09:35:35 2020 us=562404 MULTI: new connection by client 'testuser' will cause previous active sessions by this client to be dropped. Remember to use the --duplicate-cn option if you want multiple clients using the same certificate or username to concurrently connect. Why I cannot logout successfully? Config; izmir2# cat /permanent/etc/targitas/sslvpn.conf ## Certificates ca . . . cert . . . key . . . dh . . . ## Mgmt Options user _openvpn group _openvpn management 127.0.0.1 7505 # ## Crypto Options cipher AES-256-CBC # ## Performance Options compress lz4-v2 push "compress lz4-v2" sndbuf 393216 rcvbuf 393216 push "sndbuf 393216" push "rcvbuf 393216" # ## Log Options ifconfig-pool-persist ipp.txt status . . . log . . . log-append . . . # ## AAA Options auth-user-pass-verify '. . . via-env script-security 3 client-disconnect '/myscript' client-cert-not-required username-as-common-name # ## Other Options persist-key persist-tun explicit-exit-notify 3 # ## Debug Options verb 4 ############################## #listen local . . . #port port . . . #protocol proto udp #mode dev tun #vpn-pool server 172.16.16.0 255.255.255.0 #send push "route 10.10.10.0 255.255.255.0" push "route 10.10.11.0 255.255.255.0" push "route 10.10.12.0 255.255.255.0" push "route 10.10.135.0 255.255.255.0" #keepalive keepalive 10 120
_______________________________________________ Openvpn-users mailing list Openvpn-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-users