Skip to content

Instantly share code, notes, and snippets.

@richo
Created November 9, 2011 22:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save richo/1353383 to your computer and use it in GitHub Desktop.
Save richo/1353383 to your computer and use it in GitHub Desktop.
# This is redundant with the new implementation
mkfifo /tmp/socks_proxy.fifo
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment