自己的心得--如何在 filter 规则下新增新的chain 范例(增加一个ICMP)
自己的心得--如何在 filter 规则下新增新的chain 范例(增加一个ICMP)先前看到一些规则在 filter 除了有 inputoutputforward之外还有其它的 Chain 就很
好奇的参考了网络上的一些做法,都没有写的很清楚如何增加,用winbox也无法在图形接口下新增
就自己试试终端机模式,果然成功了,ros的功能真强大,希望对大家有帮助!
ROS的 filter增加 ICMP 链路的过滤机制!
1.要用终端机进入后将以下贴上去!增加 chain=ICMP
/ip firewall filter
add chain=ICMP protocol=icmp icmp-options=0:0-255 limit=5,5 action=accept comment="Ping5" disabled=no
add chain=ICMP protocol=icmp icmp-options=3:3 limit=5,5 action=accept comment="Traceroute限制为每秒5个包" disabled=no
add chain=ICMP protocol=icmp icmp-options=3:4 limit=5,5 action=accept comment="MTU线路探测限制为每秒5个包" disabled=no
add chain=ICMP protocol=icmp icmp-options=8:0-255 limit=5,5 action=accept comment="Ping请求限制为每秒5个包" disabled=no
add chain=ICMP protocol=icmp icmp-options=11:0-255 limit=5,5 action=accept comment="Trace TTL限制为每秒5个包" disabled=no
add chain=ICMP protocol=icmp action=drop comment="丢弃掉任何ICMP数据" disabled=no
2.将input ICMP规则jump
add chain=input protocol=icmp action=jump jump-target=ICMP comment="跳转到ICMP链表" disabled=no
3.将input ICMP规则jump 移到ICMP的chain之前才会启用
哦。。。。 哦。。。。 顶一 下
页:
[1]