EdubuntuProxy

Revision 2 as of 2007-10-10 14:38:05

Clear message

Introduction

So you have a nice shiny Edubuntu server install and everything is well. You have an internet connection, but your want to restrict your users access to certain content on the internet, and you want to be able to do it without installing a second machine as a proxy/filtering server.

Well here is how I did it.

These instructions are based on gutsy and have limited testing, in my case they have worked. If you find a better way of implementing this please feel free to expand/change it.

Installing packages

*Firstly install squid and dansguardian:

sudo aptitude install squid dansguardian

*Secondly configure and start squid:

sudo gedit /etc/squid/squid.conf
  • Find the line beginning "http_port 3128" and change it to read "http_port 3128 transparent" this is needed as later on we will be playing around with iptables so your users will automagically use filtering no matter what they try and do. Next find the section on "visible_hostname" and add "visible_hostname edubuntu" (substitute edubuntu for the hostname of the server you are configuring) Save the file and close.

* Now start squid:

sudo /etc/init.d/squid start