EdgeRouter 設定pptp vpn server

用ssh登入EdgeRouter

pptp設定參考底下命令

1.進入設定模式

ubnt@ubnt:~$ configure
[edit]
ubnt@ubnt#

 

2.設定認証模式為本機端(不使用radius)

ubnt@ubnt# set vpn pptp remote-access authentication mode local
[edit]
ubnt@ubnt#

3.新增pptp 用戶帳號跟密碼

ubnt@ubnt# set vpn pptp remote-access authentication local-users username user1 password pass1

[edit]
ubnt@ubnt#

4.設定用戶連進來後所分配的ip位址區間

ubnt@ubnt# set vpn pptp remote-access client-ip-pool start 192.168.2.100
[edit]
ubnt@ubnt# set vpn pptp remote-access client-ip-pool stop 192.168.2.125
[edit]
ubnt@ubnt#

5.設定伺服器端的ip位址

ubnt@ubnt# set vpn pptp remote-access outside-address 192.168.2.1
[edit]
ubnt@ubnt#

6.設定給用戶的dns 位址

ubnt@ubnt# set vpn pptp remote-access dns-servers server-1  8.8.8.8
[edit]
ubnt@ubnt# set vpn pptp remote-access dns-servers server-2  8.8.4.4
[edit]
ubnt@ubnt#

7.結束設定及儲存

ubnt@ubnt# commit
[ vpn ]
Restarting PPTP:
Stopping PPTP: pptpd.
Starting PPTP Daemon: pptpd.

[edit]
ubnt@ubnt# save
Saving configuration to ‘/config/config.boot’…
Done
[edit]
ubnt@ubnt#

完工

接下來設定你自己的電腦新增一個pptp vpn連線即可

分類: Ubnt 無線。這篇內容的永久連結

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *