Saturday - Dec 20, 2014

Set up web content filtering in 4 steps with Ubuntu


If you found yourself in the situation where you wanted to block the certain sites so your kids can’t access them, here’s what you need to do.

Firstly open up the main Ubuntu terminal and type in these commands:

$ sudo apt-get install tinyproxy dansguardian

If the system asks you to type in your password, you need to type it in to confirm the download. To make both of these applications functional you need to configure them. It is a pretty easy process that’s also done from the terminal. Type in:

$sudo nano-c/etc/dansguardian/dansguardian.conf

In the line 3 you should place the # before the word “unconfigure”. Line 63 should look like this- filterport=8080, and the line 65 should look like this- Proxyport=3128, save this as an original file name.

Now you have to edit tinyproxy.conf in the same manner, type in this in the terminal:

$ sudo nano-c/etc/tinyproxy/tinyproxy.conf

Line 15 should look like this- Port=3128.

Last thing that’s left to do is to start these services. In the terminal type in these commands:

$sudo/etc/linit.d/dansguardian start

$sudo/etc/linit.d/tiny proxy start

Now you need to set up the clients that connect through proxy. You can also lock all of these changes so nobody can change them using your administrator account. It is important to mention that setups differ from one operating system to another.

In To complete the setup in Firefox you need to go to options, then advanced, then network tab and click on settings in the connections. Now click on manual proxy configuration, and in HTTP field enter the IP address of your proxy, in Port enter the 8080, check the “use this proxy server for all protocols” option and click OK. After you do this, try everything out, go to the random address you didn’t block, and go to one address that’s blocked, if everything functions like you imagined, you’ve successfully completed the process.

Web content filtering in Ubuntu

Web content filtering in Ubuntu

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>