I would like to create custom VPN application based on OpenVPN for Android OS. The way I guess this should be done is first compile with NDK the OpenVPN client, then make GUI, which will communicate over JNI with the Open VPN program and then also install custom certificates into cert store. Is something like this possible? Is it difficult? I have seen some open source solutions, so I will probably start with them, but any tips or sugg开发者_C百科estions will be great!
Is it possible that it will include tun-module?
Thanks a lot
BR
STeN
Added later: I have seen some solutions available on the Internet. must be the device rooted in order to use the OpenVPN? I saw there (http://stackoverflow.com/questions/2809908/android-vpn-at-the-native-layer) nice description and I can understand the reasons for that since VPN works on IP level and creates the interface for the whole system... Are there some other ways?
With Android 4.0 this is possible now. See the VPNService API. For OpenVPN there is already an app that uses this API (https://github.com/schwabe/ics-openvpn/)
Make sure it is compatible with MS-VPN (OpenVPN AFAIK does not work with MS based VPN solutions).
精彩评论