Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We have a local server which manages our internet connection. This server functions as a gateway, and that way we share the internet throughout the office (instead of using a router). However, I'd like to block access to the internet for all users at some point in the day, EXCEPT for a few websites. I do not care to doing this switch manually, but I'm looking for some easy method of blocking all but a few websites. Is there an easy way, with this server already centralizing internet access?

share|improve this question
up vote 0 down vote accepted

I have used squidguard before which has worked very well - supports blocking of sites and categories by specified rules(before work/lunchtime/weekends etc) and IP subnets. Once you have squid installed and working it is very easy to get squidguard in place. Permitting internal users by subnets is great for allowing access according to your organisational requirements.

share|improve this answer

A tool like dansgaurdian should be able to do this for you. You could also look at the custom filter capabilities of squid.

share|improve this answer

I realize that this may not be what you are interested in, but consider trying Untangle Firewall/Router, which is based on Debian, and indirectly Ubuntu, and allows all sorts of filtering. It is a great product for the kind of environment you describe.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.