txy3000
V2EX  ›  Android

求助 android ssh server iptables

  •  
  •   txy3000 · Jul 29, 2019 · 13961 views
    This topic created in 2658 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
    lcdtyph
    Jul 29, 2019
    1
    不仅仅要 root 吧,可能还得重新编译内核打开 nf 支持(我不了解 android 是不是默认打开了),再打包一个 iptables 的 binary 进去才能用。
    txy3000
    txy3000
    OP
    Jul 29, 2019
    2
    @lcdtyph 感谢回复 感觉好麻烦 不知道有没有可以让手机当热点 路由 DMZ 之类的 app 懒得折腾
    lcdtyph
    lcdtyph
    Jul 29, 2019
    3
    @txy3000 这我还真不了解= =等 android 大神来回答吧
    lcdtyph
    lcdtyph
    Jul 30, 2019
    4
    @txy3000
    我发现以前 star 过这个项目 https://github.com/ukanth/afwall
    感觉你可能用得上
    updateing
    updateing
    Jul 30, 2019 via Android
    5
    iptables 操作确实需要 root,我不知道有没有其他绕过手段。

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