找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 4620|回复: 1

为什么 BFW 没有 IPSET?

[复制链接]
发表于 2007-5-11 11:12:19 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

×
官方主页: http://ipset.netfilter.org/
发现中文站点对 ipset 的应用描述的也不多。
简单的应用:
可以用 ipset 配合 iptables 完成很多功能,比如:
1、ipset -N ban_list iptree --timeout 3600
     或者 ipset -N ban_list iphash ....
2、iptables ...  -m set --set ip_list src -j DROP
3、ipset -A ip_list 222.222.222.222
步骤不要弄错了。

set 是什么?集合!!!ipset就是个ip集合,有了ipset可以在不分网段的情况下直接对不同IP做不同的处理(这话似乎不必我说)。应用方面很多~~~~~~


ipset 的 man page

iptables 中 ipset 相关的部分:
setThis modules macthes IP sets which can be defined by ipset(8).
--set setname flag[,flag...] where flags are src and/or dst and there can be no more than six of them. Hence the command  iptables -A FORWARD -m set --set test src,dstwill match packets, for which (depending on the type of the set) the source address or port number of the packet can be found in the specified set. If there is a binding belonging to the mached set element or there is a default binding for the given set, then the rule will match the packet only if additionally (depending on the type of the set) the destination address or port number of the packet can be found in the set according to the binding.

[ 本帖最后由 DreamCat 于 2007-5-12 11:44 编辑 ]
routeros
 楼主| 发表于 2007-5-12 11:36:58 | 显示全部楼层
引用CU上  archangle 的话:

       经常用iptables的人可能会很喜欢这个东西的。因为他可以作到动态改变iptables的过滤条件,却不必去修改iptables规则。可以做动态的防火墙。
甚至可以通过数据库来控制过滤规则,然后用web页面来管理。


与我的想法一致~~ ,不过用数据库来控制过滤规则实在是有难度,除非用内存数据库。

[ 本帖最后由 DreamCat 于 2007-5-12 11:39 编辑 ]
routeros
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|小黑屋|软路由 ( 渝ICP备15001194号-1|渝公网安备 50011602500124号 )

GMT+8, 2024-9-29 10:17 , Processed in 0.053506 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表