Hi all, i always has this disconnection when connection drops on my android. e.g. switching from Wifi to 3G. My vpn doesnt reconnect automatically. Error message: SIGUSR1(soft, connnection-reset) received process restarting Here is the openvpn config file... what should i add to allow auto-connection? client remote xxxxxxxx.com 1194 udp remote xxxxxxxxx.com 443 tcp-client pull auth-user-pass comp-lzo adaptive ca ca.crt dev tun tls-client script-security 2 cipher AES-256-CBC mute 10
Another config file that doesnt allow auto connection when signal drops remote xxxxxxx.com 1195 client auth-user-pass ping 5 dev tun resolv-retry infinite nobind persist-key persist-tun ns-cert-type server verb 3 route-metric 1 comp-lzo yes proto tcp ping-exit 30 <ca> -----BEGIN CERTIFICATE----- -----END CERTIFICATE----- </ca>
anyone can help with the 2 config files? what should i add to allow auto-connection when phone connection drop?
I suspect that your answer lies in Android, not OpenVPN. And I don't know Android. But two things seem odd. The first config file has two server lines, one UDP and the other TCP, and no remote-random line. And the second one doesn't specify proto udp vs proto tcp-client. Maybe you want to look at mptcp to multipath your WiFi and 3G connections. But you'd need a VPN provider that supports mptcp, and would be limited to TCP mode (because mptcp doesn't handle UDP).