V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
dingzi
V2EX  ›  问与答

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

  •  1
     
  •   dingzi · 2016-04-20 17:16:08 +08:00 · 1694 次点击
    这是一个创建于 2920 天前的主题,其中的信息可能已经有所发展或是发生改变。
    如果用终端来添加 iptagles 规则是可以实现的。
    想要实现和微林差不多的网页面板来添加这个。
    3 条回复    2016-04-20 18:03:15 +08:00
    UnisandK
        1
    UnisandK  
       2016-04-20 17:24:02 +08:00
    期待你的轮子
    FifiLyu
        2
    FifiLyu  
       2016-04-20 17:57:42 +08:00
    别弄错了。是 iptables ,不是 iptagles 。
    FifiLyu
        3
    FifiLyu  
       2016-04-20 18:03:15 +08:00
    你需要的是以 root 权限执行添加 iptables 的规则,但是 Web 服务器一般是低权限。无法直接操作 iptables 。
    所以,你需要使用

    https://github.com/fifilyu/CommandBridge

    来执行 root 权限的东西。

    而网页代码,比如 PHP 代码。只需要发命令给 CommandBridge 。由 CommandBridge 添加 iptables 规则。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3651 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 10:39 · PVG 18:39 · LAX 03:39 · JFK 06:39
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.