跳转至

Proxy Client


Shadowsocks

Shadowsocks: A secure socks5 proxy, designed to protect your Internet traffic.

  • GUI: shadowsocks-qt5
  • CLI: sudo pip install shadowsocks

Ubuntu 16.04 配置 shadowsocks

  • 编写shadowsocks.json文件,将其放在/opt目录下,文件格式如下

    shadowsocks.json
    {  
        "server":"xxx.xxx.xxx.xxx",  
        "server_port":xxx,  
        "local_address": "127.0.0.1",  
        "local_port":1080,  
        "password":"xxx",  
        "timeout":300,  
        "method":"aes-256-cfb",  
        "fast_open": true,  
        "workers": 1  
    }
    

  • 新建(若不存在)/etc/rc.local 文件,内容如下,通过sudo chmod +x /etc/rc.local命令,赋予其可执行权限

    /etc/rc.local
    #!/bin/bash
    /usr/local/bin/sslocal -c /opt/shadowsocks.json -d start
    exit 0
    

  • 新建/lib/systemd/system/rc-local.service文件(若不存在),我的系统中已存在,内容如下

    /lib/systemd/system/rc-local.service
    # This unit gets pulled automatically into multi-user.target by
    # systemd-rc-local-generator if /etc/rc.local is executable.
    [Unit]
    Description=/etc/rc.local Compatibility
    ConditionFileIsExecutable=/etc/rc.local
    After=network.target
    [Service]
    Type=forking
    ExecStart=/etc/rc.local start
    TimeoutSec=0
    RemainAfterExit=yes
    GuessMainPID=no
    

  • 重启系统,执行命令 systemctl status rc-local.service 查看rc-local.service状态

Trojan

tsocks

tsocks: a transparent SOCKS proxying library

  • install

    Bash
    sudo apt install tsocks
    

  • config

    /etc/tsocks.conf
    local = 192.168.1.0/255.255.255.0
    server = 127.0.0.1
    server_type = 5
    server_port = 1080
    

  • examples

    Bash
    tsocks firefox
    tsocks git clone xxx
    tsocks wget xxx
    

proxychains

  • install

    Bash
    sudo apt-get install proxychains
    

  • config

    /etc/proxychains.conf
    socks5 127.0.0.1 1080