宝塔防火墙设置只能Cloudflare访问
侧边栏壁纸
  • 累计撰写 75 篇文章
  • 累计收到 21 条评论

宝塔防火墙设置只能Cloudflare访问

逍遥博客
2022-05-09 / 0 评论 / 3 阅读 / 正在检测是否收录...
温馨提示:
本文最后更新于2023年09月22日,已超过248天没有更新,若内容或图片失效,请留言反馈。

Cloudflare的全部IP

[["131.0.72.0","131.0.75.255"],
["172.64.0.0","172.71.255.255"],
["104.24.0.0","104.27.255.255"],
["104.16.0.0","104.23.255.255"],
["162.158.0.0","162.159.255.255"],
["198.41.128.0","198.41.255.255"],
["197.234.240.0","197.234.243.255"],
["188.114.96.0","188.114.111.255"],
["190.93.240.0","190.93.255.255"],
["108.162.192.0","108.162.255.255"],
["141.101.64.0","141.101.127.255"],
["103.31.4.0","103.31.7.255"],
["103.22.200.0","103.22.203.255"],
["103.21.244.0","103.21.247.255"],
["173.245.48.0","173.245.63.255"],
["127.0.0.1","127.0.0.255"]]

宝塔设置步骤:

Nginx防火墙 - 全局配置 - IP白名单 - 导入上面IP即可

这样可以套CF的时候也开着宝塔防火墙,避免被宝塔防火墙拦截

CF IP查询地址:
https://www.cloudflare.com/ips-v4
https://www.cloudflare.com/ips-v6

0

评论 (0)

取消
Blog逍遥阁博客