- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
ros 防火墙
ros 防火墙
#关于TCP连接的一些设置,主要是减少连接的存活时间
/ip firewall connection tracking
set enabled=yes tcp-syn-sent-timeout=1m tcp-syn-received-timeout=1m \
tcp-established-timeout=1d tcp-fin-wait-timeout=10s \
tcp-close-wait-timeout=10s tcp-last-ack-timeout=10s \
tcp-time-wait-timeout=10s tcp-close-timeout=10s udp-timeout=10s \
udp-stream-timeout=3m icmp-timeout=10s generic-timeout=10m
#删除已有的防火墙(如果有的话)
:foreach i in=[/ip firewall filter find] do=[/ip firewall filter disable $i]
:foreach i in [/ip firewall filter find] do [/ip firewall filter remove $i]
#在短时间内从同一地址用不断变化的端口向本机发送大量数据包,视为端口扫描
#短时间内同时建立大量TCP连接(超过10) ,视为 DDoS 拒绝服务攻击, 进黑名单一天!
#黑名单上的只能建立三个并发连接
#内网的数据包不转发
#禁止从外网ping路由主机,默认关闭
#针对路由主机的,input
/ip firewall filter
add chain=input connection-state=established action=accept comment=accept established connection packets disabled=no
add chain=input connection-state=related action=accept comment=accept related connection packets disabled=no
add chain=input connection-state=invalid action=drop comment=drop invalid packets disabled=no
add chain=input protocol=tcp psd=21,3s,3,1 action=drop comment=detect and drop port scan connections disabled=no
add chain=input protocol=tcp connection-limit=3,32 src-address-list=black_list action=tarpit comment=suppress DoS attack disabled=no
add chain=input protocol=tcp connection-limit=10,32 action=add-src-to-address-list address-list=black_list address-list-timeout=1d comment=detect DoS attack disabled=no
add chain=input dst-address-type=!local action=drop comment=drop all that is not to local disabled=no
add chain=input src-address-type=!unicast action=drop comment=drop all that is not from unicast disabled=no
add chain=input protocol=icmp action=jump jump-target=ICMP comment=jump to chain ICMP disabled=no
add chain=input action=jump jump-target=services comment=jump to chain services disabled=no
add chain=input action=jump jump-target=virus comment=jump to chain virus disabled=no
add chain
您可能关注的文档
最近下载
- 2023光伏发电工程项目质量管理规程.doc VIP
- 2023光伏逆变器高加速寿命试验技术规范.docx VIP
- NBT 32004-2013光伏发电并网逆变器技术规范.pdf VIP
- LMQ.C型立式灭菌器使用说明书.PDF VIP
- 初中数学_锐角三角函数教学课件设计.ppt VIP
- 《干旱半干旱区光伏电站生态环境保护技术导则》编制情况说明.docx VIP
- 公司章程范本完整.pdf VIP
- NBT 32001-2012 光伏发电站环境影响评价技术规范.docx VIP
- 人教版九年级数学下册第二十八章28.1《锐角三角函数--正弦》 教学设计.doc VIP
- NBT 32008-2013 光伏发电站逆变器电能质量检测技术规程.pdf VIP
文档评论(0)