java 在 Android 上创建一个轻量级的 openvpn 客户端(服务器配置已经)

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/15217627/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-31 18:53:31  来源:igfitidea点击:

Create a lightweight openvpn client on Android (server config already)

javaandroidclientvpnopenvpn

提问by user2134598

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.

我有一台安装 openvpn 的服务器。我已经配置了一些客户端,现在我想创建一个 openvpn 客户端以使用我创建的客户端配置连接到它。

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

我知道市场上有一个 OpenVpn 客户端。但是,我如何使用 VPN API(VpnService,...)来做我自己的客户端因为我想为应用程序提供客户端配置,所以客户端只会连接 android 系统

回答by plaisthos

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.

Android 客户端的 OpenVPN 源可在http://github.com/schwabe/ics-openvpn/找到。运行 Android OpenVPN 核心所需的文件子集相对较小,因为客户端具有相对较好的控制和 UI 分离。

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)

Play 上已经有许多客户端使用 ics-openvpn 项目作为基础(通常没有适当的版权归属,也没有提供 GPL 要求的源代码)