dreamramon
V2EX  ›  问与答

iptables 或者其他防火墙只允许来自 cloudflare 的访问

  •  
  •   dreamramon · Oct 12, 2021 · 1411 views
    This topic created in 1699 days ago, the information mentioned may be changed or developed.

    新上线的一个海外业务的 cdn 用的 cloudflare,后面是一个 ubuntu 上面跑的 nginx,开了 80 和 443 。不知道有没有办法这个 80 和 443 只允许 cloudflare 的 ip 。。。求助有海外经验的同学。。。

    4 replies    2021-10-12 21:21:06 +08:00
    Dragonish3600
        1
    Dragonish3600  
       Oct 12, 2021
    这不是最基本的么

    https://www.cloudflare.com/ips/
    mason961125
        2
    mason961125  
       Oct 12, 2021
    Argo Tunnel
    mschultz
        3
    mschultz  
       Oct 12, 2021   ❤️ 1
    如果你用 Argo Tunnel
    https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/install-and-setup
    你甚至不需要在防火墙上开放 80 和 443 端口
    dreamramon
        4
    dreamramon  
    OP
       Oct 12, 2021
    哇。。。还有这么强大的东西,谢谢楼上的同学。。。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3025 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 56ms · UTC 14:26 · PVG 22:26 · LAX 07:26 · JFK 10:26
    ♥ Do have faith in what you're doing.