General information
- Android Version: Android TV 11
- Android Vendor/Custom ROM: Xiaomi
- Device: Xiaomi TV Box S (2nd Gen)
- Version of the app (version number/play store version/self-built): Last one on Play Store
Description of the issue
When trying to connect to my own OpenVPN server on a second home, the connection is successful. If I disconnect and then try again, it fails. This does not happen on other clients, like on the "OpenVPN Connect" client for Windows or Android.
The server is an OpenVPN server installed on a Synology. It's configured to limit to 1 the number of simulaneous connections for one account (5 simulaneous connections in total). If I change it to, say, 5, then it works. Of course I disconnect using the disconnect button, but I suspect something is not right and the connection/session is not fully closed. Although I'm not 100% sure about this, because I also have the server configured to mail me when someone connects and disconnects, and I always get both messages, so the disconnection is definetely there...


Configuration file
dev tun
tls-client
remote XXXXXXXXXX XXXXX
# The "float" tells OpenVPN to accept authenticated packets from any address,
# not only the address which was specified in the --remote option.
# This is useful when you are connecting to a peer which holds a dynamic address
# such as a dial-in user or DHCP client.
# (Please refer to the manual of OpenVPN for more information.)
#float
# If redirect-gateway is enabled, the client will redirect it's
# default network gateway through the VPN.
# It means the VPN connection will firstly connect to the VPN Server
# and then to the internet.
# (Please refer to the manual of OpenVPN for more information.)
#redirect-gateway def1
# dhcp-option DNS: To set primary domain name server address.
# Repeat this option to set secondary DNS server addresses.
#dhcp-option DNS DNS_IP_ADDRESS
pull
# If you want to connect by Server's IPv6 address, you should use
# "proto udp6" in UDP mode or "proto tcp6-client" in TCP mode
proto udp
script-security 2
comp-lzo
reneg-sec 0
# Clients running OpenVPN 2.4 and higher will automatically upgrade from AES-256-CBC to AES-256-GCM without any configuration changes.
cipher AES-256-CBC
auth SHA512
auth-user-pass
<ca>
-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----
</ca>
key-direction 1
<tls-auth>
#
# 2048 bit OpenVPN static key
#
-----BEGIN OpenVPN Static key V1-----
-----END OpenVPN Static key V1-----
</tls-auth>
verify-x509-name 'XXXXXXXXXXXXXXXX' name
General information
Description of the issue
When trying to connect to my own OpenVPN server on a second home, the connection is successful. If I disconnect and then try again, it fails. This does not happen on other clients, like on the "OpenVPN Connect" client for Windows or Android.
The server is an OpenVPN server installed on a Synology. It's configured to limit to 1 the number of simulaneous connections for one account (5 simulaneous connections in total). If I change it to, say, 5, then it works. Of course I disconnect using the disconnect button, but I suspect something is not right and the connection/session is not fully closed. Although I'm not 100% sure about this, because I also have the server configured to mail me when someone connects and disconnects, and I always get both messages, so the disconnection is definetely there...
Configuration file