說明:
RouterOS伺服器IP:172.31.101.80
RouterOS版本:RouterOS V6.15
需求:
在RouterOS伺服器上配置PPTP VPN伺服器,PPTP VPN用戶端撥入網段為:172.31.101.60-172.31.101.79
這裡使用winbox登入RouterOS
winbox下載:http://download2.mikrotik.com/routeros/winbox/3.0beta3/winbox.exe
輸入伺服器IP、帳號和密碼
點Connect登入
二、建立用戶端撥入網段位址集區
IP-Pool-Pools
點+號
Name:pptp-pool
Addresses:172.31.101.60-172.31.101.79
點OK
三、配置PPTP VPN
1、PPP-Profiles
點+號
Name:pptp-profile
Local Address:172.31.101.80
Remote Address:pptp-pool
DNS Server:8.8.8.8
8.8.4.4
OK
2、PPP-Interface-PPTP Server
勾選 Enabled
Default Profile:pptp-profile
OK
3、PPP-Interface
點+號,選擇PPTP Server Binding
Name:pptp-in1
OK
四、建立用戶端撥號使用者
PPP-Secrets
Name:user
Password:123456
Service:pptp
Profile:pptp-profile
OK
五、使用VPN用戶端撥號
我這裡的RouterOS是在內網,只配置了一個內網IP,可以把外網IP的1723連接埠映射到RouterOS的內網IP上來使用。
如果RouterOS同時有內網和外網的IP,可以直接使用外網IP來撥號。
至此,RouterOS 配置PPTP VPN伺服器教程完成。