Hi, I compiled tinc 1.1pre14 for android 6, then i created the config for tinc. When i try to start tinc, it can not connect to /dev/tun I have looked for information on android/tinc and /dev/tun. The information i found is about system permissions, how can i start tinc on android whitout rooting my android tablet ? And set extra routing to the tinc interface. Greeting from Amsterdam, Perry
That's why Droid sucks...they're as bad as Microsoft! This guy / girl says to check out OpenVPN's example code to figure it out ;-) https://stackoverflow.com/questions/24745398/how-to-open-tap-device-on-android-using-native-code-c On Thu, Mar 29, 2018 at 7:19 AM, Perry Couprie <perry at couprie.net> wrote:> Hi, > > I compiled tinc 1.1pre14 for android 6, then i created the config for tinc. > > When i try to start tinc, it can not connect to /dev/tun > > I have looked for information on android/tinc and /dev/tun. > > The information i found is about system permissions, how can i start tinc > on android whitout rooting my android tablet ? > > And set extra routing to the tinc interface. > > Greeting from Amsterdam, > > Perry > > _______________________________________________ > tinc mailing list > tinc at tinc-vpn.org > https://www.tinc-vpn.org/cgi-bin/mailman/listinfo/tinc >-- Rafael 765-714-7257 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.tinc-vpn.org/pipermail/tinc/attachments/20180329/280601de/attachment.html>
As far as I understand, it is not possible to use tinc on Android without rooting. This is because of the way tinc uses the tuntap device. It would be possible if it was implemented using the android VPN interface. Mike On 29 Mar. 2018 9:25 pm, Perry Couprie <perry at couprie.net> wrote: Hi, I compiled tinc 1.1pre14 for android 6, then i created the config for tinc. When i try to start tinc, it can not connect to /dev/tun I have looked for information on android/tinc and /dev/tun. The information i found is about system permissions, how can i start tinc on android whitout rooting my android tablet ? And set extra routing to the tinc interface. Greeting from Amsterdam, Perry _______________________________________________ tinc mailing list tinc at tinc-vpn.org https://www.tinc-vpn.org/cgi-bin/mailman/listinfo/tinc -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.tinc-vpn.org/pipermail/tinc/attachments/20180329/34cde594/attachment-0001.html>
On Thu, Mar 29, 2018 at 01:19:48PM +0200, Perry Couprie wrote:> I compiled tinc 1.1pre14 for android 6, then i created the config for tinc. > > When i try to start tinc, it can not connect to /dev/tun > > I have looked for information on android/tinc and /dev/tun. > > The information i found is about system permissions, how can i start tinc on > android whitout rooting my android tablet ? > > And set extra routing to the tinc interface.Indeed, direct access to /dev/tun requires root privileges. However, Android has a VPN API that allows an app to request a tun interface, and configure it. The filedescriptor for this interface can then be handed to tincd. Unfortunately, this API is Java-only, so this is not something that can easily be called from tinc's C codebase. That said, have a look at this Android app that probably does what you want: http://tincapp.pacien.org/ -- Met vriendelijke groet / with kind regards, Guus Sliepen <guus at tinc-vpn.org> -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: <http://www.tinc-vpn.org/pipermail/tinc/attachments/20180329/695f376c/attachment.sig>