LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 04-18-2009, 12:00 AM   #16
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled

You mean to say that the mailing sites are being banned by dans? That could be possible if you have not taken into consideration dans when you configured squid. You will need to configure dans to bypass the mailing site that you want to access by putting it in exceptionsitelist file.
 
Old 04-23-2009, 12:12 PM   #17
parmeshwary2k
LQ Newbie
 
Registered: Apr 2009
Posts: 20

Original Poster
Rep: Reputation: 0
hi,

If in your office same thing is running please send me all configuration and cod.
this will be appreciable.
 
Old 04-24-2009, 01:28 AM   #18
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
Everyones need is different and so are the server configurations. You need to look into it what is your need and then chalk out the policies that you need to make and then configure your server that way. Me sending you the configuration would not work for you.
Do not go over board and first try if squid is working. Then try is dans is working. Then make a very simple squid acl and then look if it is working. Go slow and step by step and you will have a working server.
 
Old 04-25-2009, 07:20 PM   #19
parmeshwary2k
LQ Newbie
 
Registered: Apr 2009
Posts: 20

Original Poster
Rep: Reputation: 0
Transparent squid with dansguardian ,

Hi,
Acording to your old thread your and me requirement is same please send me all required conf and code if you can.Why do you use proxy on client side.Only i am not able to allow selected ip for mailing site, according to your old thread you have done this and you are using both acl(dans and squid) togather.Help of your all documentation i can check step by step.
 
Old 04-27-2009, 12:47 AM   #20
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
I do not use proxy on client side. And how do I use it? If you mean to say configure the web browser, then I do not. I have pretty much working transparent squid with dans.(touch wood).
Can you elaborate why you think squid acl are not working? If you think that though you have allowed some sites in squid but are getting blocked by dans, then it will if they are not allowed in dans. Look into dans what you have allowed and what you have not. I doubt your configuration is not working but I guess it is your feeling that it is not. If dans is blocking some thing then you will need to allow it from your configuration files explicitly.
 
Old 04-28-2009, 01:23 PM   #21
parmeshwary2k
LQ Newbie
 
Registered: Apr 2009
Posts: 20

Original Poster
Rep: Reputation: 0
Hi,

I have checked my all configuration throughly.Please send me your all configuration step by step from squid server to desktop then i could match with you.I ahve already send my all configuration.
 
Old 04-29-2009, 12:52 AM   #22
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
You are still not answering my question and hell bent on my configuration. My configuration is not much different than yours. What I need to know is what is that is not working for you and how do you come conclusion that your access controls are not working. There is no meaning in matching my configuration with yours. That will not solve your problems long time.
Tell me one thing, the mailing sites that you want to allow are banned by squid or dans? Once you get to this you will have less difficulty.

Code:
acl our_network src 192.168.2.*-192.168.2.*
acl allowed_stations src 192.168.2.* - 192.168.2.*
acl banned-sites url_regex -i "/etc/squid/banned-sites"

http_access allow allowed_stations
http_access deny banned-sites
http_access allow our_network
 
Old 04-30-2009, 03:07 PM   #23
parmeshwary2k
LQ Newbie
 
Registered: Apr 2009
Posts: 20

Original Poster
Rep: Reputation: 0
Hi,
dans is blocking.your mentioed code is allowing all site (acl allowed_stations src 192.168.2.* - 192.168.2.*) on this ip i want to allow only mailing site on particular ip.in my setup when i transfer traffic to 8080 then dand is applying and when i transfer traffic to 3128 then squid is applying.
 
Old 05-02-2009, 01:26 AM   #24
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
Do you know why dans is blocking? And can you give what error dans is giving you? You will need to configure dans separately than squid. Dans will not follow squid acl.
If you want to allow mailing sites on some set of ips then you can do that this way

Code:
acl mailing src 192.168.1.10-192.168.1.15
acl mailing_allowed dstdomain .gmail. .yahoo. .aol. 

http_access allow mailing mailing_allowed
But take care than dans will also allow the mailing sites. I doubt that problem is what you said to be. But it lies in the configuration. You think squid acls are not applied but I guess this is because dans is more restrictive than squid.
 
Old 05-06-2009, 01:17 PM   #25
parmeshwary2k
LQ Newbie
 
Registered: Apr 2009
Posts: 20

Original Poster
Rep: Reputation: 0
Transparent squid with dansguardian

Hi,

I have done this you can check in my posted code.only problem is this when i transfer traffic to 3128 then squid acl is applying and when i transfer traffic 8080 then dans is aplying.i have configure dans as full access mode for mailing site in banedsite file .if any other idea regarding dans config please share with me.
 
Old 05-07-2009, 12:05 AM   #26
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
No, you dont have to configure bannedsitelist file. If you want to allow some site then you will have to allow it through exceptionsitelist file.
I am still confused how did you get to the conclusion that only one set of control lists are being applied.
 
Old 03-26-2010, 09:17 AM   #27
neo_2112
LQ Newbie
 
Registered: Mar 2010
Posts: 1

Rep: Reputation: 0
Compile and install squid with the "--enable-follow-x-forwarded-for" option.
This helps squid to parse the X-Forwarded-For headers to find the IP address of the original (or indirect) client and apply the ip based acls set in your squid config. file.
Without this option enabled, if you check the squid access log, the only ip address that you can see is either the ip of your dansguardian server or 127.0.0.1 and not the original client machine's ip address. This is why your IP based acls in squid fail to work.

To fix it :
Turn on the option "forwarded_for" in squid.conf
Add the following acl lines in squid.conf :

acl my_other_proxy srcdomain <your.proxy.server/domain.name>
follow_x_forwarded_for allow localhost
follow_x_forwarded_for allow my_other_proxy

Set the option forwardedfor = on in the dansguardian.conf file.

Restart the services and that's it ...

Last edited by neo_2112; 03-26-2010 at 09:32 AM. Reason: added a little more details
 
Old 05-04-2010, 08:04 AM   #28
Gkarthikeyan007
LQ Newbie
 
Registered: May 2009
Posts: 3

Rep: Reputation: 0
hi,

Plz let me the steps to block adult sites using dansguardian
 
Old 05-04-2010, 08:06 AM   #29
Gkarthikeyan007
LQ Newbie
 
Registered: May 2009
Posts: 3

Rep: Reputation: 0
i need a proper guidence on how to block all the restricted sites using dansguardian
is dansguardian has the default site blocking? or it has to be manually edited
 
Old 05-04-2010, 12:35 PM   #30
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by Gkarthikeyan007 View Post
hi,

Plz let me the steps to block adult sites using dansguardian
Open your own thread, for your own questions. This thread is from last year, and you're trying to hijack it. Also, spell out your words.

If you want information on setting up Dansguardian, there's plenty you can find on Google.
 
  


Reply



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
[SOLVED] Squid+DansGuardian not working properly. squid blocking sites that should be linuxlover.chaitanya Linux - Server 13 11-10-2014 10:34 AM
setting up dansguardian as a transparent proxy for hosts dcordina Ubuntu 3 03-02-2009 08:57 AM
IPTABLES, SQUID, DANSGUARDIAN and Transparent Proxy metallica1973 Linux - Networking 18 09-03-2007 07:17 PM
FC4 - How to setup Transparent Proxy with Dansguardian RTX Networks Linux - Networking 1 09-12-2006 12:49 AM
squid (Transparent proxy) & Dansguardian metallica1973 Linux - Security 8 12-15-2005 07:52 PM

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

All times are GMT -5. The time now is 11:56 AM.

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