linux中RouterOS 配置PPTP VPN伺服器

來源:互聯網
上載者:User

說明:

RouterOS伺服器IP:172.31.101.80

RouterOS版本:RouterOS V6.15

需求:

在RouterOS伺服器上配置PPTP VPN伺服器,PPTP VPN用戶端撥入網段為:172.31.101.60-172.31.101.79

操作步驟:

一、登入RouterOS伺服器

這裡使用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伺服器教程完成。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.