public
Created

  • Download Gist
MakeFifo.sh
Shell
1 2
# This is redundant with the new implementation
mkfifo /tmp/socks_proxy.fifo
TransparentProxy.sh
Shell
1 2 3 4 5 6
while true; do
mkfifo /tmp/socks_proxy.fifo
# vv host to proxy to goes here
nc -l 8085 < /tmp/socks_proxy.fifo | tee /dev/stderr | nc google.com 80 | tee /tmp/socks_proxy.fifo
rm /tmp/socks_proxy.fifo
done

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.