UniFi VPN (Teleport / L2TP / IPsec) ต้องการ Server Address และ Credentials ที่ถูกต้องเพื่อเชื่อมต่อ สามารถหาข้อมูลได้จาก UniFi Controller หรือ Cloud Gateway
วิธีหา VPN Server Name และ Address
- เข้าสู่ UniFi Controller (Local: https://unifi.local หรือ Cloud: unifi.ui.com)
- ไปที่ Settings → Networks → VPN Server (หรือ Teleport & VPN)
- Server Address = WAN IP ของ UniFi Gateway (หรือ DDNS hostname เช่น xxxxx.ui.com)
- Pre-shared Key / Username / Password = ตั้งค่าใน VPN Server Settings
Server Address ใน VPN คืออะไร?
คือ Public IP หรือ Hostname ของ VPN Gateway ที่ Client จะเชื่อมต่อเข้ามา สำหรับ UniFi: ใช้ WAN IP ของ UCG/UDM/USG หรือ UniFi DDNS (xxxx.ui.com)
วิธีเปิดใช้งาน DNS สำหรับ VPN (UniFi)
- Settings → VPN → Advanced (หรือ Client Settings)
- Configure DNS/WINS Servers
- ใส่ DNS Server IP (เช่น 10.0.0.1, 1.1.1.1, 8.8.8.8)
- Save → Apply Changes
วิธีเชื่อมต่อ UniFi VPN (L2TP/IPsec)
- เปิด UniFi Network App
- Settings → Networks → Add Network
- Name: ใส่ชื่อ (เช่น Remote-VPN)
- Type: Remote Access VPN (L2TP/IPsec) → 推奨
- สร้าง Pre-shared Key สำหรับ Client
- ระบุ WAN Interface ที่จะรับการเชื่อมต่อ
วิธีหา IP Address ของ VPN Server
- ดูที่ UniFi Controller: Dashboard → WAN IP
- หรือใช้ iplookup tool (whatismyip.com) จากเครื่องที่อยู่ในเครือข่าย UniFi
- Client VPN จะได้ IP จาก DHCP Pool ที่ตั้งค่าไว้ (เช่น 192.168.20.x)
ใส่อะไรใน VPN Server Address?
- ชื่อ VPN Connection (ตัวระบุ)
- Server Address: Public IP หรือ DDNS hostname (xxxx.ui.com)
- VPN Type: L2TP/IPsec, IKEv2, WireGuard (Teleport)
- Credentials: Username/Password หรือ Certificate
UniFi มี VPN ไหม?
มี 3 รูปแบบ:
- Teleport (WireGuard-based): ใช้งานง่ายที่สุด ผ่าน UniFi App
- L2TP/IPsec: มาตรฐาน รองรับทุกอุปกรณ์ (Windows, Mac, iOS, Android)
- Site-to-Site IPsec: เชื่อมต่อ 2 Site (Manual IPsec)
UniFi VPN ปลอดภัยไหม?
ปลอดภัย: ใช้ L2TP/IPsec (AES-256, SHA256) หรือ Teleport (WireGuard/ChaCha20) USG/UDM/UCG มี Firewall บูรณาการ ป้องกันการเข้าถึงไม่ได้รับอนุญาต
ควรใช้ VPN DNS หรือ ISP DNS?
VPN DNS (Private DNS): ป้องกัน DNS Leak, บล็อกโฆษณา/มัลแวร์ (NextDNS, AdGuard, Control D) ISP DNS: เร็วกว่า แต่ ISP เห็น Domain ที่คุณ Query แม้ใช้ VPN
DNS บน VPN คืออะไร?
การแปลง Domain Name (google.com) → IP Address (142.250.x.x) ผ่าน DNS Server ที่ปลอดภัย (ในอุโมงค์ VPN) ป้องกัน ISP/Router เห็นเว็บที่คุณเข้า
การใช้ VPN เปลี่ยน DNS ได้ไหม?
VPN ที่ดีจะ Force DNS ผ่านอุโมงค์ (Push DNS) แต่บาง VPN ไม่ทำ → ต้องตั้งค่า DNS เองใน Client (DoH/DoT) หรือ Router