aquaballoon

Content filtering: Dansguardian Tinyproxy

May 27th, 2012
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.71 KB | None | 0 0
  1. # http://www.instructables.com/id/Set-up-web-content-filtering-in-4-steps-with-Ubunt/?ALLSTEPS
  2.  
  3. apt-get install tinyproxy dansguardian
  4.  
  5. nano -c /etc/dansguardian/dansguardian.conf
  6. # UNCONFIGURED
  7. filterport = 8080
  8. proxyport = 3128
  9.  
  10. nano -c /etc/tinyproxy.conf
  11. Port=3128
  12.  
  13. /etc/init.d/dansguardian start
  14. /etc/init.d/tinyproxy start
  15.  
  16. ------------------------
  17. dansguardian.conf - From here you set global variables such as port numbers, adapters to bind to, etc.
  18. dansguardianf1.conf - This file holds the settings for filtergroup 1, and can be copied and the copies altered if multiple filter groups are used. Here is also where you will change the naughtyness limit of the default filter group. The recommended setting for this variable goes like this - 50 for young children, 100 for old children, 160 for young adults. The default setting is 50.
  19. bannedsitelist - where you will go to ban entire sites like example.com
  20. bannedurllist - where you will go to ban specific URLs like example.com/~user/index.htm
  21. bannedphraselist - allows you to specify phrases that will be scanned for in each requested page, e.g. Potty Humor this is useful if there are specific things that still make it through after the filter is set up.
  22. bannediplist - for a total ban of a site, specify the IP address. This could have uninteded consequences as some sites share IPs with other sites.
  23. exceptioniplist - for whitelist configurations - allows specific IPs
  24. exceptionsitelist - for whitelist configurations - allows specific sites like example.com
  25. exceptionurllist - for whitelist configurations - allows specific urls, but not entire sites, like example.com/~user/index.htm
  26. exceptionphraselist - exempts specific phrases if they are blocked needlessly
Advertisement
Add Comment
Please, Sign In to add comment