V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
txy3000
V2EX  ›  Android

求助 android ssh server iptables

  •  
  •   txy3000 · Jul 29, 2019 · 13296 views
    This topic created in 2464 days ago, the information mentioned may be changed or developed.
    小米 sshdroid 想设置 iptables 进行 port forward
    必须 root 手机吗?
    6 replies    2019-07-30 14:48:10 +08:00
    lcdtyph
        1
    lcdtyph  
       Jul 29, 2019
    不仅仅要 root 吧,可能还得重新编译内核打开 nf 支持(我不了解 android 是不是默认打开了),再打包一个 iptables 的 binary 进去才能用。
    txy3000
        2
    txy3000  
    OP
       Jul 29, 2019
    @lcdtyph 感谢回复 感觉好麻烦 不知道有没有可以让手机当热点 路由 DMZ 之类的 app 懒得折腾
    lcdtyph
        3
    lcdtyph  
       Jul 29, 2019
    @txy3000 这我还真不了解= =等 android 大神来回答吧
    lcdtyph
        4
    lcdtyph  
       Jul 30, 2019
    @txy3000
    我发现以前 star 过这个项目 https://github.com/ukanth/afwall
    感觉你可能用得上
    updateing
        5
    updateing  
       Jul 30, 2019 via Android
    iptables 操作确实需要 root,我不知道有没有其他绕过手段。

    不过 Android 自带 netfilter 和 iptables binary 的,不需要自己去准备。root 完直接能用。
    ttvast
        6
    ttvast  
       Jul 30, 2019
    android 的无线热点功能就是靠 netfilter 的 nat 实现的。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1061 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 18:46 · PVG 02:46 · LAX 11:46 · JFK 14:46
    ♥ Do have faith in what you're doing.