LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 782|回复: 2

iptables与mac地址的结法方法..

[复制链接]
发表于 2004-10-26 21:13:04 | 显示全部楼层 |阅读模式
我想用iptables去限制某些mac地址不能访问80端口等其它操作..有什么好的方法...
因为我们公司是动态分配IP的........
有什么好的脚本去做这伯事情...
谢谢各位了...


还有用linux服务怎么让客户端outlook express的邮件地址同步一个列表...
我只用更新服务器上的地址,各员工地址就会自动更新......................
发表于 2004-10-27 04:42:22 | 显示全部楼层
read the iptables tutorial.It should be in it. about the MAC target.(I don't think it is useful, beacuse i can change the card or change the MAC)

does OE have the function? i don't think so..
 楼主| 发表于 2004-12-20 14:28:34 | 显示全部楼层
[0:0] -A FORWARD -s 192.168.1.221 -m mac ! --mac-source 00:08:74:4A:5A:41 -j REJECT --reject-with icmp-port-unreachable

看看这句,应该可以了吧..
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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