Any explicit-exit-notify alternatives for TCP

Scripts which allow the use of special authentication methods (LDAP, AD, MySQL/PostgreSQL, etc).
Post Reply
hyen56
OpenVpn Newbie
Posts: 1
Joined: Tue Jan 05, 2016 6:25 am

Any explicit-exit-notify alternatives for TCP

Post by hyen56 » Tue Jan 05, 2016 6:28 am

Ok, I have a script for both connect and disconnect which set is_user_online to =1 if he gets connected/connecting and disconnect to set is_user_online to =0 after he disconnects so he can connect again so the problem is when he get reconnects on TCP his is_user_online is to =1 making him can't connect or get an AUTH_FAILED error while on UDP i believe if explicit-exit-notify is included this make user when reconnects then he push to click the disconnect script.

Is there any recommendations for TCP connection?

User avatar
Traffic
OpenVPN Protagonist
Posts: 4081
Joined: Sat Aug 09, 2014 11:24 am

Re: Any explicit-exit-notify alternatives for TCP

Post by Traffic » Tue Jan 05, 2016 2:22 pm

UDP is a connectionless protocol ..
--explicit-exit-notify is used to notify the server that the client is disconnecting from the VPN.

TCP is a Connection-Oriented protocol ..
There is no requirement for --explicit-exit-notify as the TCP protocol handles the connection state.
hyen56 wrote:after he disconnects so he can connect again so the problem is when he get reconnects on TCP his is_user_online is to =1 making him can't connect
This suggests there is an error in your script.

Post Reply