Welcome to Sysnet Board คู่มือ การใช้งานอุปกรณ์ Network. Please log in or sign up.
สมาชิกทั้งหมด
17,595
กระทู้ทั้งหมด
10,026
หัวข้อทั้งหมด
4,711

  • คู่มือทำ Dynamic DNS และ Forward Port ใน Ubiquiti Security Gateway
    เริ่มโดย yod
    Read 11,627 times
0 สมาชิก และ 1 ผู้มาเยือน กำลังดูหัวข้อนี้
yod

 

 
คู่มือทำ Dynamic DNS และ Forward Port ใน Ubiquiti Security Gateway

หัวข้อนี้จะเป็นวิธีการทำ Dynamic DNS ของ dyndns.org และทำการ Forward Port เพื่อ Remote จากภายนอกมายัง Ubiquiti Unifi Cloud Key ครับ


เบื้องต้นตรวจสอบตามนี้ก่อนครับ
1. IP ที่ WAN ของ Ubiquiti Security Gateway (USG) ต้องเป็น IP Public ให้สอบถามกับผู้ให้บริการ Internet
2. ผู้ให้บริการ Internet มักจะ Block Port ไว้ ให้โทรสอบถามกับผู้ให้บริการ Internet เช่นกันครับ


การ Config Ubiquiti Unifi Security Gateway (USG) เบื้องต้นจะอยู่ในหัวข้อนี้ครับ คู่มือการ Config Ubiquiti Unifi Gateway, Unifi Switch, Unifi AP และ Unifi Cloud Key


Login เข้า Unifi Controller

ตรวจสอบ IP WAN ของ USG ก่อน




Menu Services --> Tab Dynamic DNS --> Create New Dynamic DNS

Interface: เลือก Wan ที่ต้องการให้ Update ตัวอย่างเลือก Wan1
Service: dyndns
Hostname: ชื่อ Host ที่สร้างไว้ใน dyndns.org
Username: user dyndns.org
Password: password dyndns.org
Server: ไม่ต้องใส่อะไร



Click [Save]


รายการ Dynamic DNS ที่ USG รองรับครับ




ตรวจสอบว่า dyndns ได้ update ip wan ของเราถูกต้องหรือไม่ ให้ Login เข้า web dyndns และเปรียบเทียบหมายเลข IP ต้องตรงกันครับ




ทำ Port Forward กันต่อครับ

Menu Routing & Firewall --> Port Forwarding

Name: unifi-controller
Enabled: Enable this port forward rule
From: Anywhere
Port: จะเป็นหมายเลข External Port ไม่จำเป็นที่จะต้องตรงกับ Port ที่เราจะ Forward ไปหาก็ได้ครับ เช่น ถ้าเรากำหนด External Port เป็น 9000 ให้ Forward มาที่ 8443 เวลาเราอยู่ข้างนอกต้องการ Remote เข้ามาที่ Unifi Cloud Key ให้พิมพ์ https://xxxx.dyndns.org:9000 อุปกรณ์จะ forward มาที่ 8443 ให้เองครับ

Feature นี้จะช่วยให้เราจัดการกับอุปกรณ์ Network ภายในที่อาจจะเป็น Port 80 แล้วไม่ต้องการเปลี่ยนเป็น Port หมายเลขอื่น เพราะถ้าลืมหมายเลข Port นี้ต้อง Reset อุปกรณ์กันใหม่เลยครับ

Forward IP: หมายเลข IP Address ของ Unifi Cloud Key หรืออุปกรณ์ Network อื่นๆที่ต้องการ Forward เข้ามา
Forward Port: 8443 หมายเลข Default Port ของ Unifi Cloud Key
Protocol: Both
Logs: จะ Enable หรือไม่ก็ได้ครับ



Click [Save]


ตรวจสอบการ Forward Port ด้วยการเข้า Web Open Port Check Tool




ลอง Remote Login เข้า Unifi Cloud Key มาจาก Internet อีกเส้นครับ





เรียบร้อยครับ  ;D ;D