# 即使使用Cloudflare CDN，也如何解决源IP泄露和DD攻击的问题？

**URL:** <https://meta.discourse.org/t/how-to-solve-the-problem-of-source-ip-leakage-and-dd-attacks-even-when-using-cloudflare-cdn/326476>\
**Category:** Support\
**Created:** [2024年九月14日 06:33 UTC](https://meta.discourse.org/t/how-to-solve-the-problem-of-source-ip-leakage-and-dd-attacks-even-when-using-cloudflare-cdn/326476 "2024-09-14T06:33:38Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)\
**Post date:** [2024年九月14日 21:35 UTC](https://meta.discourse.org/t/how-to-solve-the-problem-of-source-ip-leakage-and-dd-attacks-even-when-using-cloudflare-cdn/326476/7 "2024-09-14T21:35:25Z")

</div>

> [@MarcP](#):
>
> 但在我的例子中，使用 ufw，值得一提的是，docker 默认会绕过 ufw，因此您需要确保也将其规则应用于您的内部 docker IP。

您将需要使用您的 VPS 提供商为您提供的防火墙。使用基于主机的防火墙在对抗 DDoS 攻击方面效果会差得多，因为流量确实会到达您的网络堆栈。

---

_[View the full topic](https://meta.discourse.org/t/how-to-solve-the-problem-of-source-ip-leakage-and-dd-attacks-even-when-using-cloudflare-cdn/326476)._
