RedisPushIptables 通过 Redis 调用 iptables

程序名称:RedisPushIptables

授权协议: GPLv3

操作系统: 跨平台

开发语言: C/C++

RedisPushIptables 介绍

该模块可以通过 redis 来操作 iptables 的 INPUT
表规则的增加和删除,可以用来动态调用防火墙。比如用来防御攻击。功能与fail2ban相同,只不过它不需要日志分析,但是需要api主动调用,性能更好.

但是前提要以 root 来运行,因为 iptables 需要 root 权限。

  • accept.insert - Filter table INPUT ADD ACCEPT
  • accept.delete - Filter table INPUT DEL ACCEPT
  • drop.insert - Filter table INPUT ADD DROP
  • drop.delete - Filter table INPUT DEL DROP
  • ttl.drop.insert - Filter table INPUT ADD DROP

    127.0.0.1:6379>accept.insert 192.168.188.8
    (integer) 13
    127.0.0.1:6379>accept.delete 192.168.188.8
    (integer) 13
    127.0.0.1:6379>drop.delete 192.168.188.8
    (integer) 13
    127.0.0.1:6379>ttl.drop.insert 192.168.188.8 60
    (integer) 13

    root@debian:~# iptables -L -n
    Chain INPUT (policy ACCEPT)
    target     prot opt source               destination         
    DROP       all  –  192.168.188.8        0.0.0.0/0 
    ACCEPT       all  –  192.168.188.8        0.0.0.0/0

RedisPushIptables 官网

https://github.com/limithit/RedisPushIptables

相关编程语言

SchemaCrawler提供一组用于增强标准JDBC Metadata的...
ER Master 是一个用于设计ER模型图的Eclipse插件。提...
Eclipse下用于画数据库ER图的插件,主要特性如下: ...
PowerDesigner 是Sybase的企业建模和设计解决方案,...
Mogwai ERDesigner NG是一个实体关系建模工具类似于...
Power*Architect 是一个数据建模工具,主要用在数据...