Sysnet Board คู่มือ การใช้งานอุปกรณ์ Network

การ Config อุปกรณ์ เครือข่าย Network Device => อุปกรณ์ Ruijie / Reyee (รุยเจี๋ย / รียี้) => หัวข้อที่ตั้งโดย: yod เมื่อ วันที่ 27 พฤษภาคม 2021, 18:55:02

ชื่อ: คู่มือการ Config L2TP IPSecs VPN Client To Site อุปกรณ์ Reyee Gateway
โดย: yod เมื่อ วันที่ 27 พฤษภาคม 2021, 18:55:02
คู่มือการ Config L2TP IPSecs VPN Client To Site อุปกรณ์ Reyee Gateway





หัวข้อนี้จะเป็นการแนะนำการ Config VPN Client To Site ใช้ Protocol L2TP with IPSecs กันครับ





เบื้องต้น ถ้าต้องการทำ VPN แต่ยังไม่ทราบว่าจะต้องเตรียมอะไรบ้าง ผมแนะนำให้อ่านในบทความนี้ก่อนครับ ต้องการเชื่อมเครือข่าย Network ระหว่างสำนักงานด้วย VPN (https://sysnetcenter.com/news/post/how-to-network-vpn)






การทำ VPN Client To Site แบบ L2TP IPSec ในบทความนี้จะใช้ได้กับ
Reyee by Ruijie Gateway (https://sysnetcenter.com/reyee-gateway-router) ได้ทุกรุ่นครับ







1. เชื่อมต่อ PC เข้ากับ Port Lan ของ Reyee Gateway และ ต่อ Internet เข้ากับ Port WAN0 ถ้าเป็น Fiber Modem ให้ Set เป็น Bridge ให้เรียบร้อยก่อน





PC จะได้ IP วง 192.168.110.0 มา




(https://sysnetcenter.com/board/images/reyee-gatway-l2tp-vpn/reyee-gateway-vpn-config-001.jpg)







2. Login เข้า Gateway IP Default: 192.168.110.1




Click [เริ่มต้นตั้งค่า]



(https://sysnetcenter.com/board/images/reyee-gatway-l2tp-vpn/reyee-gateway-vpn-config-002.jpg)





ใส่รายละเอียด เช่น Password Gateway, PPPoE Username/Password



Click [สร้างเครือข่ายและเชื่อมต่อ]





(https://sysnetcenter.com/board/images/reyee-gatway-l2tp-vpn/reyee-gateway-vpn-config-003.jpg)





Refresh Browser เพื่อ Login เข้า Gateway





(https://sysnetcenter.com/board/images/reyee-gatway-l2tp-vpn/reyee-gateway-vpn-config-004.jpg)



(https://sysnetcenter.com/board/images/reyee-gatway-l2tp-vpn/reyee-gateway-vpn-config-005.jpg)







3. กรณีที่ไม่ได้สมัคร Internet เป็นแบบ Fix IP ไว้ Reyee Gateway จะรองรับ No-IP ครับ สมัคร Account ให้เรียบร้อย




Menu Router --> Advanced --> Dynamic DNS


IP Address ตรงมุมขวาบน คือ หมายเลข IP แบบ Public





(https://sysnetcenter.com/board/images/reyee-gatway-l2tp-vpn/reyee-gateway-vpn-config-006.jpg)







ใส่รายละเอียด Account No-IP DNS แล้ว Click [Login]





(https://sysnetcenter.com/board/images/reyee-gatway-l2tp-vpn/reyee-gateway-vpn-config-007.jpg)





ถ้า Login สำเร็จจะขึ้น Connection success และ ในหน้า Dashboard ของ Web No-IP จะมีการ Update WAN IP-Address ที่ถูกต้อง





(https://sysnetcenter.com/board/images/reyee-gatway-l2tp-vpn/reyee-gateway-vpn-config-008.jpg)



(https://sysnetcenter.com/board/images/reyee-gatway-l2tp-vpn/reyee-gateway-vpn-config-009.jpg)







4. Menu Router --> VPN --> L2TP



Enable L2TP

L2TP Type: L2TP Server

Local Address: IP VPN (ใส่ตามรูปได้เลยครับ)

IP-Range: IP ที่จะแจกให้ Client ที่เชื่อมต่อเข้ามา

DNS Server: 8.8.8.8

IPSec Security: Yes

Pre-Shared Key: Key สำหรับเชื่อมต่อ VPN





(https://sysnetcenter.com/board/images/reyee-gatway-l2tp-vpn/reyee-gateway-vpn-config-010.jpg)



Click [Save]







5. สร้าง VPN User Account



Menu VPN --> VPN Clients --> Add



(https://sysnetcenter.com/board/images/reyee-gatway-l2tp-vpn/reyee-gateway-vpn-config-011.jpg)



(https://sysnetcenter.com/board/images/reyee-gatway-l2tp-vpn/reyee-gateway-vpn-config-012.jpg)







ทดสอบ





ใช้ PC อีกเครื่อง ที่อยู่คนละวง Network กับ Reyee Router สร้าง VPN Connection





(https://sysnetcenter.com/board/images/reyee-gatway-l2tp-vpn/reyee-gateway-vpn-config-013.jpg)






กำหนดค่า VPN Connection

Connection Name: ชื่อ Connection
Server name or Address: IP Address ของ VPN Router หรือ NO-IP Host Name ที่สร้างไว้
VPN Type: L2TP/IPsec with pre-shared key
Pre-shared key: Key ที่สร้างไว้ในข้อ 4
Username/Password: VPN Client User




(https://sysnetcenter.com/board/images/reyee-gatway-l2tp-vpn/reyee-gateway-vpn-config-014.jpg)





พอ Click Save แล้ว ถ้าลอง Connect จะขึ้น Error ต้องมีการแก้ไข VPN Properties Connection ด้วยครับ ไปที่ Network and Sharing Center --> Change Adapter Settings





Click [Allow these protocols]





(https://sysnetcenter.com/board/images/reyee-gatway-l2tp-vpn/reyee-gateway-vpn-config-015.jpg)





ทำการ Connect VPN





(https://sysnetcenter.com/board/images/reyee-gatway-l2tp-vpn/reyee-gateway-vpn-config-016.jpg)





ทดสอบเข้าไปยังเครื่องที่ Share File ไว้





(https://sysnetcenter.com/board/images/reyee-gatway-l2tp-vpn/reyee-gateway-vpn-config-017.jpg)





หรือทดสอบ Ping





(https://sysnetcenter.com/board/images/reyee-gatway-l2tp-vpn/reyee-gateway-vpn-config-018.jpg)





ใน Reyee Gateway จะแสดงรายละเอียดของ User ที่ Dial-In เข้ามาครับ



(https://sysnetcenter.com/board/images/reyee-gatway-l2tp-vpn/reyee-gateway-vpn-config-019.jpg)





เรียบร้อยครับ 8)