Stop Microsoft
Operating Systems => Linux and UNIX => Topic started by: Master of Reality on 20 August 2002, 05:09
-
I just put up my new squid which is copied from my old squid install. Mozilla is going through squid but sometimes (often) when i click a link it will say 'connection refused' and if i click it once or twice more it will go. Got any ideas what this could be? It has never happened before.
-
Could it be that it's not getting through your proxy "at all" and eventually just pulling the page from your browsers local internet cache? Look at the end of your squid cache logs and see if all requests were denied or several denieds followed by an accept. That shouldn't be possible. Should be all or nothing.
-
Well i could view new pages of the forums. So that is the odd thing. It has something to do with my proxy because now mozilla isnt going through the proxy (just masquerading) and it doesnt do that at all now.
-
Very odd. Is anything configured differently on your new server (different IP addresses on the interfaces)? I have to say that is a new one on me...
-
how do i tell the unix time format???
-
Uh?
-
i didnt change anything in squid from my last install. Except for the visible_hostname which i changed to gonarch.master.local (which is the name of my internal address) but that was only a couple seconds ago while i was inspecting the squid.conf. When i try it in konqueror some pages say 'connection to chatroom.fuckmicrosoft.com broken' 'could not connect to proxy at 192.168.0.1:3128'. But then when i clicked again it worked, just like in mozilla.
-
ummm... it looks like for some reason my clients go through the proxy on a different port than specified in the squid.conf...
here is some of my squid access.log (my external proxy IP address is 205.92.81.80):
1029774954.480 2158 192.168.0.2 TCP_MISS/200 2144 GET http://www.bobhub.tk/ (http://www.bobhub.tk/) -
DIRECT/195.20.32.104 text/html
1029774956.549 1652 192.168.0.2 TCP_MISS/200 208 GET http://www.bobhub.tk/html (http://www.bobhub.tk/html)
/index.html - DIRECT/195.20.32.104 text/html
1029774960.507 2137 192.168.0.2 TCP_MISS/404 482 GET http://www.bobhub.tk/favi (http://www.bobhub.tk/favi)
con.ico - DIRECT/195.20.32.104 text/html
1029775040.719 297 192.168.0.2 TCP_MISS/200 2144 GET http://www.bobhub.tk/ (http://www.bobhub.tk/) -
DIRECT/195.20.32.104 text/html
1029775041.197 272 192.168.0.2 TCP_MISS/200 208 GET http://www.bobhub.tk/html (http://www.bobhub.tk/html)
/index.html - DIRECT/195.20.32.104 text/html
1029775041.220 261 192.168.0.2 TCP_MISS/200 1592 GET http://chatroom.fuckmicr (http://chatroom.fuckmicr)
osoft.com:8000/bobhub/ - DIRECT/205.92.81.80text/html
1029775053.668 172 192.168.0.2 TCP_MISS/200 900 GET http://www.canada.com/ (http://www.canada.com/) -
DIRECT/204.187.152.37 text/html
1029775056.079 71 192.168.0.2 TCP_MISS/302 538 GET http://www.canada.com/fav (http://www.canada.com/fav)
icon.ico - DIRECT/204.187.152.48 text/html
1029775064.466 270 192.168.0.2 TCP_MISS/200 14610 GET http://www.canada.com/n (http://www.canada.com/n)
ational/ - DIRECT/204.187.152.37 text/html
1029775064.648 66 192.168.0.2 TCP_MISS/200 2292 GET http://www.canada.com/co (http://www.canada.com/co)
mponents/startpage/startpage.js - DIRECT/204.187.152.33 application/x-javascript
(END)
[ August 20, 2002: Message edited by: Master of Reality / Bob ]
-
Did you restart Squid after making the change? Is your proxy's internal address 192.168.0.1? Does the host name that you use in squid match the host name exactly in /etc/hosts for 192.168.0.1? Did you look at the Squid logs? Are you sure Squid is running (ps auxwww | grep squid)?
-
quote:
Originally posted by VoidMain:
Uh?
juh? would have been more appropriate but i'm talking about the UNIX Timestamp
-
There you go posting while I'm typing again... I don't see anything wrong with those logs.. A TCP MISS just means the document to be served was not in Squids cache so it had to go to the net to get it. Are you sure you have IP Chains/Tables configured correctly?
-
quote:
Originally posted by Master of Reality / Bob:
juh? would have been more appropriate but i'm talking about the UNIX Timestamp
What UNIX timestamp? Maybe you mean a time stamp in a log? That would be specific to the application that created the log, not UNIX.
-
http://www.onlineconversion.com/unix_time.htm (http://www.onlineconversion.com/unix_time.htm)
-
But what I am getting at is how does that question relate to this thread? I see no connection.. Maybe I am missing something..
[edit]Ah, I got ya, the timestamp in the Squid log. I actually ignore that because I watch the logs real time when I am trouble-shooting by using the "tail -f" command..
[ August 20, 2002: Message edited by: VoidMain ]
-
only that it is in my log, but it probly shoulda been in another thread.
Squid is running, my browsers are setup proerly.
the hosts match, i did 'killall -9 squid' and then started it with 'squid -z' to flush and rebuild the swap and cache because when i did 'squid restart' it said 'Squid already runnin!'.
-
Try:
/etc/rc.d/init.d/squid stop
It's really not nice to do a "kill -9" when you can shut it down properly.
-
i realized that squid has adzap as a redirector program and then realized that adzap wasnt working. So i found that it needed to be made executable so after chmodding it +x, it worked and now it seems to have stoped giving me connection refused errors.
Could it be that this was the cause of the problem?
-
Most definitely, I'll bet this fixes it.