View previous topic :: View next topic |
Author |
Message |
drrich n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 18 Mar 2008 Posts: 5
|
Posted: Wed Mar 11, 2009 3:56 pm Post subject: Can't connect to Dansguardian or Squid |
|
|
I have been trying to set up dansguardian and squid to use a a filter. The problem is that somehow my network setting are messed
up and I cannot get anything to connect.
If I just browse normally then I can connect to the internet but I can seem to do it through dansguardian or through squid.
Squid listens on port 3128
Dansguardian is supposed to connect on 3128
and listen on 8080
eventually I want to set up a firewall to redirect traffic from 80 to 8080 but right now I am just pointing the browser (firefox)
to connect through 8080
it tries to connect but it never does
when I use
netstat -pantu
I can see
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 4035/dansguardian
tcp 0 0 0.0.0.0:8888 0.0.0.0:* LISTEN 3965/tinyproxy
tcp 0 0 0.0.0.0:3128 0.0.0.0:* LISTEN 3905/(squid)
tcp 0 1 10.4.90.35:52149 127.0.0.1:8080 SYN_SENT 4496/firefox
udp 0 0 0.0.0.0:34863 0.0.0.0:* 3905/(squid)
udp 0 0 0.0.0.0:3130 0.0.0.0:* 3905/(squid)
I never get the SYN_ACK and the connection is never established if I check the logs neither squid nor dansguardian saw anything
I think it is somehow getting silently dropped but I don't know. I have turned off all of the firewall stuff that I am aware of I may not have dont it correctly I do not have strong networking skills.
Thank you for any help that you are able to provide |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
ecroy n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 08 Nov 2002 Posts: 59
|
Posted: Wed Mar 11, 2009 6:30 pm Post subject: |
|
|
Could you please post your firewall configuration:
As a side note: I saw you running squid AND tinyproxy at the same time - is there a specific reason you want to use both of them? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
drrich n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 18 Mar 2008 Posts: 5
|
Posted: Wed Mar 11, 2009 7:56 pm Post subject: |
|
|
the result of iptables -nL
is
Quote: |
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
|
The reason that tinyproxy was running as well was part of my attempt to troubleshoot I don't want to use both
I was just trying to find something that worked.
again thank for the help |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
ecroy n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 08 Nov 2002 Posts: 59
|
Posted: Wed Mar 11, 2009 8:48 pm Post subject: |
|
|
Ok, the firewall does indeed seem not to be the problem
Could you please check if your lo interface is up - by looking for something like "UP LOOPBACK RUNNING" in the output of
If it is up you could try connecting to squid manually with telnet:
Code: | telnet 127.0.0.1 3128 | and type something like "GET http://www.google.com" - you should see some HTML-code.
If that doesn't work as well you might have a look into your /etc/squid.conf and see if your acl settings might interfere (although if you didn't change them the defaults are probably ok).
If nothing helps - come back here ![Wink :wink:](images/smiles/icon_wink.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
drrich n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 18 Mar 2008 Posts: 5
|
Posted: Wed Mar 11, 2009 10:20 pm Post subject: |
|
|
Well that was it.
For some reason my lo interface was down
I am not sure why it was down yet but when it was brought back with
everything could hook up.
Thanks a bunch |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
ecroy n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 08 Nov 2002 Posts: 59
|
Posted: Wed Mar 11, 2009 10:33 pm Post subject: |
|
|
You're welcome - I remember myself struggling for hours with the "lo interface down problem" once ![Smile :)](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|