#ROS2927放火墙之简单
规则.
#只做了
禁PING,和
ICMP协议超过500包不接.
/ ip firewall filter
add chain=input
in-interface=telprotocol=icmp icmp-options=8:0 action=drop \
comment="Tel Disable Ping" disabled=no
add chain=input
in-interface=cncprotocol=icmp icmp-options=8:0 action=drop \
comment="CNC Disable Ping" disabled=no
add chain=input in-interface=lan src-address=
!192.168.0.0/24action=drop \
comment="Fei 192.168.0.0/24 can`t in ROS" disabled=yes
add chain=forward src-address=
192.168.0.215action=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.243action=drop \
comment="Dis on computer top wire" disabled=no
红色字内的tel和cnc就是外网网卡名了..我是双线.所以有俩网卡了..是禁PING规则..
通讯.
绿色字的IP就是管理员的机器..任何规则对他都无效..
暗红色字就是设置内网某台机器不让他上网...
..对于那些防火墙.路由还没工作就累个半死了..没什么大必要.