RouterOS version: 6.39.2
四個步驟:
- 建立 VPN 網段
- 建立給 PPTP 使用的 profile
- 建立 PPTP 連線用的帳號密碼
- 啟動 PPTP Server
建立 VPN 網段:
/ip pool add name=vpn_pool ranges=10.0.0.1-10.0.0.100
- VPN 網段可以跟內網網段分開, 也可以用同一網段。
建立給 PPTP 使用的 profile:
/ppp profile add local-address=192.168.88.1 name=pptp_profile remote-address=vpn_pool use-encryption=required
- name: pptp_profile。
- local-address: 輸入你的 PPTP Server IP,也就是你的 RouterBoard IP。
- remote-address: 輸入你要分配給連入的 PPTP 連線的 IP,如果同一時間只會有一個 PPTP 連入,那可以直接填 IP 位址就好,否則可以使用 IP Pool 給予網段。
建立 PPTP 連線用的帳號密碼:
/ppp secret add name=帳號 password=密碼 profile=pptp_profile service=pptp
啟動 PPTP Server:
/interface pptp-server server set authentication=pap,chap,mschap1,mschap2 default-profile=pptp_profile enabled=yes
- default-profile: 輸入前面建立的 profile name,也就是 pptp_profile。
Win7 PPTP 連線 Security 頁面設定: