Skip to content

[wip] ทำ WireGuard VPN บน mikrotik RouterOS 7

WireGuard is a lightweight, open-source VPN software that offers fast and secure communication with advanced cryptography, better performance, lower latency, and improved battery life.
Last edited 909 days ago by Chookiat J.
megaphone
ยังอยู่ระหว่างการเขียน
เพิ่งได้รู้จัก WireGuard ได้ไม่นาน เพราะต้องการทำ VPN ใช้งาน และได้สอบถามความคิดเห็นจาก online social มีหลายคนแนะนำ จึงได้ทำการศึกษาหาข้อมูล และลองทำดูก็พบว่า ติดตั้งง่ายมาก

โจทย์

จัดทำ Site-to-Site VPN เชื่อมต่อกับลูกค้า
ทำ VPN สำหรับ Android, Windows

สภาพแวดล้อม

main site ใช้
Mikrotik hEX S, RouterOS 7
Internet ของ NT TOT ซึ่งได้ public IP (random)
Clients ที่ติดตั้ง WireGuard app
Windows 11
Android

หลักการเบื้องต้นของ WireGuard

ใช้ key ในการเข้ารหัสการสื่อสาร
ทั้ง 2 ฝั่งมี
ทำงานบน UDP ด้วย port ที่สามารถกำหนดได้เอง (13231 เป็น port ปริยาย)
.
Want to print your doc?
This is not the way.
Try clicking the ··· in the right corner or using a keyboard shortcut (
CtrlP
) instead.