LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-19-2012, 03:35 AM   #1
sohailkmu
Member
 
Registered: Oct 2008
Posts: 81
Blog Entries: 1

Rep: Reputation: 15
Dansguardian not working for network users


Dear All,

I have configured Dansguardian alongside squid.
Now everything is fine when I use it from the machine on which dansguardian is installed. But for other users accessing from network, it is not working. I mean, sites can be accessed even when proxy settings are correct for dansguardian.

I dont know much about iptables. I think it might be some error with iptables.

please help me out
 
Old 11-19-2012, 12:01 PM   #2
RobertP
Member
 
Registered: Jan 2004
Location: Manitoba, Canada
Distribution: Debian
Posts: 451

Rep: Reputation: 32
Some applications ignore proxy settings from the GNU/Linux environment. You could check the environmental settings and the application's settings.

echo $http_proxy



To avoid such problems, many use a "transparent" proxy so that all requests from the LAN to the outside world are routed through Dan's Guardian. Basically, the router redirects all out-bound http requests to your DG.

Another procedure people use is a filtered DNS like openDNS. See for example, Five Best Content-Filtering Tools The idea is that all DNS requests are filtered for safe targets. A client can still use an IP address to bypass that but it stops casual users.

On the router, set up something like this if DG is running on the router.

It gets more complex if you want certain clients unhindered access to the web but it's all done with configuring iptables, squid and Dan's Guardian.
 
Old 11-19-2012, 10:05 PM   #3
sohailkmu
Member
 
Registered: Oct 2008
Posts: 81
Blog Entries: 1

Original Poster
Rep: Reputation: 15
Thanks a lot for your response.
From nowhere it has started working now.

Thanks

Quote:
Originally Posted by RobertP View Post
Some applications ignore proxy settings from the GNU/Linux environment. You could check the environmental settings and the application's settings.

echo $http_proxy



To avoid such problems, many use a "transparent" proxy so that all requests from the LAN to the outside world are routed through Dan's Guardian. Basically, the router redirects all out-bound http requests to your DG.

Another procedure people use is a filtered DNS like openDNS. See for example, Five Best Content-Filtering Tools The idea is that all DNS requests are filtered for safe targets. A client can still use an IP address to bypass that but it stops casual users.

On the router, set up something like this if DG is running on the router.

It gets more complex if you want certain clients unhindered access to the web but it's all done with configuring iptables, squid and Dan's Guardian.
 
Old 11-20-2012, 12:49 AM   #4
sohailkmu
Member
 
Registered: Oct 2008
Posts: 81
Blog Entries: 1

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by sohailkmu View Post
Thanks a lot for your response.
From nowhere it has started working now.

Thanks
Actually I missed out the trick. I got it today. iptables needed to be restarted.

Thanks
 
Old 11-20-2012, 11:10 PM   #5
sohailkmu
Member
 
Registered: Oct 2008
Posts: 81
Blog Entries: 1

Original Poster
Rep: Reputation: 15
Problem with Yahoo Mail using Dansguardian

Dear All,

Now I am facing another problem which is irritating me. using yahoo mail has become a problem now. The interface of yahoo mail is not displayed correctly. Even attachments of file types doc and xls can not be downloaded.

Kindly help me.
 
Old 11-21-2012, 04:57 AM   #6
RobertP
Member
 
Registered: Jan 2004
Location: Manitoba, Canada
Distribution: Debian
Posts: 451

Rep: Reputation: 32
DG can block "dangerous" file-types. See the file /etc/dansguardian/lists/bannedextensionlist

# Files which one normally things as non-executable but
# can contain harmful macros and viruses

.doc # Word document
.xls # Excel document
.pps


Edit that file and restart DG. You could alternatively bless certain web domains as trusted so files from there would not be blocked in exceptionsitelist.
 
Old 11-26-2012, 01:03 AM   #7
sohailkmu
Member
 
Registered: Oct 2008
Posts: 81
Blog Entries: 1

Original Poster
Rep: Reputation: 15
Red face SARG not generating reports for Dansguardian

I was using SARG for reporting of Squid. Now the problem is I receive reports only for localhost i.e 127.0.0.1.
I have changed log file format in dansguardian to 3 i.e squid format. But when I generate report with SARG.It gives me the following error.

Maybe you have a broken date in your /var/log/dansguardian/access.log file

Kindly help me out of this situation



Quote:
Originally Posted by RobertP View Post
DG can block "dangerous" file-types. See the file /etc/dansguardian/lists/bannedextensionlist

# Files which one normally things as non-executable but
# can contain harmful macros and viruses

.doc # Word document
.xls # Excel document
.pps


Edit that file and restart DG. You could alternatively bless certain web domains as trusted so files from there would not be blocked in exceptionsitelist.
 
  


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
LXer: Two more utilites for DansGuardian Users LXer Syndicated Linux News 0 11-24-2010 03:50 AM
LXer: A pair of utilities for DansGuardian users LXer Syndicated Linux News 0 11-16-2010 11:30 AM
Squid and Dansguardian in use, but users to bypass proxy on certain times of the day codenjanod Linux - Server 1 09-25-2009 11:47 AM
Here's help for CE users who are struggling with Dansguardian Whitestar Ubuntu 4 06-23-2007 09:15 PM
dansguardian not working mblames Linux - Server 9 01-19-2007 01:42 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration