Author Topic: proxy problems  (Read 691 times)

Master of Reality

  • VIP
  • Member
  • ***
  • Posts: 4,249
  • Kudos: 177
    • http://www.bobhub.tk
proxy problems
« on: 12 July 2002, 01:20 »
I have on my computer Mozilla 1.1Alpha, Mozilla 1.0, Konqueror. Mozilla 1.1a is running perfectly through my proxy by just choosing proxy and typing in my server address. Mozilla 1.0 says 'connection refused' when trying to go through my proxy but can still go through my network being masqed. Konqueror does the same as Mozilla 1.0 but with the message 'Connection refused by 192.168.0.1'. They are all configured exactly the same for the proxy but only one of them will work. What could be stopping Mozilla 1.0 and konqueror??

[ July 11, 2002: Message edited by: Master of Reality / Bob ]

[ July 25, 2002: Message edited by: Master of Reality / Bob ]

Disorder | Rating
Paranoid: Moderate
Schizoid: Moderate
Linux User #283518
'It takes more than a self-inflicted gunshot wound to the head to stop Bob'

voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
proxy problems
« Reply #1 on: 15 July 2002, 07:16 »
Are you sure you have them set to use port 3128?  Are all of the browsers on the same machine?
Someone please remove this account. Thanks...

Master of Reality

  • VIP
  • Member
  • ***
  • Posts: 4,249
  • Kudos: 177
    • http://www.bobhub.tk
proxy problems
« Reply #2 on: 15 July 2002, 10:58 »
all the browsers are on the exact same machine and OS, they are all configured to use the proxy at 192.168.0.1 port 3128
Disorder | Rating
Paranoid: Moderate
Schizoid: Moderate
Linux User #283518
'It takes more than a self-inflicted gunshot wound to the head to stop Bob'

voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
proxy problems
« Reply #3 on: 15 July 2002, 18:01 »
I don't know what to say. It works for me in all browsers with no problem, and always has in all versions.  Hmm.

Hey, maybe you don't have the format right.  Some browsers want it in the form of:

192.168.0.1 and then "3128" in the port section.

then some browsers want it in the form of:

http://192.168.0.1/  and then "3128" in the port section.  

Then others want it in the form of:

http://192.168.0.1:3128/

Try using "http://192.168.0.1/" if you don't already.

[ July 15, 2002: Message edited by: VoidMain ]

Someone please remove this account. Thanks...

Master of Reality

  • VIP
  • Member
  • ***
  • Posts: 4,249
  • Kudos: 177
    • http://www.bobhub.tk
proxy problems
« Reply #4 on: 25 July 2002, 23:38 »
i was wrong... it doesnt work at all.
It says 'connection refused by website' from Mozilla and 'connection refused by 192.168.0.1 port 3128' from Konqueror.

I looked at my ipchains and none of them seem to be blocking it. I looked through my squid.conf and changed it to bind to 192.168.0.1:3128 exactly. I also set it to 'allow all' in the acl.

It still doesnt work.
then i checked the cache.log in /var/log/squid/
it seems that it couldnt find a swap file.. so i ran squid -z to create them, and now it works and i am almost happy

[ July 25, 2002: Message edited by: Master of Reality / Bob ]

Disorder | Rating
Paranoid: Moderate
Schizoid: Moderate
Linux User #283518
'It takes more than a self-inflicted gunshot wound to the head to stop Bob'

Master of Reality

  • VIP
  • Member
  • ***
  • Posts: 4,249
  • Kudos: 177
    • http://www.bobhub.tk
proxy problems
« Reply #5 on: 25 July 2002, 23:43 »
:(  whenever i turn off 'allow all' it cant connect anymore.
here is my acl section:

acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl SSL_ports port 443 563
acl Safe_ports port 80
acl Safe_ports port 21
acl Safe_ports port 443 563
acl Safe_ports port 70
acl Safe_ports port 210
acl Safe_ports port 1025-65535
acl Safe_ports port 280
acl Safe_ports port 488
acl Safe_ports port 591
acl Safe_ports port 777
acl CONNECT method CONNECT
acl machines src 192.168.0.1
acl machines src 192.168.0.2
acl machines src 192.168.0.3
acl machines src 192.168.0.4
acl bansite dstdomain .microsoft.com
acl bansite dstdomain .msn.com

http_access allow manager localhost
http_access deny manager

http_access deny !Safe_ports

http_access deny CONNECT !SSL_ports

http_access allow localhost
http_access allow machines !bansite
http_access deny bansite
http_access allow all

see anything very wrong?
Disorder | Rating
Paranoid: Moderate
Schizoid: Moderate
Linux User #283518
'It takes more than a self-inflicted gunshot wound to the head to stop Bob'

Master of Reality

  • VIP
  • Member
  • ***
  • Posts: 4,249
  • Kudos: 177
    • http://www.bobhub.tk
proxy problems
« Reply #6 on: 25 July 2002, 23:47 »
now i am basically just documenting how i fixed it...
i had to add the full netmask beside my machines IP.
Disorder | Rating
Paranoid: Moderate
Schizoid: Moderate
Linux User #283518
'It takes more than a self-inflicted gunshot wound to the head to stop Bob'

voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
proxy problems
« Reply #7 on: 26 July 2002, 01:03 »
Looks like you figgered it out then? Yes, I do not define my IP addresses the way you do and I do include the netmask on the network ranges/IPs.
Someone please remove this account. Thanks...

Master of Reality

  • VIP
  • Member
  • ***
  • Posts: 4,249
  • Kudos: 177
    • http://www.bobhub.tk
proxy problems
« Reply #8 on: 27 July 2002, 21:40 »
my fucking proxy stopped working again. The power went out. squid and httpd dont start at startup (yet). I get home and start httpd and squid. My webserver runs fine. Squid doesnt give any error messages when starting, but it doesnt work. Mother other computers cant connect through squid. Any ideas what the hell might have changed squid in a power outage?
Disorder | Rating
Paranoid: Moderate
Schizoid: Moderate
Linux User #283518
'It takes more than a self-inflicted gunshot wound to the head to stop Bob'

voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
proxy problems
« Reply #9 on: 27 July 2002, 21:50 »
Well, you may have corrupted something in the cache. You could try making it rebuild the cache by first deleting the old cache and restaring squid:

# /etc/rc.d/init.d/squid stop
# rm -rf /var/spool/squid/*
# /etc/rc.d/init.d/squid start

And while you are at it you could set it to start at bootup:

# /sbin/chkconfig squid on

[ July 27, 2002: Message edited by: VoidMain ]

Someone please remove this account. Thanks...

Master of Reality

  • VIP
  • Member
  • ***
  • Posts: 4,249
  • Kudos: 177
    • http://www.bobhub.tk
proxy problems
« Reply #10 on: 27 July 2002, 21:52 »
n/m it works now (at least in windows)... it may be because i needed to reinitialize the swap things with squid -z (thats what i did)
Disorder | Rating
Paranoid: Moderate
Schizoid: Moderate
Linux User #283518
'It takes more than a self-inflicted gunshot wound to the head to stop Bob'