Windows Server搭建Shadow socks VPN

帖子 未结 精帖 0 34628
user_v90t2
user_v90t2 LV6 2022年5月26日 07:13 编辑
<section id="nice" style="font-size: 16px; padding-right: 10px; padding-left: 10px; word-break: break-word; overflow-wrap: break-word; line-height: 1.25; font-family: Optima-Regular, Optima, PingFangTC-Light, PingFangSC-light, PingFangTC-light; letter-spacing: 2px; background-image: linear-gradient(90deg, rgba(50, 0, 0, 0.05) 3%, rgba(0, 0, 0, 0) 3%), linear-gradient(360deg, rgba(50, 0, 0, 0.05) 3%, rgba(0, 0, 0, 0) 3%); background-size: 20px 20px; background-position: center center;"><h1 style="margin-top: 30px; margin-bottom: 15px; font-weight: bold; font-size: 25px;"><span style="display: inline-block; color: rgb(119, 48, 152);">Windows Server搭建Shadow socks</span></h1> <blockquote style="border-top: none; border-right: none; border-bottom: none; border-image: initial; font-size: 0.9em; overflow: auto; border-left-width: 3px; color: rgb(106, 115, 125); padding-top: 10px; padding-bottom: 10px; padding-left: 20px; margin-bottom: 20px; margin-top: 20px; border-left-color: rgb(216, 156, 246); background: rgb(244, 238, 255);"> <p style="padding-top: 8px; padding-bottom: 8px; font-size: 14px; word-spacing: 2px; margin-top: 0px; margin-bottom: 0px; color: black; line-height: 26px;">简介: 在Windows Server 下搭建Shadowsocks,使用最简单的方式搭建 1. 下载Shadowsocks程序 下载并解压Shadowsocks文件 2. 添加config.json配置文件 { "server":"localhost", //配置服务端地址,不需...</p> </blockquote> <blockquote style="border-top: none; border-right: none; border-bottom: none; border-image: initial; font-size: 0.9em; overflow: auto; border-left-width: 3px; color: rgb(106, 115, 125); padding-top: 10px; padding-bottom: 10px; padding-left: 20px; margin-bottom: 20px; margin-top: 20px; border-left-color: rgb(216, 156, 246); background: rgb(244, 238, 255);"> <p style="padding-top: 8px; padding-bottom: 8px; font-size: 14px; word-spacing: 2px; margin-top: 0px; margin-bottom: 0px; color: black; line-height: 26px;">在<code style="overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin-right: 2px; margin-left: 2px; font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace; word-break: break-all; color: rgb(145, 109, 213); font-weight: bolder; background: none;">Windows Server</code>&nbsp;下搭建<code style="overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin-right: 2px; margin-left: 2px; font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace; word-break: break-all; color: rgb(145, 109, 213); font-weight: bolder; background: none;">Shadowsocks</code>,使用最简单的方式搭建</p> </blockquote> <h2 style="font-weight: bold; font-size: 22px; margin-top: 20px; margin-right: 10px; margin-bottom: 0px;"><span style="font-size: 18px; display: inline-block; padding-left: 10px; border-left: 5px solid rgb(145, 109, 213);">1. 下载<code>Shadowsocks</code>程序</span></h2> <p style="padding-top: 8px; padding-bottom: 8px; line-height: 26px; font-size: 14px; word-spacing: 2px;"><a href="https://github.com/shadowsocks/libQtShadowsocks/releases" style="overflow-wrap: break-word; color: rgb(145, 109, 213); font-weight: bolder; border-bottom: 1px solid rgb(145, 109, 213);">下载</a>并解压Shadowsocks文件</p> <h2 style="font-weight: bold; font-size: 22px; margin-top: 20px; margin-right: 10px; margin-bottom: 0px;"><span style="font-size: 18px; display: inline-block; padding-left: 10px; border-left: 5px solid rgb(145, 109, 213);">2. 添加<code>config.json</code>配置文件</span></h2> <pre><code style="overflow-x: auto; padding: 16px; color: rgb(171, 178, 191); background: rgb(40, 44, 52); display: -webkit-box; font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace; border-radius: 0px;">{<br>&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #98c379; line-height: 26px;">"server"</span>:<span style="color: #98c379; line-height: 26px;">"localhost"</span>,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//配置服务端地址,不需要修改<br>&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #98c379; line-height: 26px;">"server_port"</span>:623,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//服务端端口,可以根据需要修改,建议改成大点的不会被占用的端口<br>&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #98c379; line-height: 26px;">"local_address"</span>:<span style="color: #98c379; line-height: 26px;">"127.0.0.1"</span>,&nbsp;//本地地址,不需要修改<br>&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #98c379; line-height: 26px;">"local_port"</span>:1080,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//本地端口,可以根据需要修改<br>&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #98c379; line-height: 26px;">"password"</span>:<span style="color: #98c379; line-height: 26px;">"Orange"</span>,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//密码<br>&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #98c379; line-height: 26px;">"timeout"</span>:600,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//连接超时时间<br>&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #98c379; line-height: 26px;">"method"</span>:<span style="color: #98c379; line-height: 26px;">"rc4-md5"</span>,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//加密方式<br>&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #98c379; line-height: 26px;">"http_proxy"</span>:&nbsp;<span style="color: #56b6c2; line-height: 26px;">false</span>,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//代理<br>&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #98c379; line-height: 26px;">"auth"</span>:&nbsp;<span style="color: #56b6c2; line-height: 26px;">false</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//需要验证<br>}<br></code></pre> <h2 style="font-weight: bold; font-size: 22px; margin-top: 20px; margin-right: 10px; margin-bottom: 0px;"><span style="font-size: 18px; display: inline-block; padding-left: 10px; border-left: 5px solid rgb(145, 109, 213);">3. 运行<code>shadowsocks-libqss.exe</code>启动服务</span></h2> <blockquote style="border-top: none; border-right: none; border-bottom: none; border-image: initial; font-size: 0.9em; overflow: auto; border-left-width: 3px; color: rgb(106, 115, 125); padding-top: 10px; padding-bottom: 10px; padding-left: 20px; margin-bottom: 20px; margin-top: 20px; border-left-color: rgb(216, 156, 246); background: rgb(244, 238, 255);"> <p style="padding-top: 8px; padding-bottom: 8px; font-size: 14px; word-spacing: 2px; margin-top: 0px; margin-bottom: 0px; color: black; line-height: 26px;">有两种方式启动服务:</p> </blockquote> <ul style="margin-top: 8px; margin-bottom: 8px; padding-left: 25px; font-size: 15px; list-style-type: circle;"> <li><section style="margin-top: 5px; margin-bottom: 5px; line-height: 26px; color: rgb(1, 1, 1); font-size: 14px;">在命令行中运行以下命令:</section></li></ul> <pre><code style="overflow-x: auto; padding: 16px; color: rgb(171, 178, 191); background: rgb(40, 44, 52); display: -webkit-box; font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace; border-radius: 0px;">&nbsp;&nbsp;&nbsp;&nbsp;shadowsocks-libqss.exe&nbsp;-c&nbsp;config.json&nbsp;-S<br></code></pre> <ul style="margin-top: 8px; margin-bottom: 8px; padding-left: 25px; font-size: 15px; list-style-type: circle;"> <li><section style="margin-top: 5px; margin-bottom: 5px; line-height: 26px; color: rgb(1, 1, 1); font-size: 14px;">将命令写在<code style="overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin-right: 2px; margin-left: 2px; font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace; word-break: break-all; color: rgb(145, 109, 213); font-weight: bolder; background: none;">.bat</code>文件中,运行<code style="overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin-right: 2px; margin-left: 2px; font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace; word-break: break-all; color: rgb(145, 109, 213); font-weight: bolder; background: none;">.bat</code>文件启动</section></li></ul> <pre><code style="overflow-x: auto; padding: 16px; color: rgb(171, 178, 191); background: rgb(40, 44, 52); display: -webkit-box; font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace; border-radius: 0px;"> @echo off shadowsocks-libqss.exe -c config.json -S </code></pre> <p style="padding-top: 8px; padding-bottom: 8px; line-height: 26px; font-size: 14px; word-spacing: 2px;">配置完成,在客户端配置后就可以使用了</p> <hr style="margin-top: 10px; margin-bottom: 10px; border-right-width: initial; border-bottom-width: initial; border-left-width: initial; border-style: solid none none; border-top-width: 2px; border-top-color: rgb(217, 184, 250);"> <ul style="margin-top: 8px; margin-bottom: 8px; padding-left: 25px; font-size: 15px; list-style-type: circle;"> <li><section style="margin-top: 5px; margin-bottom: 5px; line-height: 26px; color: rgb(1, 1, 1); font-size: 14px;"><ul style="margin-top: 8px; margin-bottom: 8px; padding-left: 25px; color: black; font-size: 15px; list-style-type: square;"> <li><section style="margin-top: 5px; margin-bottom: 5px; line-height: 26px; color: rgb(1, 1, 1); font-size: 14px;">下载配置文件</section></li><li><section style="margin-top: 5px; margin-bottom: 5px; line-height: 26px; color: rgb(1, 1, 1); font-size: 14px;">参考链接: <ul style="margin-top: 8px; margin-bottom: 8px; padding-left: 25px; color: black; font-size: 15px;"> <li><section style="margin-top: 5px; margin-bottom: 5px; line-height: 26px; color: rgb(1, 1, 1); font-size: 14px;">Shadowsocks服务端:<a href="https://github.com/shadowsocks/libQtShadowsocks/releases" style="overflow-wrap: break-word; color: rgb(145, 109, 213); font-weight: bolder; border-bottom: 1px solid rgb(145, 109, 213);">https://github.com/shadowsocks/libQtShadowsocks/releases</a></section></li><li><section style="margin-top: 5px; margin-bottom: 5px; line-height: 26px; color: rgb(1, 1, 1); font-size: 14px;">Shadowsocks客户端:<a href="https://github.com/shadowsocks/shadowsocks-windows/releases" style="overflow-wrap: break-word; color: rgb(145, 109, 213); font-weight: bolder; border-bottom: 1px solid rgb(145, 109, 213);">https://github.com/shadowsocks/shadowsocks-windows/releases</a></section></li></ul> </section></li></ul> </section></li></ul> <figure style="margin-top: 10px; margin-bottom: 10px; display: flex; flex-direction: column; justify-content: center; align-items: center;"><img src="https://yqfile.alicdn.com/img_b8b96db4b27ec092f3445b2ba6cb81cb.png" alt="" style="max-width: 100%; border-radius: 6px; display: block; margin: 20px auto; object-fit: contain; box-shadow: 2px 4px 7px #999;"></figure> <p style="padding-top: 8px; padding-bottom: 8px; line-height: 26px; font-size: 14px; word-spacing: 2px;">---------------------------</p> <p style="padding-top: 8px; padding-bottom: 8px; line-height: 26px; font-size: 14px; word-spacing: 2px;">方法/步骤<br> 1.<br> 下载shadowsocks软件,软件是绿色版,解压后运行程序即可使用。<br> 2.<br> 首次运行,会弹出编辑服务器窗口,按图示填写您的shadowsocks服务器地址,端口,密码和加密方式,点确定。</p> <p style="padding-top: 8px; padding-bottom: 8px; line-height: 26px; font-size: 14px; word-spacing: 2px;">3<br> 点确定后,会如下提示</p> <p style="padding-top: 8px; padding-bottom: 8px; line-height: 26px; font-size: 14px; word-spacing: 2px;">4<br> 按提示右键程序图标,弹出菜单,勾选“启用系统代理”。<br> 好了,大功告成,设置好以后,IE/Chrome/Firefox无需设置,打开任意浏览器上网吧,就是这么简单。<br> 步骤阅读<br> END<br> 注意事项<br> Tips1:如何关闭?退出程序就OK了<br> Tips2 PAC和全局模式是什么意思?PAC模式访问国内网站不通过服务器,全局模式所有网站都通过服务器</p></section>
收藏(2334)  分享
相关标签: 互联网 科技 科学 科普 观察 网站建设
0个回复
  • 消灭零回复