Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't connect to Dansguardian or Squid
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
drrich
n00b
n00b


Joined: 18 Mar 2008
Posts: 5

PostPosted: Wed Mar 11, 2009 3:56 pm    Post subject: Can't connect to Dansguardian or Squid Reply with quote

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
View user's profile Send private message
ecroy
n00b
n00b


Joined: 08 Nov 2002
Posts: 59

PostPosted: Wed Mar 11, 2009 6:30 pm    Post subject: Reply with quote

Could you please post your firewall configuration:
Code:
iptables -nL

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
View user's profile Send private message
drrich
n00b
n00b


Joined: 18 Mar 2008
Posts: 5

PostPosted: Wed Mar 11, 2009 7:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
ecroy
n00b
n00b


Joined: 08 Nov 2002
Posts: 59

PostPosted: Wed Mar 11, 2009 8:48 pm    Post subject: Reply with quote

Ok, the firewall does indeed seem not to be the problem :wink:
Could you please check if your lo interface is up - by looking for something like "UP LOOPBACK RUNNING" in the output of
Code:
ifconfig lo

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:
Back to top
View user's profile Send private message
drrich
n00b
n00b


Joined: 18 Mar 2008
Posts: 5

PostPosted: Wed Mar 11, 2009 10:20 pm    Post subject: Reply with quote

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
Code:

ifconfig lo up

everything could hook up.

Thanks a bunch
Back to top
View user's profile Send private message
ecroy
n00b
n00b


Joined: 08 Nov 2002
Posts: 59

PostPosted: Wed Mar 11, 2009 10:33 pm    Post subject: Reply with quote

You're welcome - I remember myself struggling for hours with the "lo interface down problem" once :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum