HTTP代理设置


#MAC下设置 or linux
alias my.http="export http_proxy=http://192.168.1.2:1088;export https_proxy=http://192.168.1.2:1088"
alias my.ip="curl -s  http://2019.ip138.com/ic.asp | iconv -f GB2312 -t UTF-8 |grep center| sed -e 's/<[^>]*>//g'"

#群晖DSM下没有iconv,用uconv替换

 alias my.ip="curl -s  http://2018.ip138.com/ic.asp | uconv -f GB2312 -t UTF-8 |grep center| sed -e 's/<[^>]*>//g'" 
 
 
brew install privoxy

#安装http代理
echo 'listen-address 0.0.0.0:8118' >> /usr/local/etc/privoxy/config
echo 'forward-socks5 / localhost:1080 .' >> /usr/local/etc/privoxy/config

#centos
yum install python-setuptools -y&& easy_install pip 

pip install shadowsocks

 ssserver -p 8880 -k 1111 -m aes-256-cfb -d start


#v2ray安装日志
Mac下安装

brew tap v2ray/v2ray

brew install v2ray-core

安装v2ray
bash <(curl -L -s https://install.direct/go.sh)
bash <(curl -s -L https://v2ray666.com/v2ray.sh)

 

411
Sign in to leave a comment.
No Leanote account? Sign up now.
0 comments