โมเดลความปลอดภัยแบบดั้งเดิมที่เชื่อ VPN และ Perimeter Security กำลังถูกแทนที่ด้วยแนวคิด Zero Trust ที่ไม่เชื่อใจทุกคน ตรวจสอบทุกครั้งก่อน Cloudflare Zero Trust หรือที่รูจักในชื่อ Cloudflare Access คือ Platform ที่ช่วยสร้างระบบ Zero Trust Network Access (ZTNA) สำหรับองค์กร เหมาะอย่างยิ่งสำหรับบริษัทที่ใช้ Cloud VPS ของ ผู้ให้บริการโฮสติ้ง และต้องการตรวจสอบการเข้าถึง Internal Tools อย่างปลอดภัย
Zero Trust คืออะไร?
Zero Trust เป็นปรชญาการความปลอดภัยที่อิงหลัก “ไม่เชื่อใจใครทุกคน (ทั้ง Inside และ Outside Network)” หมายความว่าทุกการเข้าถึง Resource ต้องผ่านการตรวจสอบ Identity, Device, และ Context ทุกครั้ง
ต่างจาก VPN ทั่วไป ที่เมื่อเข้าไปแลว ก็เข้าถึงได้ทุกอย่าง Zero Trust กำหนดให้สิทธิ์เข้าถึงเฉพาะที่จำเป็น อิงตาม Application นั้นๆ และส่วนนั้นๆ
ส่วนประกอบหลักของ Cloudflare Zero Trust
- Cloudflare Access — Identity-Aware Proxy ควบคุมการเข้าถึง Web App และ SSH/RDP
- Cloudflare Gateway — DNS และ Web Filtering ป้องกัน Malware และ Content ไม่เหมาะสม
- WARP Client — Secure Tunnel บนเครื่องผู้ใช้งานสำหรับผู้ใช้งานที่ทำงาน Remote
- Cloudflare Tunnel — เชื่อม Internal Service ไปยัง Cloudflare โดยไม่ต้องเปิด Port
- Browser Isolation — รัน Browser บน Cloud เพื่อป้องกันเว็บไซต์อันตราย
- DLP (Data Loss Prevention) — ตรวจจับข้อมูลสำคัญที่อาจรักหายออก
การติดตั้ง Cloudflare Access สำหรับ Internal App
- ไปที่ Cloudflare Zero Trust Dashboard
- เลือก Access → Applications
- คลิก Add an application
- เลือกประเภท Application: Self-hosted
- ใส่ชื่อและ URL ของ Internal App (เช่น intranet.example.com)
- ตั้งค่า Identity Provider (Google, Okta, GitHub, etc.)
- สร้าง Policy ว่าใครสามารถเข้าถึงได้
Cloudflare Tunnel กับ ผู้ให้บริการโฮสติ้ง VPS
Cloudflare Tunnel ช่วยให้คุณเชื่อม Internal Service บน Cloud VPS ไปยัง Cloudflare โดยไม่ต้องเปิด Port หรือทำให้ Server อยู่ใน Public Internet:
# ติดตั้ง cloudflared บน VPS
curl -L https://pkg.cloudflare.com/cloudflare-main.list | sudo tee /etc/apt/sources.list.d/cloudflare-main.list
sudo apt-get update && sudo apt-get install cloudflared
# Login และสร้าง Tunnel
cloudflared tunnel login
cloudflared tunnel create my-tunnel
# Config ไฟล์ ~/.cloudflared/config.yml
tunnel: my-tunnel
credentials-file: ~/.cloudflared/my-tunnel.json
ingress:
- hostname: app.example.com
service: http://localhost:8080
- hostname: ssh.example.com
service: ssh://localhost:22
- service: http_status:404
# รัน Tunnel
cloudflared tunnel run my-tunnel
ประโยชน์ของ Zero Trust เทียบกับ VPN
| คุณสมบัติ | Cloudflare Zero Trust | Traditional VPN |
|---|---|---|
| การสิทธิ์เข้าถึง | เฉพาะที่อนุญาต | เข้าได้ทุกอย่างใน Network |
| Authentication | Identity + MFA ทุกครั้ง | แค่บนค่าที่กาหนดเชื่อต่อ |
| ความเร็ว | เร็วกว่า (Edge Network) | ช้ากว่า (Backhaul Traffic) |
| Scalability | Serverless, Auto-scale | ต้องเพิ่ม Server |
| Visibility | Log ทุก Request | จำกัด |
| ราคา | Free สำหรับ 50 คน | ค่า License + Server |
วิธีใช้ Zero Trust ป้องกัน SSH Access บน VPS
สำหรับลูกค้า Cloud VPS ของ ผู้ให้บริการโฮสติ้ง สามารถใช้ Zero Trust Access คุมการเข้าถึง SSH ได้อย่างปลอดภัยโดยไม่ต้องเปิด Port 22 สู่สาธารณเชื่อเลย:
- สร้าง Cloudflare Tunnel บน VPS เพื่อ expose SSH Service
- ตั้งค่า Access Application สำหรับ SSH
- Admin ใช้
cloudflared access sshเชื่อมต์ผ่าน Identity Provider - ปิด Port 22 บน Firewall ได้สนิท
สรุป
Cloudflare Zero Trust เป็นส่วนสำคัญของการสร้างระบบความปลอดภัยสมัยใหม่ เหมาะสำหรับองค์กรที่มีพนักงาน Remote หรือต้องการตรวจสอบ Internal Tools บน Cloud VPS หรือ Cloud Hosting ของ ผู้ให้บริการโฮสติ้ง โดยไม่จำเป็นต้องการใช้ VPN อีกต่อไป

