Windows下三分钟搭建Shad0w0scks服务器端

转自https://www.librehat.com/three-minutes-to-set-up-shadowsocks-server-on-windows/

  1. 下载最新的shadowsocks-libqss(Fedora下软件包名为shadowsocks-libQtShadowsocks)
  2. 准备好config.json文件(范例文件点此,点Raw另存为config.json就能下载下来了),server字段填写”0.0.0.0″(如果走IPv6线路,填”::”),加密方式可以改成更新潮的”chacha20″(老旧的Shadowsocks客户端可能不支持chacha20加密)
    {
        "server":"localhost",
        "server_port":8388,
        "local_address":"127.0.0.1",
        "local_port":1080,
        "password":"barfoo!",
        "timeout":600,
        "method":"rc4-md5",
        "http_proxy": false,
        "auth": false
    }
  3. 要shadowsocks-libqss.exe以server mode运行需要加上-S参数,你可以从命令行提示符去运行。或者,更简单的,用我写好的bat脚本(点此查看,点Raw按钮另存为bat脚本即可)
    ::This batch will run shadowsocks-libqss in server mode using the config.json file in current folder as the configuration
    
    @echo off
    ::this script is updated for version 1.7.0
    shadowsocks-libqss.exe -c config.json -S
  4. 将shadowsocks-server.bat与shadowsocks-libqss.exe, config.json放在同一个文件夹下,执行shadowsocks-server.bat即可

停止运行?关掉就可以了。下次再运行?执行shadowsocks-server.bat脚本就好了。修改配置文件?别用自带的记事本和写字板,去下载一个Notepad++吧,免得格式乱套了。

Last modification:January 1st, 1970 at 08:00 am
If you think my article is useful to you, please feel free to appreciate

Leave a Comment