# lewangdev on Twitter - 分享一下我的科学上网终极方法 (Highlights) ![rw-book-cover|256](https://pbs.twimg.com/profile_images/1616263270129881092/E9_NYFyw.jpg) ## Metadata **Review**:: [readwise.io](https://readwise.io/bookreview/24369619) **Source**:: #from/readwise **Zettel**:: #zettel/fleeting **Status**:: #x **Authors**:: [[lewangdev on Twitter]] **Full Title**:: 分享一下我的科学上网终极方法 **Category**:: #tweets #readwise/tweets **Category Icon**:: 🐦 **Document Tags**:: #gfw **URL**:: [twitter.com](https://twitter.com/lewangdev/status/1624808224703787014) **Host**:: [[twitter.com]] **Highlighted**:: [[2023-02-14]] **Created**:: [[2023-02-14]] ## Highlights - 分享一下我的科学上网终极方法,已经使用多年,从未翻车,就算 VPS 的 IP 被封杀,也能轻而易举立即复活,而且操作简单,无论 VPS 是 Linux 还是 Windows 都可以用,就是这个代理服务 GOST:https://t.co/RpGl8L5V8d 看看我是怎样用的 1/n ([View Tweet](https://twitter.com/lewangdev/status/1624808224703787014)) ^475800125 - 为了简单清楚展示整个过程,例如自启动/后台运行/Docker运行等部分我都略过。代理协议我用的是 wss,所以不需要做任何的伪装,它是一个互联网应用很常用的网络协议。在自己的服务器上,以 Linux 为例,这样起动 GOST,就这一行命令: 2/n ![](https://pbs.twimg.com/media/Fox8zk8aAAIXwy9.jpg) ([View Tweet](https://twitter.com/lewangdev/status/1624813474802176000)) ^475800126 - MacOS 上的客户端,用 https://t.co/LsvwRHG9Zd,安装好 ShadowSocks-NG 并启动一次,再安装我编写的插件 https://t.co/TaR5ZviYUp,填好 IP 和 username:password 就可以像使用 ss 一样用这个客户端了 ([View Tweet](https://twitter.com/lewangdev/status/1624818388219604992)) ^475800127 - Windows 客户端,用 https://t.co/UfS7YRQhuM,也需要做一点配置:将 GOST 下载到 shadowsocks.exe 所在的目录下,随意创建一个配置保存后,再编辑 gui-config.json ![](https://pbs.twimg.com/media/FoyHGTGaYAELEkq.png) ![](https://pbs.twimg.com/media/FoyHVvyaYAALK8N.jpg) ![](https://pbs.twimg.com/media/FoyHjmOaMAIDc1j.jpg) ([View Tweet](https://twitter.com/lewangdev/status/1624822709892026368)) ^475800128 - iOS 客户端,用 shadowrocket,这样来配置 ![](https://pbs.twimg.com/media/FoyIlLBaEAE4kh7.jpg) ![](https://pbs.twimg.com/media/FoyIlK_aIAAzb_g.jpg) ([View Tweet](https://twitter.com/lewangdev/status/1624823973505798144)) ^475800129 - 复活被封的 IP 要用到域名和 Cloudflare。前面配置没有用到域名,需要使用 Cloudflare 代理被封的 IP,所以需要一个准备一个域名,并且把域名添加自己的 Cloudflare 账户中,启用 Proxy,这样通过域名就可以访问 Cloudflare 代理的 wss 了 6/n ![](https://pbs.twimg.com/media/FoyKEGcaQAAirj3.png) ![](https://pbs.twimg.com/media/FoyKExraEAAvHSX.png) ![](https://pbs.twimg.com/media/FoyKZ6SaUAEbmob.jpg) ([View Tweet](https://twitter.com/lewangdev/status/1624825976604721152)) ^475800130 - 用域名访问代理的时候,shadowrockets 的配置需要填写 SNI 配置,也就是域名,ssl 的证书也是 cloudflare 签发的,所以取消掉 。另外,因为有了域名,也可以配置 letsencrypt 签发的 ssl 证书,这样在不使用 cloudflare代理的时候,也可以取消掉 Allow Insecure。7/n ![](https://pbs.twimg.com/media/FoyLsXdacAMxZKt.jpg) ([View Tweet](https://twitter.com/lewangdev/status/1624827626853642240)) ^475800131 - 对于 openwrt 等 Linux 软路由,几乎所有的插件都可以用上,只需要把 gost 的代理连转发上插件支持的协议上就可以了。以上就是我的方案,因为已经多年没有更新过了,不知道有没有其它更方便的方案,欢迎讨论交流。n/n https://t.co/0kI1L49dqP ([View Tweet](https://twitter.com/lewangdev/status/1624828670371328005)) ^475800132