熟用百度云加速:宝塔面板Nginx防火墙如何添加百度云加速节点ip白名单

熟用百度云加速:宝塔面板Nginx防火墙如何添加百度云加速节点ip白名单

百度云加速是非常好的网站免费加速服务,只要网站备案了就可以免费试用。但是很多安装宝塔面板的用户用宝塔自带的Nginx防火墙,如果不把百度云加速cdn的所有ip段加到白名单,就会出现部分内容无法访问的情况。例如下面这种情况:

熟用百度云加速:宝塔面板Nginx防火墙如何添加百度云加速节点ip白名单

好了,解决办法,首先去百度加速网站查看最新的百度云加速节点IP地址段:https://su.baidu.com/help/index.html#/10_changjianwenti/0_HIDE_FAQ/20_baiduyunjiasujiedianIPdizhiduan.md

上海     180.163.188.0/24   180.163.189.0/24   101.227.206.0/24   101.227.207.0/24   180.163.113.0/24   180.163.154.0/24   180.163.153.0/24

天津     111.32.134.0/24   111.32.135.0/24   111.32.136.0/24   125.39.174.0/24   125.39.238.0/24   125.39.239.0/24   42.81.6.0/24   42.81.8.0/24

重庆     221.178.56.0/24   221.178.57.0/24   221.178.58.0/26   119.84.92.0/24   119.84.93.0/24   113.207.100.0/24   113.207.101.0/24   113.207.102.0/24

西安     117.34.13.0/24   117.34.14.0/24   117.34.60.0/24   117.34.61.0/24   117.34.62.0/24   117.34.28.0/24

济南     119.188.9.0/24   119.188.97.0/24   119.188.14.0/24   119.188.70.64/26   119.188.132.0/24

东莞     183.61.177.0/24   119.147.134.0/24   183.61.236.0/24   183.61.190.0/24   14.17.71.0/24

广州     157.255.25.0/24   157.255.26.0/24   157.255.24.0/24   183.232.51.0/24   183.232.53.0/24

青岛     150.138.149.0/24   150.138.150.0/24   150.138.151.0/24   119.167.246.0/24

郑州     42.236.93.0/24   42.236.94.0/24   42.236.7.64/26   42.236.7.128/25

株洲     220.170.184.0/24   220.170.185.0/24   220.170.186.0/24  

南宁     219.159.190.0/24   219.159.84.0/24   222.216.190.0/24

宁波     115.231.186.0/24   115.231.187.0/24   122.246.5.0/24

佛山     116.31.126.0/24   116.31.127.0/24   183.60.235.0/24

合肥     112.29.157.0/24   112.29.158.0/24   112.29.159.0/24

沈阳     124.95.191.0/24   124.95.168.0/24   124.95.188.0/24

苏州     58.211.2.0/24   58.211.137.0/24   61.155.149.0/24

武汉     122.190.2.0/24   122.190.3.0/24   122.190.1.0/24

无锡     112.25.89.0/24   112.25.90.0/24   112.25.91.0/24

石家庄     220.195.21.0/24   220.195.22.0/24

金华     117.147.214.0/24   117.147.215.0/24

黄石     111.174.61.0/24   111.174.63.0/24

湖州     101.69.175.0/24   61.241.118.0/24    

福州     117.27.149.0/24

百度云加速:宝塔面板Nginx防火墙如何添加百度云加速节点ip白名单

然后在宝塔面板里导入ip段

Nginx防火墙ip规则我已经整理好如下,直接复制导入即可(百度云加速节点IP地址段(2021年8月3日更新)):

[["111.174.61.1","111.174.61.255"],
["111.174.63.1","111.174.63.255"],
["220.195.21.1","220.195.21.255"],
["220.195.22.1","220.195.22.255"],
["119.84.92.1","119.84.92.255"],
["119.84.93.1","119.84.93.255"],
["117.27.149.1","117.27.149.255"],
["119.167.246.1","119.167.246.255"],
["116.31.126.1","116.31.126.255"],
["116.31.127.1","116.31.127.255"],
["183.60.235.1","183.60.235.255"],
["112.25.89.1","112.25.89.255"],
["112.25.90.1","112.25.90.255"],
["112.25.91.1","112.25.91.255"],
["112.29.157.1","112.29.157.255"],
["112.29.158.1","112.29.158.255"],
["112.29.159.1","112.29.159.255"],
["115.231.186.1","115.231.186.255"],
["115.231.187.1","115.231.187.255"],
["122.246.5.1","122.246.5.255"],
["119.188.9.1","119.188.9.255"],
["119.188.97.1","119.188.97.255"],
["119.188.14.1","119.188.14.255"],
["119.188.132.1","119.188.132.255"],
["119.188.70.64","119.188.70.127"],
["42.81.6.1","42.81.6.255"],
["42.81.8.1","42.81.8.255"],
["117.34.13.1","117.34.13.255"],
["117.34.14.1","117.34.14.255"],
["117.34.60.1","117.34.60.255"],
["117.34.61.1","117.34.61.255"],
["117.34.62.1","117.34.62.255"],
["117.34.28.1","117.34.28.255"],
["101.69.175.1","101.69.175.255"],
["61.241.118.1","61.241.118.255"],
["117.147.214.1","117.147.214.255"],
["117.147.215.1","117.147.215.255"],
["221.178.56.1","221.178.56.255"],
["221.178.57.1","221.178.57.255"],
["221.178.58.1","221.178.58.63"],
["150.138.149.1","150.138.149.255"],
["150.138.150.1","150.138.150.255"],
["150.138.151.1","150.138.151.255"],
["124.95.191.1","124.95.191.255"],
["124.95.168.1","124.95.168.255"],
["124.95.188.1","124.95.188.255"],
["219.159.190.1","219.159.190.255"],
["222.216.190.1","222.216.190.255"],
["219.159.84.1","219.159.84.255"],
["122.190.1.1","122.190.1.255"],
["122.190.2.1","122.190.2.255"],
["122.190.3.1","122.190.3.255"],
["220.170.184.1","220.170.184.255"],
["220.170.185.1","220.170.185.255"],
["220.170.186.1","220.170.186.255"],
["113.207.100.1","113.207.100.255"],
["113.207.101.1","113.207.101.255"],
["113.207.102.1","113.207.102.255"],
["183.232.51.1","183.232.51.255"],
["183.232.53.1","183.232.53.255"],
["183.61.177.1","183.61.177.255"],
["119.147.134.1","119.147.134.255"],
["183.61.236.1","183.61.236.255"],
["183.61.190.1","183.61.190.255"],
["14.17.71.1","14.17.71.255"],
["157.255.24.1","157.255.24.255"],
["157.255.25.1","157.255.25.255"],
["157.255.26.1","157.255.26.255"],
["111.32.134.1","111.32.134.255"],
["111.32.135.1","111.32.135.255"],
["111.32.136.1","111.32.136.255"],
["125.39.174.1","125.39.174.255"],
["125.39.238.1","125.39.238.255"],
["125.39.239.1","125.39.239.255"],
["42.236.93.1","42.236.93.255"],
["42.236.94.1","42.236.94.255"],
["42.236.7.64","42.236.7.127"],
["42.236.7.128","42.236.7.255"],
["58.211.2.1","58.211.2.255"],
["58.211.137.1","58.211.137.255"],
["61.155.149.1","61.155.149.255"],
["111.132.134.1","111.132.134.255"],
["111.132.135.1","111.132.135.255"],
["111.132.136.1","111.132.136.255"],
["180.163.188.1","180.163.188.255"],
["180.163.189.1","180.163.189.255"],
["101.227.206.1","101.227.206.255"],
["101.227.207.1","101.227.207.255"],
["180.163.113.1","180.163.113.255"],
["180.163.154.1","180.163.154.255"],
["180.163.153.1","180.163.153.255"],
["103.21.244.1","103.21.247.255"],
["103.22.200.1","103.22.203.255"],
["103.31.4.1","103.31.7.1"],
["104.16.0.1","104.31.255.255"],
["108.162.192.1","108.162.255.255"],
["131.0.72.1","131.0.75.255"],
["141.101.64.1","141.101.127.255"],
["162.158.0.1","162.159.255.255"],
["172.64.0.1","172.71.255.255"],
["173.245.48.1","173.245.63.255"],
["188.114.96.1","188.114.111.255"],
["190.93.240.1","190.93.255.255"],
["197.234.240.1","197.234.243.255"],
["198.41.128.1","198.41.255.255"],
["199.27.128.1","199.27.135.255"]]

百度云加速节点ip白名单下载文件:https://uploadfile.xaheimi.com/2021/0923/20210923121409841.txt 

(适用于宝塔自带的Nginx防火墙)其他的像安全狗和云锁去百度云加速官方下载文件直接导入。

 

原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/262962.html

(0)
上一篇 2022年5月28日
下一篇 2022年5月28日

相关推荐

发表回复

登录后才能评论