dingzi
0.59D
V2EX  ›  问与答

网页控制 iptagles 开添加中转规则

  •  1
     
  •   dingzi · Apr 20, 2016 · 2439 views
    This topic created in 3849 days ago, the information mentioned may be changed or developed.
    如果用终端来添加 iptagles 规则是可以实现的。
    想要实现和微林差不多的网页面板来添加这个。
    3 replies  •  2016-04-20 18:03:15 +08:00
    UnisandK
    UnisandK
    Apr 20, 2016
    1
    期待你的轮子
    mN71eOOprFyMsnPx
    mN71eOOprFyMsnPx
    Apr 20, 2016
    2
    别弄错了。是 iptables ,不是 iptagles 。
    mN71eOOprFyMsnPx
    mN71eOOprFyMsnPx
    Apr 20, 2016
    3
    你需要的是以 root 权限执行添加 iptables 的规则,但是 Web 服务器一般是低权限。无法直接操作 iptables 。
    所以,你需要使用

    https://github.com/fifilyu/CommandBridge

    来执行 root 权限的东西。

    而网页代码,比如 PHP 代码。只需要发命令给 CommandBridge 。由 CommandBridge 添加 iptables 规则。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4867 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 06:52 · PVG 14:52 · LAX 22:52 · JFK 01:52
    ♥ Do have faith in what you're doing.