Create a lightweight openvpn client on Android (server config already) [closed]
Asked Answered
S

1

6

I have a server which I install openvpn. I have config some client and now I want to create an openvpn client to connect to it with the client config I've created.

I know there is an OpenVpn client on the market. But, how can I do my own client with the VPN API (VpnService, ...) Because I want to provide the client config with the app, so the client will just connect the android system

Serpentine answered 5/3, 2013 at 6:57 Comment(2)
I don't think that you can easily write an openvpn client, the open source android client which is available contains a lot of code. Why don't you take the code from the open source project and modify it to include your configuration?Inefficient
Do you mean the ToyVpn example ?Serpentine
W
7

The source of the OpenVPN for Android client is available under http://github.com/schwabe/ics-openvpn/. The subset of files that is needed to have a working Android OpenVPN core is relatively small since the client has a relatively good control and UI separation.

There are already a number of clients on the Play using the ics-openvpn project as basis (often without proper copyright attribution and without providing source code as the GPL requires)

Weathercock answered 5/3, 2013 at 12:11 Comment(1)
we are getting a problem here, in one of the libraries of openvpn , it matches the android package name and due to this not able to use some portion of code as the library is compiled in .so format . Any HelpNonviolence

© 2022 - 2024 — McMap. All rights reserved.