如何在 Android 3.x 中重新路由所有 IP 流量(首选网络层)
这是特定于 Android 3.0/3.1 为了实现云安全层,我想通过我的自定义云服务器重新路由发往某些端口的所有 IP 流量,然后在不构成任何威胁的情况下提供所需的页面。
我想这样做的原因是: 1. Android 上运行的应用程序仍将继续与常规请求交互,不需要任何修改 2.更好的安全性。用户应该不可能禁用/阻止我的重新路由服务。将我的实现隐藏在网络层将使用户很难篡改它。
我想知道这个程序是否可行。如果是这样,最好的实施程序是什么?如果没有,是否有人对任何替代方法有建议。
This is specific to Android 3.0/3.1 In order to implement a cloud security layer, I would like to reroute all IP traffic destined for certain ports through my custom cloud server which would then serve up the required pages if they don't pose any threat.
The reasons I would like to do this are:
1. The applications running on Android would still continue their interaction with regular requests and wouldn't require any modifications
2. Better security. It should not be possible for a user to disable/block my reroute service. Hiding my implementation in the network layer would make it difficult for users to tamper with it.
I would like to know if this procedure is possible at all. If so, what is the best implementation procedure. If not, does anyone have a suggestion on any alternate methodologies.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这只有在您对手机进行 root 操作(或创建自己的固件,这可能需要对手机进行 root 操作才能部署它)时才可能实现。例如,Orbot,它是 Android 版 Tor 代理的实现,需要root 以便通过其代理透明地传递所有 TCP 请求。
唯一的方法是制作自己的固件。
允许普通 SDK 应用程序执行您请求的任何操作将是一个巨大的安全漏洞。
This is only possible if you root your phone (or create your own firmware, which probably involves rooting the phone to deploy it). For example, Orbot, which is an implementation of the Tor proxy for Android, needs root in order to transparently pass all TCP requests through its proxy.
The only way to do that is by making your own firmware.
Allowing ordinary SDK applications to do anything of what you request would be a massive security hole.
您需要设置需要 root 的 ip 表规则。
至于不能禁用你的服务,那是不可能的,但用户也需要 root 来更改这些规则。
You need to set up ip table rules which needs root.
As for not being able to disable your service, that is not possible, but the user will also require root to change these rules.