V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
txy3000
V2EX  ›  Android

求助 android ssh server iptables

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

    不过 Android 自带 netfilter 和 iptables binary 的,不需要自己去准备。root 完直接能用。
    ttvast
        6
    ttvast  
       2019-07-30 14:48:10 +08:00
    android 的无线热点功能就是靠 netfilter 的 nat 实现的。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2880 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 13:05 · PVG 21:05 · LAX 06:05 · JFK 09:05
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.