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

实时封一个ip24小时有什么好的方案?

  •  
  •   liuxurong · 2013-03-04 14:23:41 +08:00 via iPad · 4020 次点击
    这是一个创建于 4074 天前的主题,其中的信息可能已经有所发展或是发生改变。
    iptables怎么解决时间和重复添加的问题?求助了。
    6 条回复    1970-01-01 08:00:00 +08:00
    liuxurong
        1
    liuxurong  
    OP
       2013-03-04 15:04:47 +08:00
    1.時間过后自动解封。
    2.不会重复添加
    3.热添加 不用重启 不影响网站运行
    Kymair
        2
    Kymair  
       2013-03-04 15:08:16 +08:00   ❤️ 1
    是什么服务? 如果只是Web的话,直接用Nginx里的功能应该会容易一些。
    直接在nginx.conf里include一个专门的ip.conf
    然后把条目动态添加进去,nginx -s reload
    liuxurong
        3
    liuxurong  
    OP
       2013-03-04 15:09:09 +08:00
    @Kymair web的,怎么解决自动解封呢。
    haython
        4
    haython  
       2013-03-04 15:40:11 +08:00
    web的可以用memcache这些来解决
    ihacku
        5
    ihacku  
       2013-03-04 17:07:33 +08:00
    如果是apache的话 试试这个 http://perishablepress.com/5g-blacklist-2013/
    liuxurong
        6
    liuxurong  
    OP
       2013-03-04 22:49:33 +08:00
    @ihacku 用的Nginx
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1383 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 17:21 · PVG 01:21 · LAX 10:21 · JFK 13:21
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.