千家信息网

CentOS7搭建×××连接

发表于:2025-01-23 作者:千家信息网编辑
千家信息网最后更新 2025年01月23日,服务端操作方法一sudo -iwget --no-check-certificate https://github.com/iyuco/scripts/raw/master/bbr.shchmod +
千家信息网最后更新 2025年01月23日CentOS7搭建×××连接

服务端操作

方法一

sudo -iwget --no-check-certificate https://github.com/iyuco/scripts/raw/master/bbr.shchmod +x bbr.sh./bbr.shsudo -iwget --no-check-certificate https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocksR.sh && chmod +x shadowsocksR.sh./shadowsocksR.sh

方法二

sudo -iwget --no-check-certificate https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks-go.shchmod +x shadowsocks-go.sh./shadowsocks-go.sh 2>&1 | tee shadowsocks-go.log

客户端操作

×××

  • 创建配置文件

cd /usr/src/mkdir shadowsocksvim shadow_sock_client.json
  • 配置内容

{    "server":"your_server_ip",      #ss服务器IP    "server_port":your_server_port, #端口    "local_address": "127.0.0.1",   #本地ip    "local_port":1080,              #本地端口    "password":"your_server_passwd",#连接ss密码    "timeout":300,                  #等待超时    "method":"rc4-md5",             #加密方式    "fast_open": false,             # true 或 false    "workers": 1                    # 工作线程数}
  • 启动

nohup sslocal -c /usr/src/shadowsocks/shadow_sock_client.json /dev/null 2>&1 &

Privoxy

Privoxy官网

cd /usr/srctar -zxvf privoxy.tar.gzuseradd privoxyautoheader && autoconf./configuremake && make installvim /usr/local/etc/privoxy/config
listen-address 127.0.0.1:8118
forward-socks5t / 127.0.0.1:1080 .
vim /etc/profile
#addexport http_proxy=http://127.0.0.1:8118export https_proxy=http://127.0.0.1:8118export ftp_proxy=http://127.0.0.1:8118
source /etc/profile
sudo /usr/local/sbin/privoxy /usr/local/etc/privoxy/config


0