Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on May 13th, 2011  |  syntax: Bash  |  size: 1.23 KB  |  views: 1,689  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Adding the tor repo
  2. gpg --keyserver keys.gnupg.net --recv 886DDD89
  3. gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -
  4. echo 'deb http://deb.torproject.org/torproject.org lucid main
  5. deb-src http://deb.torproject.org/torproject.org lucid main' >> /etc/apt/sources.list
  6. apt-get update && apt-get install tor
  7.  
  8. # Tor startup script
  9. echo 'sudo /etc/init.d/tor start
  10. sudo /etc/init.d/polipo start' > /usr/bin/torstart
  11. echo 'sudo /etc/init.d/polipo stop
  12. sudo /etc/init.d/tor stop' > /usr/bin/torstop
  13. chmod 755 /usr/bin/torstart && chmod 755 /usr/bin/torstop
  14.  
  15. # Remove on startup
  16. update-rc.d -f polipo remove
  17. update-rc.d -f tor remove
  18.  
  19. # Polipo Config
  20. echo 'proxyAddress = "127.0.0.1"
  21. proxyPort = 8118
  22. allowedClients = 127.0.0.1
  23. allowedPorts = 1-65535
  24. proxyName = "localhost"
  25. cacheIsShared = false
  26. socksParentProxy = "localhost:9050"
  27. socksProxyType = socks5
  28. diskCacheRoot = ""
  29. localDocumentRoot = ""
  30. disableLocalInterface = true
  31. disableConfiguration = true
  32. dnsUseGethostbyname = yes
  33. disableVia = true
  34. censoredHeaders = from,accept-language,x-pad,link
  35. censorReferer = maybe
  36. maxConnectionAge = 5m
  37. maxConnectionRequests = 120
  38. serverMaxSlots = 8
  39. serverSlots = 2
  40. tunnelAllowedPorts = 1-65535' > /etc/polipo/config