Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-16-2005, 01:50 AM
|
#1
|
Member
Registered: Oct 2004
Distribution: Debian, Ubuntu
Posts: 74
Rep:
|
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
|
|
|
03-16-2005, 08:31 AM
|
#2
|
Member
Registered: Feb 2004
Location: Mooresville NC
Distribution: CentOS 4,Free BSD,
Posts: 358
Rep:
|
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.
|
|
|
03-16-2005, 12:01 PM
|
#3
|
Member
Registered: Oct 2004
Distribution: Debian, Ubuntu
Posts: 74
Original Poster
Rep:
|
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
|
|
|
03-16-2005, 12:29 PM
|
#4
|
Member
Registered: Feb 2004
Location: Mooresville NC
Distribution: CentOS 4,Free BSD,
Posts: 358
Rep:
|
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.
|
|
|
03-16-2005, 02:06 PM
|
#5
|
Member
Registered: Oct 2004
Distribution: Debian, Ubuntu
Posts: 74
Original Poster
Rep:
|
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 ?
|
|
|
09-25-2005, 06:16 PM
|
#6
|
LQ Newbie
Registered: Sep 2005
Distribution: SmoothWall2-RH8
Posts: 1
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 10:38 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|