Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Adding the tor repo
- gpg --keyserver keys.gnupg.net --recv 886DDD89
- gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -
- echo 'deb http://deb.torproject.org/torproject.org lucid main
- deb-src http://deb.torproject.org/torproject.org lucid main' >> /etc/apt/sources.list
- apt-get update && apt-get install tor
- # Tor startup script
- echo 'sudo /etc/init.d/tor start
- sudo /etc/init.d/polipo start' > /usr/bin/torstart
- echo 'sudo /etc/init.d/polipo stop
- sudo /etc/init.d/tor stop' > /usr/bin/torstop
- chmod 755 /usr/bin/torstart && chmod 755 /usr/bin/torstop
- # Remove on startup
- update-rc.d -f polipo remove
- update-rc.d -f tor remove
- # Polipo Config
- echo 'proxyAddress = "127.0.0.1"
- proxyPort = 8118
- allowedClients = 127.0.0.1
- allowedPorts = 1-65535
- proxyName = "localhost"
- cacheIsShared = false
- socksParentProxy = "localhost:9050"
- socksProxyType = socks5
- diskCacheRoot = ""
- localDocumentRoot = ""
- disableLocalInterface = true
- disableConfiguration = true
- dnsUseGethostbyname = yes
- disableVia = true
- censoredHeaders = from,accept-language,x-pad,link
- censorReferer = maybe
- maxConnectionAge = 5m
- maxConnectionRequests = 120
- serverMaxSlots = 8
- serverSlots = 2
- tunnelAllowedPorts = 1-65535' > /etc/polipo/config
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement