前情提要:因为公司q了部分网站和QQ,所以用闲置服务器搭个代理玩玩。
前提条件
需要一台云服务器。我的是 ubuntu18.04
安装 某sock
可以参考网上教程
[ubuntu 16.04服务器上搭建某socks服务](https://www.jianshu.com/p/0bc070bed442)
[Ubuntu 搭建某socks服务](https://pdf-lib.org/Home/Details/1154)
[使用 Ubuntu18.04 服务器搭建 某sock 代理服务器](https://www.pianshen.com/article/8919290921/)
方法都类似,我这也简单写一下。
我是装了 python2和python3
[ubuntu 16.04服务器上搭建某socks服务](https://www.jianshu.com/p/0bc070bed442)
[Ubuntu 搭建某socks服务](https://pdf-lib.org/Home/Details/1154)
[使用 Ubuntu18.04 服务器搭建 某sock 代理服务器](https://www.pianshen.com/article/8919290921/)
方法都类似,我这也简单写一下。
我是装了 python2和python3
sudo apt-get install python2 sudo apt-get install python3
又装了个pip3和setuptools
sudo apt-get install python3-pip sudo apt-get install python3-setuptools
然后安装 某sock
pip3 install https://github.com/某socks/某socks/archive/master.zip
查看版本,如果允许失败就是没装好,可以采取apt安装, sudo apt-get install 某socks
ssserver --version
其他教程里的用配置文件某socks.json启动一直失败,我这就不用了
运行某sock
sudo ssserver -p 7878 -k password -m rc4-md5 -d start
usage: ssserver [OPTION]... A fast tunnel proxy that helps you bypass firewalls. You can supply configurations via either config file or command line arguments. Proxy options: -c CONFIG path to config file -s SERVER_ADDR server address, default: 0.0.0.0 -p SERVER_PORT server port, default: 8388 -k PASSWORD password -m METHOD encryption method, default: aes-256-cfb Sodium: chacha20-poly1305, chacha20-ietf-poly1305, xchacha20-ietf-poly1305, sodium:aes-256-gcm, salsa20, chacha20, chacha20-ietf. Sodium 1.0.12: xchacha20 OpenSSL: aes-{128|192|256}-gcm, aes-{128|192|256}-cfb, aes-{128|192|256}-ofb, aes-{128|192|256}-ctr, camellia-{128|192|256}-cfb, bf-cfb, cast5-cfb, des-cfb, idea-cfb, rc2-cfb, seed-cfb, rc4, rc4-md5, table. OpenSSL 1.1: aes-{128|192|256}-ocb mbedTLS: mbedtls:aes-{128|192|256}-cfb128, mbedtls:aes-{128|192|256}-ctr, mbedtls:camellia-{128|192|256}-cfb128, mbedtls:aes-{128|192|256}-gcm -t TIMEOUT timeout in seconds, default: 300 -a ONE_TIME_AUTH one time auth --fast-open use TCP_FASTOPEN, requires Linux 3.7+ --workers=WORKERS number of workers, available on Unix/Linux --forbidden-ip=IPLIST comma seperated IP list forbidden to connect --manager-address=ADDR optional server manager UDP address, see wiki --prefer-ipv6 resolve ipv6 address first --libopenssl=PATH custom openssl crypto lib path --libmbedtls=PATH custom mbedtls crypto lib path --libsodium=PATH custom sodium crypto lib path General options: -h, --help show this help message and exit -d start/stop/restart daemon mode --pid-file PID_FILE pid file for daemon mode --log-file LOG_FILE log file for daemon mode --user USER username to run as -v, -vv verbose mode -q, -qq quiet mode, only show warnings/errors --version show version information Online help: <https://github.com/某socks/某socks>
开放对应端口
因为上面我用的7878端口,所以我就在 服务器控制台 的安全组里开放 7878端口。出入站都放通。
windows下载客户端进行连接
[某socks各版本官方下载地址以及使用教程](https://b.julym.com/original/83.html)
我这也提供个别人打包的版本。
链接:[https://pan.baidu.com/s/1Lm5qEjLJYDjP4oJ2UWPbWA]
提取码:cjdr
我这也提供个别人打包的版本。
链接:[https://pan.baidu.com/s/1Lm5qEjLJYDjP4oJ2UWPbWA]
提取码:cjdr
解压第一个文件,即Windows的exe
配置某sock
配置对应信息,参考上面运行的命令
sudo ssserver -p 7878 -k password -m rc4-md5 -d start
确认后任务栏右下角“纸飞机”,就是我们的某sock
右击,服务器已经选中刚才添加的my
我们启动代理
有2个模式,全局和PAC。
全局就是全走代理。PAC就是有对部分网站走代理
修改本地PAC
PAC有本地和在线
我们编辑下本地的看看
我们编辑下本地的看看
打开 pac.txt 进行修改
你可以在最后面添加一条 "github.com": 1,
这样访问github.com时,就会走代理了。
查看日志
连上了代理可以看到网络波动
QQ走代理
某sock代理已经启动后,我们运行QQ
右上角设置
右上角设置
设置 HTTP代理,填入如下信息
测试一下
之后便可走代理登录QQ了
安卓连接代理服务器
压缩包里的apk,安装到手机中
运行。新建
手动设置
配置对应信息,参考上面运行的命令
sudo ssserver -p 7878 -k password -m rc4-md5 -d start
其他默认
打钩后返回主页,点击中下部小飞机,进行连接