Openvpn config settings for Android

Discussion in 'privacy technology' started by Less, Jun 5, 2015.

  1. Less

    Less Registered Member

    Joined:
    Dec 24, 2008
    Posts:
    248
    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
     
  2. Less

    Less Registered Member

    Joined:
    Dec 24, 2008
    Posts:
    248
    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>
     
  3. Less

    Less Registered Member

    Joined:
    Dec 24, 2008
    Posts:
    248
    anyone can help with the 2 config files?
    what should i add to allow auto-connection when phone connection drop?
     
  4. mirimir

    mirimir Registered Member

    Joined:
    Oct 1, 2011
    Posts:
    6,025
    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).
     
    Last edited: Jun 7, 2015
  5. Less

    Less Registered Member

    Joined:
    Dec 24, 2008
    Posts:
    248
    thanks mirmir :)
     
Loading...