LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-19-2006, 04:04 AM   #1
yeeha!
LQ Newbie
 
Registered: Aug 2006
Posts: 3

Rep: Reputation: 0
Dansguardian and Squid


I have squid running on my proxy. I tried to change it to listen on port 4112. Well, it works.

Now, my Dansguardian won't work. I'd changed the filter port to 8080 and proxy port to 4112. The problem is, where it goes wrong? Is it because the firewall setting?

Tnax in advanced.
 
Old 08-19-2006, 10:22 PM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by yeeha!
I have squid running on my proxy. I tried to change it to listen on port 4112. Well, it works.

Now, my Dansguardian won't work. I'd changed the filter port to 8080 and proxy port to 4112. The problem is, where it goes wrong? Is it because the firewall setting?

Tnax in advanced.
yes, it could be the firewall settings... post the output of these commands (with squid and dansguardian running):
Code:
netstat -an | grep "LISTEN "
Code:
iptables -v -n -L
notice there is a space between LISTEN and the last quotation mark...

Last edited by win32sux; 08-19-2006 at 10:54 PM.
 
Old 08-20-2006, 09:17 PM   #3
yeeha!
LQ Newbie
 
Registered: Aug 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by win32sux
yes, it could be the firewall settings... post the output of these commands (with squid and dansguardian running):
Thanks.
I've to change back squid to listen on port 8080 and dansguardian's filter port to 3128 to make DG running. If not, it won't start. So here's how it goes:
Code:
netstat -an | grep "LISTEN "
with this command, I get:
Code:
tcp        0      0 0.0.0.0:32768           0.0.0.0:*               LISTEN
tcp        0      0 127.0.0.1:32769         0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:139             0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:8080            0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:6000            0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:10000           0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:3128            0.0.0.0:*               LISTEN
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:445             0.0.0.0:*               LISTEN
Code:
iptables -v -n -L
and the outpuit of this command is too long to post here. And it takes me several minutes to realize there's no "attach button" here . Pardon me a n00b from n00bland...
 
Old 08-20-2006, 09:28 PM   #4
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
you should be able to make squid and dansguardian run on pretty much any port you want... the typical ports are 3128 for squid and 8080 for dansguardian... squid doesn't need to be told about dansguardian, but dansguardian has a configuration file where you tell it which port squid is listening on - it should say 3128... without seeing your firewall rules, there's no way to say whether it's a firewall issue... if you firewall is logging, then check your syslog...
 
Old 08-21-2006, 01:22 AM   #5
yeeha!
LQ Newbie
 
Registered: Aug 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Ya, I've changed the DG's config file to the port that squid listening on.(i.e: 4112. That's the port that 'd changed in the squid config). Then I changed the filter port to 8080. With this configuration, DG won't start at all.

How can I attach the output(in a form of file) here as it's rather long to be put in a code tag.
I use Shorewall and had tried to changed the rule with this:
Code:
REDIRECT	loc	4112	tcp	www
but with no luck.

Last edited by yeeha!; 08-21-2006 at 01:23 AM.
 
  


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
dansguardian + squid shafey Linux - Security 2 12-31-2005 11:42 AM
squid and dansguardian on MDK 10.2 Trio3b Mandriva 1 12-27-2005 04:20 PM
Selective Filetering using Squid + DansGuardian landuchi Linux - Networking 5 09-25-2005 06:16 PM
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

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

All times are GMT -5. The time now is 04:19 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