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

求助 android ssh server iptables

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

    不过 Android 自带 netfilter 和 iptables binary 的,不需要自己去准备。root 完直接能用。
    ttvast
        6
    ttvast  
       2019 年 7 月 30 日
    android 的无线热点功能就是靠 netfilter 的 nat 实现的。
    关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   5721 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 06:21 · PVG 14:21 · LAX 22:21 · JFK 01:21
    ♥ Do have faith in what you're doing.