DEV Community

Bach Huynh V. VN.Danang
Bach Huynh V. VN.Danang

Posted on

1

Cloudflare's ZeroTrust Part 1: How can I access to my web/app in private network without NAT

Quá đơn giản, có rất nhiều tool để làm việc này rồi, có người thì sử dụng ngrok hoặc các tool tương tự.

Nhưng hãy thử nghỉ xem nếu bạn public ra theo kiểu đó thì ai cũng access được nếu web/app của bạn không có basic authen hoặc không code phần login.

Vậy để có thể vừa cho bên ngoài mạng private truy cập vào được, vừa tích hợp các chứng thực phổ biến hiện này như Gmail, SAML, EntraID... thì phải làm như thế nào?

Hãy sử dụng Cloudflare ZeroTrust, nó Free và nó rất là MẠNH.

Trong bài viết này, ngoài hướng dẫn sử dụng ZeroTrust mình sẽ demo một tool khá mạnh cho việc code anywhere. Tool code-server - nó như một instance của AWS Cloud9. Bạn sẽ sử dụng "VisualStudioCode" bằng web ở bất cứ nơi nào nhưng vẫn đảm bảo an toàn.

Vậy những thứ ban cần là:

  • Tài khoản Cloudflare, và đảm bảo có 1 domain trên cloudflare.
  • Một local server, cài đặt code-server hoặc bất cứ web/tool nào mà bạn muốn.(https://github.com/coder/code-server)
  • Tất nhiên, 1 email để test login đúng email thì mới truy cập được.

Do your career a big favor. Join DEV. (The website you're on right now)

It takes one minute, it's free, and is worth it for your career.

Get started

Community matters

Top comments (0)

👋 Kindness is contagious

Immerse yourself in a wealth of knowledge with this piece, supported by the inclusive DEV Community—every developer, no matter where they are in their journey, is invited to contribute to our collective wisdom.

A simple “thank you” goes a long way—express your gratitude below in the comments!

Gathering insights enriches our journey on DEV and fortifies our community ties. Did you find this article valuable? Taking a moment to thank the author can have a significant impact.

Okay