Translated by AI
ខ្លឹមសារភាសាខ្មែរនេះត្រូវបានបកប្រែដោយ AI ហើយអាចមានកំហុស។ យើងណែនាំឱ្យសិក្សាជាភាសាអង់គ្លេស។
This Khmer content is translated by AI and may contain errors. We recommend studying in English.
Lộ trình đang họcCurrent learning pathCurrent learning path
Cloudflare OneCloudflare OneCloudflare One
Bảo vệ users, access, SaaS và networks — follow-along từ tài khoản đến go-live.Secure users, access, SaaS, and networks — follow along from account to go-live.Secure users, access, SaaS, and networks — follow along from account to go-live.
Phần 5: Gateway — lọc web và Shadow ITPart 5: Gateway — web filtering and Shadow ITPart 5: Gateway — web filtering and Shadow IT
·
Bài 1/4 Lesson 1/4 មេរៀន 1/4
Gateway theo lớp: DNS → Network → HTTPGateway in layers: DNS → Network → HTTPGateway in layers: DNS → Network → HTTP
Module 5 — Gateway (Web Filtering / Secure Web Gateway)
Mục tiêu: Lọc lưu lượng internet của người dùng — chặn malware, phishing và các danh mục rủi ro ở tầng DNS, sau đó kiểm tra lưu lượng web (HTTPS) để thực thi chính sách sử dụng hợp lệ. Đây cũng là cơ chế mà DLP (Module 6) và kiểm soát AI (Module 7) gắn vào.
👤 Ai làm việc này
Đội bảo mật
⏱️ Thời gian
~60 phút
🎯 Kết thúc bạn sẽ có
Malware/phishing bị chặn, một trang chặn hoạt động, và kiểm tra HTTPS đang chạy trên nhóm thử nghiệm
✋ Trước khi bắt đầu
Đã xong Module 3 (thiết bị kết nối ở chế độ Gateway with WARP, đã cài chứng chỉ Cloudflare)
🧱 Xây theo từng lớp, theo thứ tự này:DNS (dễ nhất, an toàn nhất) → Network → HTTP/HTTPS (mạnh nhất, cần chứng chỉ). Làm DNS trước và bạn có giá trị trong 5 phút.
Phần A — Lọc DNS (bắt đầu tại đây)
Lọc DNS chặn các tên miền xấu trước khi kết nối được thiết lập. Nó hoạt động ngay cả khi không có kiểm tra sâu, nên đây là bước đầu an toàn nhất.
👉 Rule: Selector Application → in → chọn loại ứng dụng "Do Not Inspect" có sẵn (Cloudflare cập nhật danh sách này cho các ứng dụng không tương thích đã biết).
👉 Action:Do Not Inspect → Create policy.
💡 Nếu bạn dùng Microsoft 365, cũng hãy bật ngoại lệ lưu lượng Microsoft 365 một cú nhấp trong Settings → Network (hoặc thêm nó như một application tại đây).
Bước C2 — Bật TLS decryption
👉 Zero Trust → Settings → Network.
👉 Tìm TLS decryption (Firewall) → bật On.
✅ Điểm kiểm tra: Trên một thiết bị thử nghiệm, duyệt vài trang HTTPS bình thường (email của bạn, một trang tin). Chúng phải tải không có cảnh báo chứng chỉ. Nếu bạn gặp cảnh báo, chứng chỉ chưa được tin cậy — quay lại Module 3 Phần D.
Bước C3 — Xác nhận kiểm tra đang hoạt động
👉 Gateway → Logs → HTTP.
📺 Bạn giờ thấy các mục với URL/đường dẫn đầy đủ (không chỉ tên miền), chứng tỏ HTTPS đang được kiểm tra.
Phần D — Chính sách HTTP (thực thi quy tắc web)
Giờ bạn có thể viết các quy tắc mạnh trên lưu lượng web.
🛡️ Muốn chạy các trang rủi ro trong một remote browser an toàn (và tắt copy/paste, tải xuống, in)? Đó là Remote Browser Isolation — xem Module 5c — Remote Browser Isolation (RBI).
Bạn sẽ phát hiện và ngăn dữ liệu nhạy cảm rời đi. (Cần Enterprise.)
Module 5 — Gateway (Web Filtering / Secure Web Gateway)
Goal: Filter your users' internet traffic — block malware, phishing, and risky categories at the DNS layer, then inspect web (HTTPS) traffic to enforce acceptable use. This is also the engine that DLP (Module 6) and AI controls (Module 7) plug into.
👤 Who does this
Security team
⏱️ Time
~60 minutes
🎯 You'll finish with
Malware/phishing blocked, a working block page, and HTTPS inspection running on your pilot group
✋ Before you begin
Module 3 done (devices connected in Gateway with WARP mode, Cloudflare certificate installed)
🧱 Build it in layers, in this order:DNS (easiest, safest) → Network → HTTP/HTTPS (most powerful, needs the certificate). Do DNS first and you get value in 5 minutes.
Part A — DNS filtering (start here)
DNS filtering blocks bad domains before a connection is even made. It works even without deep inspection, so it's the safest first step.
Step A1 — Block security threats
👉 Zero Trust → Gateway → Firewall Policies → DNS tab.
👉 Click Add a policy.
⌨️ Policy name:Block security threats.
👉 Build the rule:
Field
Value
Selector
Security Categories
Operator
in
Value
tick Malware, Phishing, Command & Control, Cryptomining, DNS Tunneling, DGA Domains, New Domains
👉 Action:Block.
👉 Click Create policy.
✅ Checkpoint: The policy appears at the top of your DNS list, enabled.
Step A2 — Test the block (safe test)
👉 On your pilot device, browse to a Cloudflare test threat page (e.g. https://malware.testcategory.com).
📺 What you'll see: A Cloudflare block page instead of the site. 🎉
✅ Checkpoint: The block page appears. (If the real site loads, see troubleshooting.)
Step A3 — Enforce acceptable use (optional content categories)
👉 Add another DNS policy named Block content categories.
👉 Selector Content Categories → in → tick categories per your policy (e.g. Adult Themes, Gambling).
👉 Action Block → Create policy.
Step A4 — Protect offices without the client (DNS Locations)
For a whole office/network where you can't install the app on every device:
👉 Gateway → DNS Locations → Add a location.
⌨️ Name it (e.g. HQ-London).
📺 Cloudflare shows you DNS endpoints (an IPv4/IPv6 address, a DoH URL, and a DoT hostname).
👉 Point that office's router/DNS forwarder at those endpoints.
✅ Checkpoint: DNS queries from that office now show up under Gateway → Logs → DNS and obey your policies.
Part B — Network filtering (optional, L4)
Control traffic by port/protocol — for example, stop clients sending email directly.
👉 Rule: Selector Destination Port → in → 25. Action Block.
👉 Create policy.
💡 Network policies require devices in Gateway with WARP mode (or a Cloudflare WAN site). They do nothing for DNS-only setups.
Part C — Inspect HTTPS traffic (TLS decryption)
To filter inside encrypted web traffic (and to enable DLP and AI scanning), Cloudflare needs to decrypt and re-encrypt HTTPS using the certificate you installed in Module 3.
⚠️ Watch out — do this in the right order or you'll break websites:
✅ Confirm the Cloudflare certificate is installed on your pilot devices (Module 3, Part D).
✅ Set up your "Do Not Inspect" exceptions FIRST (Step C1 below).
✅ Only then turn decryption on (Step C2), and only for your pilot group.
Step C1 — Add Do Not Inspect exceptions (before enabling)
Some apps refuse to work when inspected (they "pin" their certificate). Exempt them first.
👉 Rule: Selector Application → in → choose the built-in "Do Not Inspect" application type (Cloudflare keeps this list updated for known incompatible apps).
👉 Action:Do Not Inspect → Create policy.
💡 If you use Microsoft 365, also turn on the one-click Microsoft 365 traffic exception in Settings → Network (or add it as an application here).
Step C2 — Turn on TLS decryption
👉 Zero Trust → Settings → Network.
👉 Find TLS decryption (Firewall) → toggle it On.
✅ Checkpoint: On a pilot device, browse a few normal HTTPS sites (your email, a news site). They should load without certificate warnings. If you get warnings, the certificate isn't trusted — revisit Module 3 Part D.
Step C3 — Verify inspection is working
👉 Gateway → Logs → HTTP.
📺 You now see entries with full URLs/paths (not just domains), proving HTTPS is being inspected.
Gateway theo phase: DNS filtering trước (resolver hoặc WARP DNS-only), chặn malware/phishing, xem DNS log — rồi mới network/HTTP inspection.Roll out Gateway in phases: DNS filtering first (resolver or WARP DNS-only), block malware/phishing, review DNS logs — then add network/HTTP inspection.Roll out Gateway in phases: DNS filtering first (resolver or WARP DNS-only), block malware/phishing, review DNS logs — then add network/HTTP inspection.
Ví dụ chính thức từ Cloudflare Resources — gợi ý theo chủ đề bài học trong lộ trình này.Official examples from Cloudflare Resources — matched to this lesson within this path.Official examples from Cloudflare Resources — matched to this lesson within this path.
Sơ đồ kiến trúcReference architecture diagramគំនូសស្ថាបត្យកម្មយោងCloudflare OneCloudflare OneCloudflare One
Lọc DNS cho nhà cung cấp InternetDNS filtering solution for Internet service providersDNS filtering solution for Internet service providers
Dùng Cloudflare Gateway làm giải pháp lọc DNS cho nhà cung cấp Internet (ISP).
Learn how to use Cloudflare Gateway as a DNS filtering solution for Internet service providers.
Learn how to use Cloudflare Gateway as a DNS filtering solution for Internet service providers.
Hướng dẫn này giải thích cách sử dụng Cloudflare AI Gateway và Zero Trust để tạo ra một trang web đóng gói chức năng và an toàn cho một đại lý AI.
This tutorial explains how to use Cloudflare AI Gateway and Zero Trust to create a functional and secure website wrapper for an AI agent.
វគ្គបណ្តុះបណ្តាលនេះបង្ហាញពីរបៀបដើម្បីប្រើ Cloudflare AI Gateway និង Zero Trust ដើម្បីបង្កើតវគ្គបណ្តុះបណ្តាលគេហទំព័រដែលមានប្រសិទ្ធិភាពនិងសុវត្ថិភាពសម្រាប់អេក្រង់ AI ។
Bảo vệ dữ liệu đang truyền (data in transit)Securing data in transitSecuring data in transit
Bảo vệ data in transit với Gateway/DLP — inspect TLS traffic trước khi tới SaaS hoặc Internet.Data in transit is often considered vulnerable to interception or tampering during transmission. Data Loss Prevention (DLP) technologies can be used to inspect the contents of network traffic and block sensitive data from going to a risky destination.Data in transit is often considered vulnerable to interception or tampering during transmission. Data Loss Prevention (DLP) technologies can be used to inspect the contents of network traffic and block sensitive data from going to a risky destination.
Học xong hoặc muốn đổi hướng?Finished or want a different path?Finished or want a different path?
Ba lộ trình độc lập — mỗi lộ trình chỉ gồm bài học và tài liệu trong phạm vi đó. Chọn lộ trình khác khi sẵn sàng, không cần học song song.Three independent paths — each includes only lessons and materials for that scope. Switch when you are ready; no need to study paths in parallel.Three independent paths — each includes only lessons and materials for that scope. Switch when you are ready; no need to study paths in parallel.