Tun Issue When Trying to Connect from Android

Official client software for OpenVPN Access Server and OpenVPN Cloud.
Post Reply
RLD831
OpenVpn Newbie
Posts: 1
Joined: Sat May 22, 2021 3:29 am

Tun Issue When Trying to Connect from Android

Post by RLD831 » Sat May 22, 2021 3:40 am

I have an OpenVPN server set up on a pfSense router and I'm trying to connect to it from my OnePlus 8T. It seems to be having tun issues. It will connect, but I can't access the network or the internet, then it will disconnect and try to reconnect, then drop the connection. I am getting this error "TUN Error: cannot acquire tun interface socket". Can anyone point me in the right direction? Any help will be appreciated. Here is the log from the Open VPN Connect app in case that helps.

Code: Select all

16:28:31.786 -- ----- OpenVPN Start -----

16:28:31.786 -- EVENT: CORE_THREAD_ACTIVE

16:28:31.817 -- OpenVPN core 3.git:released:662eae9a:Release android arm64 64-bit PT_PROXY

16:28:31.817 -- Frame=512/2048/512 mssfix-ctrl=1250

16:28:31.817 -- UNUSED OPTIONS
0 [persist-tun]
1 [persist-key]
2 [data-ciphers] [CHACHA20-POLY1305:AES-256-CBC]
3 [data-ciphers-fallback] [AES-256-CBC]
5 [tls-client]
8 [verify-x509-name] [rob] [name]
10 [explicit-exit-notify]

16:28:31.818 -- EVENT: RESOLVE

16:28:31.851 -- Contacting [IP Address]:1194 via UDP

16:28:31.851 -- EVENT: WAIT

16:28:31.868 -- Connecting to [Dynamic DNS Address]:1194 ([IP Address]) via UDPv4

16:28:31.868 -- EVENT: CONNECTING

16:28:31.877 -- Tunnel Options:V4,dev-type tun,link-mtu 1553,tun-mtu 1500,proto UDPv4,keydir 1,cipher BF-CBC,auth SHA256,keysize 128,tls-auth,key-method 2,tls-client

16:28:31.877 -- Creds: Username/Password

16:28:31.877 -- Peer Info:
IV_VER=3.git:released:662eae9a:Release
IV_PLAT=android
IV_IPv6=0
IV_GUI_VER=net.openvpn.connect.android_3.2.4-5891
IV_SSO=openurl
IV_BS64DL=1


16:28:31.877 -- VERIFY OK: depth=0, /CN=Dynamic DNS Address/C=US/ST=Florida/L=Miami/O=HomeNet

16:28:34.055 -- SSL Handshake: CN=Dynamic DNS Address, TLSv1.3, cipher TLSv1.3 TLS_AES_256_GCM_SHA384, 2048 bit RSA

16:28:34.056 -- Session is ACTIVE

16:28:34.056 -- EVENT: GET_CONFIG

16:28:34.060 -- Sending PUSH_REQUEST to server...

16:28:35.018 -- OPTIONS:
0 [dhcp-option] [DOMAIN] [localdomain]
1 [dhcp-option] [DNS] [192.168.7.50]
2 [redirect-gateway] [def1]
3 [route-gateway] [192.168.9.1]
4 [topology] [subnet]
5 [ping] [10]
6 [ping-restart] [60]
7 [ifconfig] [192.168.9.2] [255.255.255.0]
8 [block-ipv6]


16:28:35.019 -- PROTOCOL OPTIONS:
  cipher: BF-CBC
  digest: SHA256
  compress: NONE
  peer ID: -1

16:28:35.019 -- EVENT: ASSIGN_IP

16:28:35.034 -- Connected via tun

16:28:35.034 -- Per-Key Data Limit: 48000000/48000000

16:28:35.035 -- EVENT: CONNECTED info='rob@Dynamic DNS Address:1194 ([IP Address]) via /UDPv4 on tun/192.168.9.2/ gw=[192.168.9.1/]'

16:29:35.018 -- Session invalidated: KEEPALIVE_TIMEOUT

16:29:35.019 -- Client terminated, restarting in 2000 ms...

16:29:37.019 -- EVENT: RECONNECTING

16:29:37.020 -- EVENT: RESOLVE

16:29:37.080 -- Contacting [IP Address]:1194 via UDP

16:29:37.081 -- EVENT: WAIT

16:29:37.084 -- Connecting to [Dynamic DNS Address]:1194 ([IP Address]) via UDPv4

16:29:37.093 -- EVENT: CONNECTING

16:29:37.094 -- Tunnel Options:V4,dev-type tun,link-mtu 1553,tun-mtu 1500,proto UDPv4,keydir 1,cipher BF-CBC,auth SHA256,keysize 128,tls-auth,key-method 2,tls-client

16:29:37.095 -- Creds: Username/Password

16:29:37.095 -- Peer Info:
IV_VER=3.git:released:662eae9a:Release
IV_PLAT=android
IV_IPv6=0
IV_GUI_VER=net.openvpn.connect.android_3.2.4-5891
IV_SSO=openurl
IV_BS64DL=1


16:29:37.108 -- VERIFY OK: depth=0, /CN=Dynamic DNS Address/C=US/ST=Florida/L=Miami/O=HomeNet

16:29:39.288 -- SSL Handshake: CN=Dynamic DNS Address, TLSv1.3, cipher TLSv1.3 TLS_AES_256_GCM_SHA384, 2048 bit RSA

16:29:39.289 -- Session is ACTIVE

16:29:39.289 -- EVENT: GET_CONFIG

16:29:39.291 -- Sending PUSH_REQUEST to server...

16:29:40.208 -- OPTIONS:
0 [dhcp-option] [DOMAIN] [localdomain]
1 [dhcp-option] [DNS] [192.168.7.50]
2 [redirect-gateway] [def1]
3 [route-gateway] [192.168.9.1]
4 [topology] [subnet]
5 [ping] [10]
6 [ping-restart] [60]
7 [ifconfig] [192.168.9.2] [255.255.255.0]
8 [block-ipv6]


16:29:40.209 -- PROTOCOL OPTIONS:
  cipher: BF-CBC
  digest: SHA256
  compress: NONE
  peer ID: -1

16:29:40.209 -- EVENT: ASSIGN_IP

16:29:40.229 -- TUN Error: cannot acquire tun interface socket

16:29:40.230 -- EVENT: TUN_IFACE_CREATE info='cannot acquire tun interface socket'

16:29:40.231 -- EVENT: DISCONNECTED

16:29:40.231 -- Tunnel bytes per CPU second: 0

16:29:40.231 -- ----- OpenVPN Stop -----

16:29:40.233 -- Client exception in transport_recv: tun_exception: not connected

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: Tun Issue When Trying to Connect from Android

Post by TinCanTech » Sat May 22, 2021 12:19 pm

See your server log for more details.

gabori
OpenVpn Newbie
Posts: 3
Joined: Sat May 29, 2021 6:34 pm

Re: Tun Issue When Trying to Connect from Android

Post by gabori » Sat May 29, 2021 6:35 pm

thanks.
that is what I was looking for

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: Tun Issue When Trying to Connect from Android

Post by TinCanTech » Sat May 29, 2021 7:05 pm

You mean:
  • You cannot find your server log, or
  • You found the log and solved the problem.
  • None of the above

Post Reply