You must define TUN/TAP device (--dev) for Lollipop only

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
mad maddy
OpenVpn Newbie
Posts: 4
Joined: Sun Apr 26, 2015 2:07 pm

You must define TUN/TAP device (--dev) for Lollipop only

Post by mad maddy » Sun Apr 26, 2015 2:48 pm

I have an app(on top of ics-openvpn) that uses split-tunnelling and it has been working fine till kitkat
But in Lollipop version 5.1 I get the following error
SIGINT[hard,] received, process exiting
MANAGEMENT: >STATE:1430053963,EXITING,SIGINT,,
You must define TUN/TAP device (--dev)

Here is the link to Lollipop logs.VPN connection is not succesfull(connects,disconnects,reconnects)
http://goo.gl/MVFWYG

Here is the link JellyBean logs.VPN connection is successful
http://goo.gl/oSdqHI

Here is the command using that i use to connect to server.
client
dev tun
cipher AES-256-CBC
comp-lzo yes
persist-key
persist-tun
port 7000
proto udp
remote AA.BB.CC.DD 7000
resolv-retry infinite
verb 3
<ca>
</ca>
<key>
</key>
<cert>
</cert>
Any help is appreciated !
Thanks in advance !

User avatar
Traffic
OpenVPN Protagonist
Posts: 4066
Joined: Sat Aug 09, 2014 11:24 am

Re: You must define TUN/TAP device (--dev) for Lollipop only

Post by Traffic » Mon Apr 27, 2015 10:49 am

mad maddy wrote:You must define TUN/TAP device (--dev)
mad maddy wrote:client
dev tun
Try:

Code: Select all

dev tun0
that is a zero ..

mad maddy
OpenVpn Newbie
Posts: 4
Joined: Sun Apr 26, 2015 2:07 pm

Re: You must define TUN/TAP device (--dev) for Lollipop only

Post by mad maddy » Tue Apr 28, 2015 6:31 am

dev tun
is for dynamic device allocation and
dev tun0
is for static device allocation
I don't think it is a problem because it is working fine from ICS to KitKat
In Lollipop also I am facing the problem for split tunneling only not for general redirect gateway

User avatar
Traffic
OpenVPN Protagonist
Posts: 4066
Joined: Sat Aug 09, 2014 11:24 am

Re: You must define TUN/TAP device (--dev) for Lollipop only

Post by Traffic » Tue Apr 28, 2015 7:45 pm

mad maddy wrote:But in Lollipop version 5.1 I get the following error

Quote:
SIGINT[hard,] received, process exiting
MANAGEMENT: >STATE:1430053963,EXITING,SIGINT,,
You must define TUN/TAP device (--dev)
this means your config does not have --dev in it.

Post Reply