免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3111 | 回复: 3
打印 上一主题 下一主题

怎么能让iptables支持arp协议,需要什么patch [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-05-23 12:06 |只看该作者 |倒序浏览
怎么能让iptables支持arp协议,需要什么patch

论坛徽章:
0
2 [报告]
发表于 2006-05-23 12:51 |只看该作者
应该用 arptables,iptables 是工作在 IP 层的

论坛徽章:
0
3 [报告]
发表于 2006-05-23 16:28 |只看该作者
如版主所说,iptables工作在ip层,加载arp_tables后能控制链路层的arp吗,如下,该模块已经加载,但仍然提示
unknown protocol `arp' specified

是-t  arp参数错了还是语法不对,还是......   请版主指教

lsmod:
ip_nat                 16621  2 ipt_MASQUERADE,iptable_nat
ip_conntrack           49261  4 xt_state,ipt_MASQUERADE,iptable_nat,ip_nat
nfnetlink               6489  2 ip_nat,ip_conntrack
iptable_filter          3137  1
ip_tables              11657  2 iptable_nat,iptable_filter
autofs4                19013  1
x_tables               12613  12 arpt_mangle,arp_tables,ipt_time,xt_limit,xt_mac,xt_state,ipt_LOG,ipt_ipp2p,ipt_MASQUERADE,xt_tcpudp,iptable_nat,ip_tables


[root@zfw netfilter]# iptables -t arp -I INPUT 1 -p arp -s 192.168.1.25 -j DROP
iptables v1.3.5: unknown protocol `arp' specified
Try `iptables -h' or 'iptables --help' for more information.

[ 本帖最后由 zsgd 于 2006-5-23 16:39 编辑 ]

论坛徽章:
0
4 [报告]
发表于 2006-05-23 16:53 |只看该作者
原帖由 zsgd 于 2006-5-23 12:06 发表
怎么能让iptables支持arp协议,需要什么patch


l2 的過濾,於 kernel 2.6 環境下請考慮使用 ebtables,因為核心已經支援,剩下只是 userspace 程式安裝。

http://ebtables.sourceforge.net/

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

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP