Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shadowsocks 与 FinalSpeed 配合使用 #2

Open
AmBeta opened this issue Jan 30, 2019 · 1 comment
Open

Shadowsocks 与 FinalSpeed 配合使用 #2

AmBeta opened this issue Jan 30, 2019 · 1 comment
Assignees

Comments

@AmBeta
Copy link
Owner

AmBeta commented Jan 30, 2019

最近个人在搬瓦工自建的 SS 又莫名其妙地被封了,距离上次被封换 IP 还不足六周时间,没法申请免费更换 IP,做着面向 Google 编程的工作没了梯子让我很方,于是找了各种办法来抢救一下。

偶然地从这个 issue 里面看到一条回复,说是使用 FinalSpeed 可以将 TCP 转为 UDP 发送,确实被封的梯子虽然没办法 ssh,也不能 ss,但是可以 ping 通,也就是说 UDP 还是通的,瞬间点燃了希望!

image

一番云雨之后,抢救成功 :)!

@AmBeta AmBeta added Building The blog is not completed yet. Shadowsocks labels Jan 30, 2019
@AmBeta AmBeta self-assigned this Jan 31, 2019
@AmBeta
Copy link
Owner Author

AmBeta commented Jan 31, 2019

服务端

安装环境:

  • ubuntu 14.04, 16.04
  • centos
  • debian

部署 Shadowsocks 服务端

Shadowsocks repo 已经提供了安装脚本,需要先安装 git。

注意:使用安装脚本推荐使用 CentOS 版本 7.0 及以上,我用的 6.0 版本遇到了很多诸如 git 版本过低、python 版本不正确的问题。

部署 FinalSpeed 服务端

安装

使用一键安装脚本:

curl -O https://github.com/AmBeta/ambeta.github.io/raw/master/archive/finalspeed/install_fs.sh
chmod +x ./install_fs.sh
./install_fs.sh 2>&1 | tee install.log

安装完成后会自动启动,finalspeed 默认运行在 150 端口。

管理

  • 启动:sh /fs/start.sh
  • 停止:sh /fs/stop.sh
  • 重启:sh /fs/restart.sh
  • 卸载:sh /fs/stop.sh ; rm -rf /fs
  • 日志:tail -f /fs/server.log

客户端

FinalSpeed 客户端

安装

下载 FinalSpeed 客户端,不需要安装可以直接运行,需要机器有 java 运行环境。

配置

  • 运行如下命令启动客户端 GUI,需要管理员权限:
sudo java -jar finalspeed_client_gui.jar

启动时可能会有一些检测错误,不影响使用,参见 issue

  • 服务器地址填写个人的 VPS 地址,物理带宽根据自己的网络情况设置。

image

  • 在加速列表中添加加速配置。加速端口填写 shadowsocks 服务端配置的运行端口,本地端口填写任意未使用的端口即可。

image

  • 点击确定让配置生效。

配置完成后会在运行目录生成配置文件,之后如果不想使用 GUI 启动客户端的话,可以下载使用 CLI 版本,放在同一个目录下使用相同的配置即可运行。

Shadowsocks 客户端

添加 SS 服务器配置,服务器 IP 填写本地地址,端口号填写在 FinalSpeed 中加速配置中填写的本地端口,加密方式和密码与 Shadowsocks 服务端设置相同即可。

image

参考

@AmBeta AmBeta removed the Building The blog is not completed yet. label Jan 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant