LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-16-2005, 01:50 AM   #1
landuchi
Member
 
Registered: Oct 2004
Distribution: Debian, Ubuntu
Posts: 74

Rep: Reputation: 15
Selective Filetering using Squid + DansGuardian


I am using Squid 2.5.stable 1 + Dansguardian on a RH9. The linux box works as a transparent proxy for a win98 network at a cybercafe.

It is working just fine, the problem is that i have no way of switching the content filtering for each machine.

Since the redirection works this way:

Browser > Linux Box (port 80) > DansGuardian (8080) > Squid (3160) > Browser

I was thinking a script could be made to redirect the machine directly to squid without passing trough the filtering, the problem is i have to idea of how to do this.

If you could give me an idea or point me somewhere i can read. Or if you have a better idea just tell me :P

Thanks in advance
 
Old 03-16-2005, 08:31 AM   #2
phatboyz
Member
 
Registered: Feb 2004
Location: Mooresville NC
Distribution: CentOS 4,Free BSD,
Posts: 358

Rep: Reputation: 30
On my setup I can connect on 3128 and get no filter and 8080 is filtered. You just have to set another acl for squid to allow you to connect to it directly. I know what when I first setup dansguardian I remove all squid access except for the localhost which dansguardian was connecting to. Then you could only connect to the 8080 of dansguardian as 3128 was being denied. Its all in your squid.conf Like I said you just need another acl.
 
Old 03-16-2005, 12:01 PM   #3
landuchi
Member
 
Registered: Oct 2004
Distribution: Debian, Ubuntu
Posts: 74

Original Poster
Rep: Reputation: 15
Content filtering is required by law here, but it is only meant for people under 18. Right now i can have DansGuardian filter all the machines or none. So I need an easy way of switching DansGuardian filtering on each machine.

Since i use static ips i thought a script could do that, redirecting an ip to squid intead of dansguardian. I have no idea of how to do that, maybe you can give me and idea or point me somewhere i can read.

Thanks
 
Old 03-16-2005, 12:29 PM   #4
phatboyz
Member
 
Registered: Feb 2004
Location: Mooresville NC
Distribution: CentOS 4,Free BSD,
Posts: 358

Rep: Reputation: 30
Your client is running XP? Cause if you setup each username to use the different ports then that would work. I'm assuming that windows will allow different internet setting for different users. Other that this there is no way to know if the person sitting infront of the compuer is really 18.
 
Old 03-16-2005, 02:06 PM   #5
landuchi
Member
 
Registered: Oct 2004
Distribution: Debian, Ubuntu
Posts: 74

Original Poster
Rep: Reputation: 15
Clients are running windows 98, there shudn't be any client side configuration.

Let me put it another way, right now i have this iptables rule redirecting all http to DansGuardian

iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j REDIRECT --to-port 8080

What iptables rule do i need to redirect 1 machine (lets say 192.168.0.111) to port 3160 intead of 8080 without modifying the rest ?
 
Old 09-25-2005, 06:16 PM   #6
KanDo4U
LQ Newbie
 
Registered: Sep 2005
Distribution: SmoothWall2-RH8
Posts: 1

Rep: Reputation: 0
Lightbulb Config browser for proxy use

Can't help with Squid but you could just config the one machine's browser to use a particular proxy port.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Dansguardian/Squid HELP! Prizam Linux - Software 3 09-23-2005 06:30 PM
iptables, DansGuardian, and Squid. cth3 Linux - Networking 1 02-10-2005 09:04 AM
squid and dansguardian safe ports gone nickcol11 Linux - Networking 0 12-21-2004 04:32 PM
DansGuardian, Squid, and Firewall rules jwgeurk Linux - Networking 7 06-18-2004 02:26 AM
squid + dansguardian + compact flash cyph3r7 Linux - Software 1 06-20-2003 12:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration