Làm đúng từng bước trên dashboard: zone chạy, HTTPS Full (strict), WAF log rồi block, cache không phá session.Click through the dashboard: a live zone, Full (strict) HTTPS, WAF log-then-block, cache that does not break sessions.ចុចតាម dashboard៖ zone កំពុងដំណើរការ, HTTPS Full (strict), WAF log-then-block, cache ដែលមិនបំបែក session។
Phần 2: SSL/TLS và kết nối originPart 2: SSL/TLS and origin connectionផ្នែក 2: SSL/TLS និងការតភ្ជាប់ origin
·
Bài 2/2 Lesson 2/2 មេរៀន 2/2
Origin certificate và bypassOrigin certificates and bypassOrigin certificate និង bypass
Bắt buộcRequiredចាំបាច់
Mục tiêuGoalគោលដៅ
Cài Origin CA (nếu cần) và chặn truy cập trực tiếp IP origin — attacker không bỏ qua WAF.Install Origin CA (if needed) and block direct origin-IP access — attackers cannot bypass the WAF.ដំឡើង Origin CA (បើត្រូវការ) និងទប់ស្កាត់ access origin-IP ផ្ទាល់ — attackers មិនអាច bypass WAF។
Kết thúc bạn sẽ cóYou'll finish withពេលបញ្ចប់អ្នកនឹងមាន
Origin nhận HTTPS từ Cloudflare; truy cập trực tiếp IP origin bị từ chối hoặc không phục vụ site.Origin accepts HTTPS from Cloudflare; direct origin-IP access is refused or does not serve the site.Origin ទទួល HTTPS ពី Cloudflare; access origin-IP ផ្ទាល់ត្រូវបានបដិសេធ ឬមិន serve site។
Trước khi bắt đầuBefore you beginមុនពេលចាប់ផ្តើម
Đã chọn SSL mode (as-2-l1). SSH/console origin hoặc load balancer.SSL mode already chosen (as-2-l1). SSH/console on origin or the load balancer.SSL mode បានជ្រើសរួច (as-2-l1)។ SSH/console លើ origin ឬ load balancer។
Gói / planPlanPlan
Origin CA miễn phí. Authenticated Origin Pulls có trên các plan zone.Origin CA is free. Authenticated Origin Pulls is available on zone plans.Origin CA ឥតគិតថ្លៃ។ Authenticated Origin Pulls មានលើ zone plans។
Làm theo từng bướcFollow alongធ្វើតាមជំហាន
1Nếu origin chưa có cert public: SSL/TLS → Origin Server → Create Certificate (15 năm, hostnames cần thiết).If origin has no public cert: SSL/TLS → Origin Server → Create Certificate (15 years, required hostnames).បើ origin គ្មាន public cert៖ SSL/TLS → Origin Server → Create Certificate (15 years, hostnames ដែលត្រូវការ)។
Bạn sẽ thấy: What you'll see: អ្នកនឹងឃើញ៖ PEM cert + private key hiện một lần — lưu vào secret store, cài trên nginx/caddy/load balancer.PEM cert + private key shown once — store in a secret store, install on nginx/caddy/load balancer.PEM cert + private key បង្ហាញម្តង — រក្សាក្នុង secret store, ដំឡើងលើ nginx/caddy/load balancer។
Nhấp: Click: ចុច៖ Create Certificate → RSA hoặc ECDSACreate Certificate → RSA or ECDSACreate Certificate → RSA ឬ ECDSA
2Cài cert trên origin, reload web server, xác nhận origin lắng nghe 443.Install the cert on origin, reload the web server, confirm origin listens on 443.ដំឡើង cert លើ origin, reload web server, បញ្ជាក់ថា origin ស្តាប់លើ 443។
Checkpoint: Checkpoint: Checkpoint៖ Từ máy có quyền: openssl s_client -connect ORIGIN_IP:443 không lỗi handshake (lab).From a host that can reach it: openssl s_client -connect ORIGIN_IP:443 handshake succeeds (lab).ពី host ដែលអាចទៅដល់៖ openssl s_client -connect ORIGIN_IP:443 handshake ជោគជ័យ (lab)។
3Firewall origin: chỉ cho IP Cloudflare (hoặc bật Authenticated Origin Pulls).Origin firewall: allow only Cloudflare IPs (or enable Authenticated Origin Pulls).Origin firewall៖ អនុញ្ញាតតែ Cloudflare IPs (ឬបើក Authenticated Origin Pulls)។
Bạn sẽ thấy: What you'll see: អ្នកនឹងឃើញ៖ Danh sách IP: developers.cloudflare.com/fundamentals/reference/cloudflare-ip-addresses/IP list: developers.cloudflare.com/fundamentals/reference/cloudflare-ip-addresses/IP list: developers.cloudflare.com/fundamentals/reference/cloudflare-ip-addresses/
Checkpoint: Checkpoint: Checkpoint៖ Trình duyệt tới http(s)://ORIGIN_IP không ra được homepage production (timeout, 403, hoặc vhost mặc định).Browser to http(s)://ORIGIN_IP does not serve the production homepage (timeout, 403, or default vhost).Browser ទៅ http(s)://ORIGIN_IP មិន serve homepage production (timeout, 403, ឬ default vhost)។
Cẩn thậnWatch outប្រុងប្រយ័ត្ន
Lockdown firewall trước khi proxy ổn — tự khóa mình. Làm proxy + SSL xong rồi mới thắt IP.Tightening the firewall before proxy is stable locks you out. Finish proxy + SSL, then lock IPs.ការតឹង firewall មុន proxy ស្ថិរភាពចាក់សោអ្នកចេញ។ បញ្ចប់ proxy + SSL, រួច lock IPs។
Quên IPv6 trên origin allowlist nếu visitor/IPv6 đi qua Cloudflare.Forgetting IPv6 on the origin allowlist if visitors/IPv6 traverse Cloudflare.ភ្លេច IPv6 លើ origin allowlist បើ visitors/IPv6 ឆ្លងកាត់ Cloudflare។
MẹoTipsគន្លឹះ
Authenticated Origin Pulls mạnh hơn allowlist IP đơn thuần — origin chỉ chấp nhận TLS từ Cloudflare.Authenticated Origin Pulls is stronger than a bare IP allowlist — origin only accepts TLS from Cloudflare.Authenticated Origin Pulls ខ្លាំងជាង IP allowlist ទទេ — origin ទទួលតែ TLS ពី Cloudflare។
Giữ console/VPN vào origin — rollback khi allowlist sai.Keep console/VPN to origin — rollback if the allowlist is wrong.រក្សា console/VPN ទៅ origin — rollback បើ allowlist ខុស។
Nguồn sự thật: tài liệu chính thức Cloudflare Developers (diễn giải, không sao chép nguyên văn). Nhãn menu dashboard có thể đổi — chọn mục tương đương gần nhất.Source of truth: official Cloudflare Developer docs (paraphrased, not copied verbatim). Dashboard labels shift — follow the nearest equivalent.ប្រភពពិត: official Cloudflare Developer docs (paraphrased)។ Dashboard labels ផ្លាស់ — តាម equivalent ជិតបំផុត។
Nếu origin chưa có cert hợp lệ, cài Cloudflare Origin CA (miễn phí, tối đa 15 năm) rồi chuyển encryption mode sang Full (strict).If your origin lacks a valid certificate, install a free Cloudflare Origin CA certificate (valid up to 15 years), then set encryption mode to Full (strict).If your origin lacks a valid certificate, install a free Cloudflare Origin CA certificate (valid up to 15 years), then set encryption mode to Full (strict).
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.
Hướng dẫn này sử dụng Managed HSM của Microsoft Azure để triển khai một VM với keyless SSL daemon. Làm theo các hướng dẫn này để triển khai máy chủ không chìa khóa của bạn.
This tutorial uses Microsoft Azure's Managed HSM to deploy a VM with the Keyless SSL daemon. Follow these instructions to deploy your keyless server.
ការបង្រៀននេះប្រើ Microsoft Azure's Managed HSM ដើម្បីដាក់ពង្រាយ VM ជាមួយនឹងដេមិន Keyless SSL ។ អនុវត្តតាមការណែនាំទាំងនេះ ដើម្បីដាក់ឱ្យប្រើម៉ាស៊ីនមេដែលគ្មានសោរបស់អ្នក។
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.