Windows Server 個人 使用VPN 搭建總結
前一段利用公司服務器搭建 Shadowsocks 服務器(windows & Linux),此處記錄 Windows Server 下的SS 搭建流程。
英文不錯的童鞋,可以看看這個地址: https://github.com/shadowsocks/shadowsocks/wiki/Install-Shadowsocks-Server-on-Windows
下面是 我這邊的操作步驟:
1. 在WindowsServer 安裝Python ,python 的位數一定要和 Windows 系統位數 保持一致!!! (此處很重要,請自行腦補三遍)
2. ps: 此處是對安裝python的補充, 安裝python時 請使用自定義安裝的方式,同時 選擇 安裝pip (ps: Pip 是安裝python包的工具,提供了安裝包,列出已經安裝的包,升級包以及卸載包的功能)
3. 需要在WindowsServer 安裝 OpenSSL, 下載地址:
https://slproweb.com/products/Win32OpenSSL.html
需要復制 OpenSSL的安裝目錄中的libeay32.dll,libssl32.dll,ssleay32.dll到python 安裝路徑 下\Scripts\ 目錄下
4. 使用 Pip 安裝 Shadowsocks 命令如下:
pip install shadowsocks
5. 進入 Shadowsocks 安裝路徑, 新建 config.JSON 文件,內容如下:
({ "server":"0.0.0.0", "server_port":8388, "local_address":"127.0.0.1", "local_port":1080, "password":"xxxxxx", "timeout":300, "method":"aes-256-cfb", "fast_open":false })
可變更的 位置: password& method& server_port & timeout 這幾處, server_port 建議 使用8000+ 的,避免與系統服務端口沖突
加密方式若使用 : salsa20 or chacha20 ,需要到 https://download.libsodium.org/libsodium/releases/ 下載相關 dll 文件,dll 文件放置路徑:
C:\Windows\System32 or C:\Windows\SysWOW64 (請根據個人系統 而定)
6. 啟動服務方式 在命令行中 執行: ssserver -c 路徑\config.json
7. 再次PS: 若使用阿裏雲服務器或者AWS 時 需要配置
雲服務器ECS -> 網絡和安全 -> 安全組 -> 選擇你的服務器,配置規則—— 為端口8838(上面配置文件中服務器端口)添加兩條“入方向”的規則,一條是 tcp 一條是 udp 的
8.再次PS:
(ps: 若出現 > Exception: libcrypto(OpenSSL) not found,可確認一下Python的位數是否與OpenSSL 一致)
Windows Server 個人 使用VPN 搭建總結