haproxy中转tcp流量 方便看看外文文档,提升编码能立

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/palmer_kai/article/details/83502539

作为一名猿人 , 总是需要看外文文档的来充实自己的, 但是网速总是不给力, 可用如下方法来改善用户体验。

haproxy中转tcp流量

中转服务器的端口不需要设置,默认和shadowsocks服务器的端口保持一致

登录和文件传输软件下载

xftp 和 xshell下载地址 提取码:ertk

root 命令登录后执行

wget --no-check-certificate https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/haproxy.sh

chmod +x haproxy.sh

./haproxy.sh

在这里插入图片描述

第一步输入需要 haproxy 代理的端口号,这里要跟 Shadowsocks 服务器开放的端口号一致。
第二步输入 Shadowsocks 公网 IPv4(注意:不是 haproxy 本机的 IP 地址)

安装完成后,脚本提示如下:

Congratulations, haproxy install completed.
Your haproxy Server IP: your_haproxy_server_ip
Your haproxy Server port: your_haproxy_server_port
Your Input Shadowsocks IP: your_shadowsocks_server_ip
Welcome to visit:https://shadowsocks.be/10.html
Enjoy it.

卸载

centos 下: yum -y remove haproxy and rm -rf /etc/haproxy

使用命令

启动:service haproxy start
停止:service haproxy stop
重启:service haproxy restart
状态:service haproxy status

配置文件路径:/etc/haproxy/haproxy.cfg

参考: https://shadowsocks.be/10.html

haproxy diy 配置: http://blog.liuxun.net/post/tech/20161214-shadowsocks

猜你喜欢

转载自blog.csdn.net/palmer_kai/article/details/83502539
今日推荐