Archlinux Shadowsocks Configuration [Archlinux Shadowsocks 配置]

购买 socks5 帐号

在 Archlinux 安装 shadsocks

sudo pacman -S shadowsocks

在 Documents 下建立 shadowsocks.json, 加入帐号配置

{
    "server":"my_server_ip",
    "local_address": "127.0.0.1",
    "local_port":1080,
    "server_port":my_server_port,
    "password":"my_password",
    "timeout":300,
    "method":"aes-256-cfb"
}

SS 启动及开机启动

sslocal -c Documents/VPN/Shadowsocks/shadowsocks2.json

sudo systemctl enable shadowsoks.service

sudo pacman -S supervisor

sudo gedit /etc/supervisord.conf

# Add

[program:shadowsocks]
command=sslocal -c /home/lengyue/Documents/VPN/Shadowsocks/shadowsocks2.json
autostart=true
autorestart=true
user=root
log_stderr=true
logfile=/var/log/shadowsocks.log

sudo systemctl enable supervisord.service

使用 privoxy 使 http 走 socks5

sudo pacman -S privoxy

sudo gedit /etc/privoxy/config

# Add

listen-address  127.0.0.1:8118/
forward-socks5 /    127.0.0.1:1080 .

sudo systemctl enable prioxy.service

emacs 代理,见 lengyueyang.org proxy 配置部分.

使用 proxychains 代理程序

sudo pacman -S proxychains

sudo gedit /etc/proxychains.conf

# change to

socks5 127.0.0.1 1080

Creative Commons licensing

TITLE: Archlinux Shadowsocks Configuration [Archlinux Shadowsocks 配置]
AUTHOR: lengyueyang
DATE: 2017-12-11 19:26:52 UTC+08:00
UPDATED:
LICENSE: The blog is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License, commercial use is not allowed, for any reprint, please indicate address and signature. 88x31.png

Comments

Comments powered by Disqus