Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android - VPN at the native layer

Just a quick question as Google isn't throwing up much.

Is it possible to create a VPN connection using native code in Android?

And if so does the VPN offer support for keep alives?

like image 589
Donal Rafferty Avatar asked May 11 '10 10:05

Donal Rafferty


People also ask

Does Android have a built in VPN?

Android VPN options VPNs allow devices that aren't physically on a network to securely access the network. Android includes a built-in (PPTP, L2TP/IPSec, and IPSec) VPN client. Devices running Android 4.0 and later also support VPN apps.

How do I use L2TP on Android?

Configure the L2TP Network SettingsOn the Settings page, in the Wireless & Networks section, select More > VPN. Click + to add a VPN network. The Edit VPN profile page appears. In the Name text box, type a name for this VPN connection, such as "L2TP Firebox".

What is L2TP secret Android?

An L2TP secret or VPN secret is a unique password used in place of a regular password to access the VPN. PPTP connections to the VPN must use an L2TP secret.


1 Answers

I believe it would be more of a permissions issue than of an exposed or not exposed issue. Most VPN connections would need you to modify and access the network filtering calls of your kernel. Since your app should really be operating in it's own sandbox this is something I would doubt is exposed by default (to apps at least) since you would essentially be modifying the way the entire OS routes network traffic. For the same reason that in order to modify iptables in the OS, it needs to be rooted so that your app can actually alter such things. At that point I would assume the connection would be made similar to any other vpn connection in any other linux os (via an ipsec daemon or some proxy dameon that you create), but the calling entity would need the actual access level necessary to complete the call to the kernel.

like image 153
Greg Giacovelli Avatar answered Nov 15 '22 08:11

Greg Giacovelli