Chinaunix首页 | 论坛 | 博客
  • 博客访问: 98229
  • 博文数量: 79
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 10
  • 用 户 组: 普通用户
  • 注册时间: 2015-06-03 21:35
文章分类
文章存档

2015年(79)

我的朋友

分类: 系统运维

2015-06-03 21:39:38

原文地址:ROS防火墙规则 作者:tonecan2008

/ ip firewall filter
add chain=input in-interface=wan protocol=icmp icmp-options=8:0 action=drop \
    comment="Tel Disable Ping" disabled=no 
add chain=input in-interface=lan src-address=!192.168.0.0/24 action=drop \
    comment="Fei 192.168.0.0/24 can`t in ROS" disabled=yes
add chain=forward src-address=192.168.0.215 action=accept comment="vip" \
    disabled=yes
add chain=input protocol=icmp icmp-options=8:0 packet-size=!0-600 action=drop \
    comment="Chao Guo 500/pack dis" disabled=no
add chain=forward in-interface=lan src-address=192.168.0.243 action=drop \
    comment="Dis on computer top wire" disabled=no
 
说明
红色字内的wan就是外网网卡名了..是禁PING规则..
蓝色字的就是内网网段,规则含义就是非内网网段的IP禁止向路由通讯.
绿色字的IP就是管理员的机器..任何规则对他都无效..
暗红色字就是设置内网某台机器不让他上网...



 
阅读(418) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~