Thiết lập nguồn riêng tư thông qua Cloudflare WAN Set up a private origin via Cloudflare WAN ការបង្កើតប្រភពឯកជនតាម Cloudflare WAN
Hướng dẫn chi tiết đồng bộ từ docs Cloudflare — mỗi section có backlink tới đúng vị trí trên trang gốc. Detailed guide synced from Cloudflare docs — each section links to the matching anchor on the official page. មគ្គុទ្ទេសក៍លម្អិតធ្វើសមកាលពី docs Cloudflare — ផ្នែកនីមួយៗមានតំណទៅទីតាំងត្រូវគ្នានៅទំព័រផ្លូវការ។
← Danh mục ← Catalog ← បញ្ជីGiải thích nhanh Quick context បរិបទរហ័ស
Thuộc nhóm Application Services — tập trung bảo vệ, tăng tốc và vận hành ứng dụng/web phía trước origin. Tutorial «Thiết lập private origin via Cloudflare WAN» giúp bạn làm quen luồng triển khai thật — phù hợp đọc trước khi mở tài liệu gốc tiếng Anh. Docs gốc chia khoảng 3 bước chính; bản tóm tắt dưới đây giúp bạn nắm khung trước khi làm theo từng lệnh.
Proxy public hostnames to private origins through a Cloudflare WAN IPsec tunnel.
ទាញយកប្រព័ន្ធប្រតិបត្តិការ WAN IPsec tunnel សម្រាប់ប្រព័ន្ធប្រតិបត្តិការ WAN
Lưu ý Note ចំណាំ
Lưu ý trước khi làm Notes before you start ចំណាំមុនពេលចាប់ផ្តើម
- Đây là bản tóm tắt trên Orange Cloud Learning Hub — không thay thế tài liệu chính thức.
- Luôn mở liên kết «Tài liệu gốc» bên dưới khi cần lệnh CLI, snippet code và ảnh minh họa đầy đủ.
- Docs Cloudflare cập nhật thường xuyên — đối chiếu ngày «Rà soát lần cuối» trên trang gốc khi triển khai production.
- This is a summary on Orange Cloud Learning Hub — it does not replace the official documentation.
- Open the Official docs link below for CLI commands, code snippets, and full screenshots.
- Cloudflare docs change frequently — verify the Last reviewed date on the official page before production use.
- នេះគឺជាការបញ្ជាក់អំពី Orange Cloud Learning Hub — វាគឺជាការផ្លាស់ប្តូរនៃឯកសារផ្លូវការ។
- ចុចតំណភ្ជាប់ Docs Official នៅខាងក្រោមសម្រាប់ការបញ្ជា CLI, សៀវភៅកូដនិងរូបថតពេញលេញ។
- Cloudflare បានផ្លាស់ប្តូរជាធម្មតានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅ។
Overview Overview Overview
Hướng dẫn này chỉ cách proxying public hostnames to origins on a private network. The private network is reachable through a Cloudflare WAN (formerly Magic WAN) IPsec tunnel. The CDN, WAF, Cache, and other proxied features apply to this traffic the same way they apply to traff…
Read the "Overview" section below — open the official docs link for full screenshots and configuration tabs.
អានផ្នែក «Overview» ខាងក្រោម — បើកតំណ docs ផ្លូវការសម្រាប់រូបភាព និង tab កំណត់។
Liên kết liên quan (docs Cloudflare) Related links (Cloudflare docs) តំណពាក់ព័ន្ធ (docs Cloudflare)
Trước khi bạn bắt đầu Before you begin មុនពេលដែលអ្នកចាប់ផ្តើម
Phần «Before you begin» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.
Read the "Before you begin" section below — open the official docs link for full screenshots and configuration tabs.
អានផ្នែក «មុនពេលដែលអ្នកចាប់ផ្តើម» ខាងក្រោម — បើកតំណ docs ផ្លូវការសម្រាប់រូបភាព និង tab កំណត់។
- Active Cloudflare WAN subscription: Tính năng này yêu cầu đăng ký WAN Cloudflare trên tài khoản của bạn.
- Access to private origins enabled on your account: Đây là quyền riêng biệt từ tiêu chuẩn có thẩm quyền DNS access. Liên hệ với nhóm tài khoản Cloudflare của bạn để yêu cầu access.
- IPsec tunnels configured: Thiết lập hai đường hầm IPsec anycast cho sự dư thừa, mỗi đường hầm có điểm cuối anycast khác nhau Cloudflare. Nhắc đến Configure tunnel endpoints Hai cài đặt là quan trọng cho trường hợp sử dụng này:
- Active Cloudflare WAN subscription: This capability requires a Cloudflare WAN subscription on your account.
- Access to private origins enabled on your account: This is a separate entitlement from standard authoritative DNS access. Contact your Cloudflare account team to request access.
- IPsec tunnels configured: Set up two anycast IPsec tunnels for redundancy, each with a different Cloudflare anycast endpoint. Refer to Configure tunnel endpoints. Two settings are important for this use case:
- Active Cloudflare WAN subscription: សមត្ថភាពនេះត្រូវការការគណនី Cloudflare WAN នៅលើគណនីរបស់អ្នក។
- Access to private origins enabled on your account: នេះគឺជាការអនុញ្ញាតដោយផ្ទាល់ពីការអនុញ្ញាតទូទៅ DNS access ។ សូមទាក់ទងជាមួយក្រុមប្រឹក្សាភិបាលគណនីរបស់អ្នក Cloudflare ដើម្បីស្វែងរក access ។
- IPsec tunnels configured: បានបង្កើតទីផ្សារ IPsec ទាំងអស់ទាំងពីរសម្រាប់ការ redundancy, ទាំងអស់ជាមួយនឹង Cloudflare ដំណាក់កាលទាំងអស់។ សូមអរគុណ Configure tunnel endpoints ការផ្លាស់ប្តូរទាំងពីរគឺជាការសំខាន់សម្រាប់ការប្រើប្រាស់នេះ:
reply, hướng bidirectional, tỷ lệ mid). Những mặc định này là cần thiết cho tunnel sức khỏe để theo dõi chính xác trong trường hợp sử dụng này.reply, direction bidirectional, rate mid). These defaults are required for tunnel health to track correctly in this use case.reply, គោលបំណង bidirectional, កម្រិត mid) ។ នេះជាការចាំបាច់ដើម្បី tunnel សុខភាពដើម្បីរក្សាទុកយ៉ាងត្រឹមត្រូវនៅក្នុងការប្រើប្រាស់នេះ។- Static routes configured: Thêm hai tuyến đường tĩnh cho tiền tố riêng mà bạn muốn tiếp cận - một cho mỗi tunnel - với các ưu tiên khác nhau để lưu lượng truy cập không chuyển sang sao lưu tunnel nếu chính đi xuống. Ví dụ, đặt ưu tiên
100trên tuyến đường thông qua tunnel chính của bạn và101trên tuyến đường thông qua sao lưu tunnel của bạn (số thấp hơn là ưu tiên cao hơn). Nhắc đến Configure routes - Cloudflare Source IP set to a private range: Cloudflare Nguồn IP là IP mà Cloudflare sử dụng khi gửi yêu cầu proxy vào mạng riêng của bạn. Nếu nó được để lại như một phạm vi công cộng, mạng của bạn không thể định tuyến lưu lượng truy cập trở lại thông qua tunnel và yêu cầu thời gian ra. Nhắc đến Configure Cloudflare source IPs
- Static routes configured: Add two static routes for the private prefix you want to reach — one per tunnel — with different priorities so traffic fails over to the backup tunnel if the primary goes down. For example, set priority
100on the route through your primary tunnel and101on the route through your backup tunnel (lower numbers are higher priority). Refer to Configure routes. - Cloudflare Source IP set to a private range: The Cloudflare Source IP is the IP that Cloudflare uses when sending proxied requests into your private network. If it is left as a public range, your network cannot route the return traffic back through the tunnel and requests time out. Refer to Configure Cloudflare source IPs.
- Static routes configured: Add two static routes for the private prefix you want to reach — one per tunnel — with different priorities so traffic fails to the backup tunnel if the primary goes down. លក្ខណៈពិសេសរបស់អ្នកគឺ
100នៅលើដំណើរការតាមដំណើរការ tunnel និង101នៅលើដំណើរការតាមដំណើរការតាមដំណើរការតាមដំណើរការតាមដំណើរការ tunnel ។ សូមអរគុណ Configure routes ។ - Cloudflare Source IP set to a private range: ទិន្នន័យ Cloudflare ទិន្នន័យ IP គឺជាទិន្នន័យ IP ដែល Cloudflare ប្រើក្នុងការផ្ញើសំណួរ proxy ទៅលើបណ្តាញឯកជនរបស់អ្នក។ ប្រសិនបើវាត្រូវបានផ្ដល់ឱ្យជាតម្រូវការចែករំលែកចែកចែកចែកចែកចែកចែកចែកចែកចែកចែកចែកចែកចែកចែកចែកចែកចែកចែកចែកចែកចែកចែកចែកចែកចែកចែកចែកចែកចែកចែកចែកចែកចែកចែកចែកចែកចែកចែកចែកចែកចែកចែកចែកចែកចែកចែកចែកចែកចែកចែកចែកចែកចែកចែកចែកចែកចែកចែកចែកចែកចែកចែកចែកចែកចែកចែកចែកចែកចាយចែកចែកចាយចែកចាយចែកចាយចាយចែកចាយចែកចាយចែកចាយចាយចែកចាយចែកចាយច សូមអរគុណ Configure Cloudflare source IPs
Liên kết liên quan (docs Cloudflare) Related links (Cloudflare docs) តំណពាក់ព័ន្ធ (docs Cloudflare)
1.Điều Kiểm tra Cloudflare Nguồn IP Allocation 1. Verify your Cloudflare Source IP allocation 1 ។ សូមពិនិត្យមើល Cloudflare ទិន្នន័យ IP
Phần «Xác minh your Cloudflare Source IP allocation» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.
Read the "1. Verify your Cloudflare Source IP allocation" section below — open the official docs link for full screenshots and configuration tabs.
អានផ្នែក «1 ។ សូមពិនិត្យមើល Cloudflare ទិន្នន័យ IP» ខាងក្រោម — បើកតំណ docs ផ្លូវការសម្រាប់រូបភាព និង tab កំណត់។
100.64.0.0/12 (mặc định) hoặc /12 riêng tư khác mà bạn đã chọn.100.64.0.0/12 (the default) or another private /12 you have selected.100.64.0.0/12 (តម្រូវការទូទៅ) ឬ /12 ដែលអ្នកបានជ្រើស។Liên kết liên quan (docs Cloudflare) Related links (Cloudflare docs) តំណពាក់ព័ន្ធ (docs Cloudflare)
2.Đối với Tạo bản ghi DNS với định tuyến mạng riêng 2. Create a DNS record with private network routing 2 ។ ការបង្កើតសៀវភៅ DNS ជាមួយនឹងការដំណើរការបណ្តាញឯកជន
Phần «Tạo DNS record với private network routing» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.
Read the "2. Create a DNS record with private network routing" section below — open the official docs link for full screenshots and configuration tabs.
អានផ្នែក «2 ។ ការបង្កើតសៀវភៅ DNS ជាមួយនឹងការដំណើរការបណ្តាញឯកជន» ខាងក្រោម — បើកតំណ docs ផ្លូវការសម្រាប់រូបភាព និង tab កំណត់។
A hoặc AAAA chỉ đến địa chỉ riêng IP của nguồn gốc của bạn, với trạng thái proxy được bật và Use private network routing được bật. Điều này nói Cloudflare để gửi lưu lượng truy cập cho tên máy chủ thông qua Cloudflare WAN của bạn tunnel thay vì thông qua Internet công cộng.A or AAAA record that points to the private IP address of your origin, with proxy status enabled and Use private network routing turned on. This tells Cloudflare to send traffic for the hostname through your Cloudflare WAN tunnel instead of over the public Internet.A ឬ AAAA ដែលបង្ហាញទៅ IP អាសយដ្ឋានឯកជនរបស់អ្នក, ជាមួយនឹងសកម្មភាព proxy និង Use private network routing បានបើក។ នេះបានបង្ហាញ Cloudflare ដើម្បីផ្ញើការដឹកជញ្ជូនសម្រាប់ឈ្មោះក្រុមហ៊ុនផ្គត់ផ្គង់តាមរយៈ Cloudflare WAN tunnel របស់អ្នកដោយផ្អែកលើអ៊ីនធឺណិត។Liên kết liên quan (docs Cloudflare) Related links (Cloudflare docs) តំណពាក់ព័ន្ធ (docs Cloudflare)
3 Cái Kiểm tra kết nối end-to-end 3. Verify end-to-end connectivity 3 ។ ការត្រួតពិនិត្យការតភ្ជាប់ end-to-end
Phần «Xác minh end-to-end connectivity» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.
Read the "3. Verify end-to-end connectivity" section below — open the official docs link for full screenshots and configuration tabs.
អានផ្នែក «3 ។ ការត្រួតពិនិត្យការតភ្ជាប់ end-to-end» ខាងក្រោម — បើកតំណ docs ផ្លូវការសម្រាប់រូបភាព និង tab កំណត់។
Kiểm tra tunnel sức khỏe Check tunnel health ពិនិត្យឡើងវិញ tunnel សុខភាព
Phần «Check tunnel health» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.
Read the "Check tunnel health" section below — open the official docs link for full screenshots and configuration tabs.
អានផ្នែក «ពិនិត្យឡើងវិញ tunnel សុខភាព» ខាងក្រោម — បើកតំណ docs ផ្លូវការសម្រាប់រូបភាព និង tab កំណត់។
Liên kết liên quan (docs Cloudflare) Related links (Cloudflare docs) តំណពាក់ព័ន្ធ (docs Cloudflare)
Gửi yêu cầu từ một khách hàng bên ngoài Send a request from an external client សូមផ្ញើសំណួរពីអតិថិជនខាងក្រៅ
Phần «Send request từ external client» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.
Read the "Send a request from an external client" section below — open the official docs link for full screenshots and configuration tabs.
អានផ្នែក «សូមផ្ញើសំណួរពីអតិថិជនខាងក្រៅ» ខាងក្រោម — បើកតំណ docs ផ្លូវការសម្រាប់រូបភាព និង tab កំណត់។
curl -v https://<YOUR_DOMAIN>/ Xác nhận giao thông trên nguồn gốc Confirm traffic on the origin ការបញ្ជាក់ការដឹកជញ្ជូននៅលើដើម
Phần «Confirm traffic on origin» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.
Read the "Confirm traffic on the origin" section below — open the official docs link for full screenshots and configuration tabs.
អានផ្នែក «ការបញ្ជាក់ការដឹកជញ្ជូននៅលើដើម» ខាងក្រោម — បើកតំណ docs ផ្លូវការសម្រាប់រូបភាព និង tab កំណត់។
100.64.0.0/12 trên cổng 443:100.64.0.0/12 on port 443:100.64.0.0/12 នៅលើផែន 443:sudo tcpdump -n -i any 'src net 100.64.0.0/12 and dst port 443' 100.64.0.0/12 bằng phạm vi Nguồn IP được cấu hình cho tài khoản của bạn, và điều chỉnh cổng để phù hợp với người nghe ở nguồn của bạn.100.64.0.0/12 with the Source IP range configured for your account, and adjust the port to match the listener on your origin.100.64.0.0/12 ជាមួយនឹងប្រភេទ Source IP ដែលបានកំណត់សម្រាប់គណនីរបស់អ្នកហើយផ្លាស់ប្តូរប្រព័ន្ធផ្លាស់ប្តូរដើម្បីបំពេញតាមប្រព័ន្ធប្រតិបត្តិការរបស់អ្នក។Điểm chung Pitfalls Common pitfalls ហ្វេសប៊ុក
Phần «Common pitfalls» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.
Read the "Common pitfalls" section below — open the official docs link for full screenshots and configuration tabs.
អានផ្នែក «ហ្វេសប៊ុក» ខាងក្រោម — បើកតំណ docs ផ្លូវការសម្រាប់រូបភាព និង tab កំណត់។
Bước tiếp theo Next steps ជំហានបន្ទាប់
Phần «Bước tiếp theo» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.
Read the "Next steps" section below — open the official docs link for full screenshots and configuration tabs.
អានផ្នែក «ជំហានបន្ទាប់» ខាងក្រោម — បើកតំណ docs ផ្លូវការសម្រាប់រូបភាព និង tab កំណត់។
- Configure tunnel health alerts để được thông báo khi một tunnel đi xuống.
- Xem xét tham chiếu Private network routing cho bảng điều khiển và API chi tiết.
- Nếu bạn gặp sự cố tunnel, hãy tham khảo Tunnel health troubleshooting và IPsec troubleshooting.
- Configure tunnel health alerts to get notified when a tunnel goes down.
- Review the Private network routing reference for dashboard and API details.
- If you run into tunnel issues, refer to Tunnel health troubleshooting and IPsec troubleshooting.
- Configure tunnel health alerts ដើម្បីទទួលបានការយល់ដឹងនៅពេលដែល tunnel បានចុះ។
- សូមពិនិត្យមើល Private network routing សម្រាប់ទិន្នន័យទិន្នន័យទិន្នន័យទិន្នន័យនិង API ។
- ប្រសិនបើអ្នកមានបញ្ហា tunnel សូមមើល Tunnel health troubleshooting និង IPsec troubleshooting ។
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"item":{"@id":"/directory/","name":"Directory"}},{"@type":"ListItem","position":2,"item":{"@id":"/dns/","name":"DNS"}},{"@type":"ListItem","position":3,"item":{"@id":"/dns/private-origins/","name":"Private origins (beta)"}},{"@type":"ListItem","position":4,"item":{"@id":"/dns/private-origins/set-up-via-cloudflare-wan/","name":"Set up a private origin via Cloudflare WAN"}}]} Liên kết liên quan (docs Cloudflare) Related links (Cloudflare docs) តំណពាក់ព័ន្ធ (docs Cloudflare)
Xem bản đầy đủ trên developers.cloudflare.com (ảnh, tab cấu hình). View the full guide on developers.cloudflare.com (images, config tabs). មើលមគ្គុទ្ទេសក៍ពេញលើ developers.cloudflare.com (រូបភាព, tab កំណត់)។
Tài liệu gốc ↗ Official docs ↗ ឯកសារផ្លូវការ ↗