access us
Wiki (简体中文) wiki
安装privoxy
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"