返回列表 發帖

SSTP VPN 服務

本帖最後由 ckleea 於 2016-2-18 15:44 編輯

如果想使用SSTP VPN 服務,一般考慮下面方法
1. Windows server (付費)
2. 商業 SSTP VPN provider (付費)
3. Softether VPN (可以免費)
4. RouterOS (硬件付費,如有需要可自費攪張正式的 SSL certificates)

最近遇上這個網頁 https://blog.sorz.org/p/sstp-server/ ,安裝在linux server後是可以正常使用

但網頁上是漏了怎樣設定
1.  /etc/ppp/chap.secrets
2.  sysctl.conf
3.  iptables
4. 建立 ssl cert

基本上,1 -3 參考pptpd 的 how-to 就可以
而4 可用 http://www.selfsignedcertificate.com/ 建立一張簡單的 certificates

如果要 boot 機後自動起動,只需將 command 放在 /etc/rc.local 內

如果用 http://www.selfsignedcertificate.com/ 建立自己的 certificates,網頁上會有2 個檔案。

用notepad先打開 key 檔案,然後將另一檔的內容抄進key 檔案後面,最後儲存為 cert.pem 就可以

TOP

本帖最後由 ckleea 於 2016-2-18 15:44 編輯

而 /etc/ppp/chap.secrets 的設定是

username sstpd password *

每一行一個賬戶

TOP

本帖最後由 ckleea 於 2016-2-18 15:44 編輯

最後 iptables

iptables -t nat -I POSTROUTING -o eth0 -j MASQUERADE

TOP

返回列表