Operating Systems > Linux and UNIX

proxy problems

<< < (2/3) > >>

Master of Reality:
:(  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?

Master of Reality:
now i am basically just documenting how i fixed it...
i had to add the full netmask beside my machines IP.

voidmain:
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.

Master of Reality:
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?

voidmain:
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 ]

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version