免费注册 查看新帖 |

Chinaunix

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

关于LIST(列表) 的作用(本文章主要用于端口限制方面) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-07-16 00:50 |只看该作者 |倒序浏览
试验环境:
办公室 LAN 路由器 ROS 2.9.7
本地网段 Local - 192.168.0.0/24
IP - 192.168.0.100 - 192.168.0.250 Should have access only to SMTP and POP3 on internet (仅仅能上邮件)
IP - 192.168.0.0 - 192.168.0.99 - full access (完全不控制)
要求:只有部分机器要限制上网 仅仅给他们收发邮件 (SMTP/POP)
试验已经非常成熟
/ ip firewall address-list
add list=all_services address=192.168.0.x comment="full access list" disabled=no
注:这里自己添加自由访问的IP 手动或者作脚本都可以看你自己了
add list=mail address=192.168.0.100~250 comment="mail access list" disabled=no
注:添加限制访问的 列表
=====================================
这些表的控制
/ ip firewall filter
add chain=forward src-address-list=all_services action=accept comment="allow 192.168.0.x full access" disabled=no
允许 all_services 这个列表的IP访问所有的网络
add chain=forward protocol=tcp dst-port=110 src-address-list=mail action=accept comment="allow pop3 to 192.168.0.y" disabled=no
允许 特别限制的IP 访问110 (POP端口)
add chain=forward protocol=tcp dst-port=25 src-address-list=mail action=accept comment="allow smtp to 192.168.0.y" disabled=no
允许 特别限制的IP 访问 25 (SMTP端口)
add chain=forward src-address-list=mail action=drop comment="drop all other from
192.168.0.y" disabled=no
不允许 特别限制的IP访问 其他任何端口

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/21852/showart_141148.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP