求助 android ssh server iptables

2019-07-29 19:36:56 +08:00
 txy3000
小米 sshdroid 想设置 iptables 进行 port forward
必须 root 手机吗?
5390 次点击
所在节点    Android
6 条回复
lcdtyph
2019-07-29 20:26:47 +08:00
不仅仅要 root 吧,可能还得重新编译内核打开 nf 支持(我不了解 android 是不是默认打开了),再打包一个 iptables 的 binary 进去才能用。
txy3000
2019-07-29 21:40:40 +08:00
@lcdtyph 感谢回复 感觉好麻烦 不知道有没有可以让手机当热点 路由 DMZ 之类的 app 懒得折腾
lcdtyph
2019-07-29 22:04:45 +08:00
@txy3000 这我还真不了解= =等 android 大神来回答吧
lcdtyph
2019-07-30 00:51:55 +08:00
@txy3000
我发现以前 star 过这个项目 https://github.com/ukanth/afwall
感觉你可能用得上
updateing
2019-07-30 10:39:06 +08:00
iptables 操作确实需要 root,我不知道有没有其他绕过手段。

不过 Android 自带 netfilter 和 iptables binary 的,不需要自己去准备。root 完直接能用。
ttvast
2019-07-30 14:48:10 +08:00
android 的无线热点功能就是靠 netfilter 的 nat 实现的。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/587284

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX