Truy cập clientless tới DNS private qua Cloudflare Access Access a web application via its private hostname without the Cloudflare One Client
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.
← Danh mục ← CatalogGiải thích nhanh Quick context
Thuộc Cloudflare One — Zero Trust, truy cập an toàn và kiểm soát traffic người dùng/thiết bị. Tutorial «Access web ứng dụng via its private hostname without Cloudflare One Client» 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. Đọc phần tóm tắt và lưu ý trước — sau đó mở docs gốc để copy lệnh và cấu hình chi tiết.
With Cloudflare Browser Isolation and resolver policies, users can connect to private web-based applications via their private hostnames.
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 đủ.
- Zero Trust thường cần quyền admin trên tenant Cloudflare One và IdP đã kết nối.
- 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.
Tài liệu gốc — rà soát lần cuối: over 2 years ago Official docs — last reviewed: over 2 years ago
Tổng quan Overview
Phần «Tổng quan» — đọ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 đủ.
With Cloudflare Browser Isolation and resolver policies, users can connect to private web-based applications via their private hostnames without needing to install the Cloudflare One Client. By the end of this tutorial, users who pass your Gateway DNS and network policies will be able to access your private application at https://<your-team-name>.cloudflareaccess.com/browser/https://internalrecord.com.
Before you begin 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 đủ.
Make sure you have:
- Cloudflare Browser Isolation enabled on your account
- Resolver policies enabled on your account
- An HTTP or HTTPS application that users access through a browser
Liên kết liên quan (docs Cloudflare) Related links (Cloudflare docs)
Tạo Cloudflare Tunnel Create a Cloudflare Tunnel
Phần «Tạo Cloudflare Tunnel» — đọ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 đủ.
First, install cloudflared on a server in your private network:
- Log in to the Cloudflare dashboard ↗ and go to Zero Trust \> Networks \> Connectors \> Cloudflare Tunnels.
- Select Create a tunnel.
- Choose Cloudflared for the connector type and select Next.
- Enter a name for your tunnel. We suggest choosing a name that reflects the type of resources you want to connect through this tunnel (for example,
enterprise-VPC-01). - Select Save tunnel.
- Next, you will need to install
cloudflaredand run it. To do so, check that the environment under Choose an environment reflects the operating system on your machine, then copy the command in the box below and paste it into a terminal window. Run the command. - Once the command has finished running, your connector will appear in Cloudflare One.
- Select Next.
Thêm private network routes Add private network routes
Phần «Thêm private network routes» — đọ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 đủ.
- In the CIDR tab, add the following IP addresses:
Private IP/CIDR of your application server (for example, 10.128.0.175/32) Private IP/CIDR of your DNS server
- Select Save tunnel.
The application and DNS server are now connected to Cloudflare.
Enable Clientless Web Isolation Enable Clientless Web Isolation
Phần «Enable Clientless Web Isolation» — đọ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 đủ.
- In Cloudflare One ↗, go to Browser isolation \> Browser isolation settings.
- Turn on Allow users to open a remote browser without the device client.
- For Permissions, select Manage.
- Select Add a rule.
- Create an expression that defines who can open the Clientless Web Isolation browser. For example,
| Rule action | Rule type | Selector | Value | Action | | ----------- | --------- | ---------------- | ------------ | ---------------- | | Allow | Include | Emails ending in | @example.com | Select Save. |
To test, open a browser and go to https://<team-name>.cloudflareaccess.com/browser/https://<private-IP-of-application>.
Tạo Gateway resolver policy Create a Gateway resolver policy
Phần «Tạo Gateway resolver policy» — đọ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 đủ.
- Go to Traffic policies \> Resolver policies.
- Select Add a policy.
- Create an expression to match against the private domain or hostname of the application:
| Selector | Operator | Value | | -------- | -------- | ------------------ | | Domain | in | internalrecord.com |
- In Select DNS resolver, select Configure custom DNS resolvers.
- Enter the private IP address of your DNS server.
- In the dropdown menu, select
<IP-address> - Private. - (Optional) Enter a custom port.
- Select Create policy.
To test, open a browser and go to https://<team-name>.cloudflareaccess.com/browser/https://internalrecord.com.
Liên kết liên quan (docs Cloudflare) Related links (Cloudflare docs)
Tạo Gateway network policy (recommended) Create a Gateway network policy (recommended)
Phần «Tạo Gateway network policy (recommended)» — đọ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 đủ.
- Go to Traffic policies \> Firewall policies \> Network.
- Add a network policy that targets the private IP address of your application. You can optionally include any ports or protocols relevant for application access. For example,
| Selector | Operator | Value | Logic | Action | | ---------------- | ------------- | -------------- | ----- | ------ | | Destination IP | in | 10.128.0.175 | And | Allow | | Destination Port | in | 80 | Or | | | User Email | matches regex | .\*example.com | | |
Device posture checks are not supported because they require the Cloudflare One Client.
For best practices on securing private applications, refer to Build secure access policies.
Liên kết liên quan (docs Cloudflare) Related links (Cloudflare docs)
Kết nối as user Connect as a user
Phần «Kết nối as user» — đọ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 đủ.
Users can now access the application at the following URL:
https://<team-name>.cloudflareaccess.com/browser/https://internalrecord.com
The application will load in an isolated browser. You can optionally configure remote browser controls such as disabling copy/paste, printing, or keyboard input.
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"item":{"@id":"/directory/","name":"Directory"}},{"@type":"ListItem","position":2,"item":{"@id":"/cloudflare-one/","name":"Cloudflare One"}},{"@type":"ListItem","position":3,"item":{"@id":"/cloudflare-one/tutorials/","name":"Tutorials"}},{"@type":"ListItem","position":4,"item":{"@id":"/cloudflare-one/tutorials/clientless-access-private-dns/","name":"Access a web application via its private hostname without the Cloudflare One Client"}}]} Liên kết liên quan (docs Cloudflare) Related links (Cloudflare docs)
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).
Tài liệu gốc ↗ Official docs ↗