Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have just installed Squid on my laptop and I am successfully blocking all the traffic that I want to block ( websites, protocols etc. ). But I would like to route all the traffic form my LAN ( have just 2 computers in it - and I use Dlink 502T router - I know, an old one). Any ideas how can I do this ?

I have found something like this on the web but this is for Linux http://www.tuxradar.com/answers/432

I have already thought about assigning my IP as a "default gateway" on other computers from my LAN but Squid uses port 3128. Would it work like this or should I change Squid port to 80 ? Will it work then ?

share|improve this question

migrated from serverfault.com Apr 14 '11 at 20:53

This question came from our site for professional system and network administrators.

2 Answers 2

up vote 1 down vote accepted

Setup the browsers on the other computers to use your machine's squid port as the web proxy.

If you want to block other protocols or programs, you will need to setup a real router/gateway scenario, but there are several other pieces of software, and probably hardware, that you would need for that. The simplest scenario is just setting them to use your squid address as their default browser proxy.

share|improve this answer
    
thanks for the reply, I know I can do that but I wanted to do something more "idiot proof" so that e.g. kids for won't turn of the proxy in the browser settings or install another browser. –  Patryk Apr 15 '11 at 10:54
1  
Your current network topology does not have your laptop between the users and their natural route. Anything you do to reroute them to your squid port will be a hack unless you redo the topology so that you are the default and only way out of the network. –  Caleb Apr 15 '11 at 11:03
    
ok, so hmm... that might be a stupid question but: what is the purpose of using squid then ? I mean in which situation (topology) ? –  Patryk Apr 15 '11 at 12:02
    
Squid is a cache system used to speed access to remote resources by keeping copies of frequently accessed things and being able to quickly serve them up locally instead of waiting for remote downloads. It is not an access-control system. It sounds like you actually want a firewall/filter of some kind. –  Caleb Apr 15 '11 at 12:07
    
yep, but squid has this functionality so why not? What other software would you recommend to use instead then ? –  Patryk Apr 15 '11 at 12:18

Your home router should be setup to redirect request to port 80 and 443 to the squid server (or if your router can work on layer7 then HTTP and HTTPS requests) except when the request is coming from the squid server itself. Also you might want to block request to port 8080 as most proxies work on that port. Of course then you need a good router or maybe a Linux based router. One drawback of this setup is that if your laptop is off or the squid service is down, no one will access the internet.

share|improve this answer

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.