Cannot open TUN : Permission denied (errno=13)

Post Reply
dongchul
OpenVpn Newbie
Posts: 1
Joined: Thu Oct 19, 2017 7:13 am

Cannot open TUN : Permission denied (errno=13)

Post by dongchul » Thu Oct 19, 2017 9:14 am

Hi,

I get error 'Cannot open TUN : Permission denied (errno=13)'
My device android 6.0, rooted, also used same config file(*.ovpn)
I build on openvpn opensource apk. run 'ok'
build another my application. run 'error'
my application near similar same with opensource openvpn.
(Importfile -> start vpn service -> start process thread)
but my application got error :(
what's the matter? Do you have solution?

log 1508403430.775605 28000003 MANAGEMENT: >STATE:1508403430,ASSIGN_IP,,10.211.1.29,,,,
log 1508403430.781556 46000083 MANAGEMENT: CMD 'needok 'IFCONFIG' ok'
log 1508403430.798116 46000083 MANAGEMENT: CMD 'needok 'ROUTE' ok'
log 1508403430.801764 46000083 MANAGEMENT: CMD 'needok 'DNSSERVER' ok'
log 1508403430.805218 46000083 MANAGEMENT: CMD 'needok 'DNSSERVER' ok'
log 1508403430.810782 46000083 MANAGEMENT: CMD 'needok 'PERSIST_TUN_ACTION' OPEN_BEFORE_CLOSE'
log 1508403430.833313 46000083 MANAGEMENT: CMD 'needok 'OPENTUN' cancel'
log 1508403430.833590 28000003 MANAGEMENT: Client disconnected
log 1508403430.833626 110 ERROR: Cannot open TUN: Permission denied (errno=13)
log 1508403430.833655 1 Exiting due to fatal error

tonystang2727
OpenVpn Newbie
Posts: 1
Joined: Fri May 18, 2018 8:39 am

Re: Cannot open TUN : Permission denied (errno=13)

Post by tonystang2727 » Fri May 18, 2018 8:44 am

Heres the issues i am facing:
With Bitmask Beta Version 0.9.8RC1 on LineageOS 14.1-20180105-NIGHTLY-oneplus3 I get the following error no matter which provider I select:

2018-01-15 15:50:29 Routes: 0.0.0.0/0, 10.41.0.0/21 2000::/3
2018-01-15 15:50:29 Routes excluded:
2018-01-15 15:50:29 VpnService routes installed: 0.0.0.0/0 2000::/3
2018-01-15 15:50:29 Disallowed VPN apps:
2018-01-15 15:50:29 Failed to open the tun interface
2018-01-15 15:50:29 Error: Android establish() method returned null (Really broken network configuration?)
2018-01-15 15:50:29 MANAGEMENT: CMD 'needok 'OPENTUN' cancel'
2018-01-15 15:50:29 MANAGEMENT: Client disconnected
2018-01-15 15:50:29 ERROR: Cannot open TUN: Permission denied (errno=13)
2018-01-15 15:50:29 Exiting due to fatal error
2018-01-15 15:50:29 Process exited with exit value 1
2018-01-15 15:50:29 New OpenVPN Status (NOPROCESS->LEVEL_NOTCONNECTED): No process running.
2018-01-15 15:50:29 MGMT: Got unrecognized command>FATAL:ERROR: Cannot open TUN: Permission denied (errno=13)





ebybn
OpenVpn Newbie
Posts: 1
Joined: Fri Aug 31, 2018 5:18 pm

Re: Cannot open TUN : Permission denied (errno=13)

Post by ebybn » Fri Aug 31, 2018 5:28 pm

For me, it was another app (Blokada) using the VPN. Disabling it made OpenVPN work flawlessly.

Post Reply