access us

Ubuntu下设置 chrome的SwitchyOmega

Wiki (简体中文) wiki

Linux安装配置客户端及开机自动启动  

运维 安装 

配置 

搭建服务以及配置多用户 

安装和配置 

一键搭建 服务 

安装privoxy  

CentOS中搭建  

How do i use socat as a proxy server?

socat TCP-LISTEN:1234,fork SOCKS4A:127.0.0.1:google.com:80,socksport=5678

socat: Linux / UNIX TCP Port Forwarder  

HOST_IP=`ip route get 1 | awk '{match($0, /.+src\s([.0-9]+)/, a);print a[1];exit}'`
socat TCP-LISTEN:8001,fork TCP:127.0.0.1:1080

 

in a VM

# cat set-proxy-ip
MAC=${MAC:-8c:70:5a:39:92:00}
IP=`ip neighbor | grep -i "$MAC" | cut -d" " -f1`
echo "Host MAC 8c:70:5a:39:92:00 IP is $IP"
PORT=${PORT:-8001}
# echo "socks5 $IP $PORT" | sudo tee -a /etc/proxychains.conf > /dev/null
# sudo sed -i -e "s/^\(socks4.*\)/# \1/g" /etc/proxychains.conf
echo "change socks5 proxy as $IP in /etc/proxychains.conf"
sudo sed -i -e "s/^\(socks5\) .* \([0-9]\+\)/\1 $IP \2/g" /etc/proxychains.conf
echo "Test proxy by:"
echo "  proxychains wget https://www.google.com"

 

posted @ 2019-10-17 17:49  lvmxh  阅读(208)  评论(0编辑  收藏  举报