Click to See Complete Forum and Search --> : How do i get Squid running?


alunt
05-11-2002, 08:41 AM
I'm having a terrible time trying to get Squid to work.
I'm running a Suse 7.3 box which has Squid installed.
This box is connected to the net on a dial-up isdn(ippp0).Lan address(192.168.0.1).I need two other Windows boxes(192.168.0.2 & 192.168.0.3) to use the Squid proxy(3128),but it does'nt work!
The Suse box is forwarding packets to the Windows boxes if i tell Internet Explorer not to use the 3128 proxie.
I don't know if i have misconfigured the Squid config file(/etc/squid.conf) or my firewall file(/etc/rc.config.d/firewall.rc.config)?-or both.

Also how do you check Squid is actually running?If i log into Webmin then look at Squid it doesn't say that it's running.

If anyone would like to mail me their working squid config file that would be great alunt@bigfoot.com

Hope you can help.
:)

tkoster
05-12-2002, 07:22 AM
To see if squid itself is running as a service try the following command at a terminal prompt:

services squid start

alunt
05-12-2002, 10:16 AM
Hmm "services" command not found on my system.

"squid start" probably does start the service as i don't get an error back.
I also have start squid at startup in my rc-config editor so it probably is running but i can't connect to the proxy on 3128.


:confused:

tkoster
05-13-2002, 07:09 PM
Oops, sorry on that one it is service not services. But your way should work too.

The squid.conf file should include the following enteries in the security section:

acl mylan src 192.168.0.0/255.255.255.0
http_access allow mylan

the acl line should go just under the "acl localhost line."
the http line should go below the "http_access allow localhost" line

after you edit it, save it then as root you can try "service squid restart"

Then in the webbrowsers on the other machines on you network select the proxy option, enter 192.168.0.1 (provided that is your ip on the lan) as the gateway and 3128 as the proxy (though you seem to have that part figured out).

I got web access that way though I am still trying to figure out email access.

al
05-17-2002, 03:36 PM
Yes i know i'm logged in as a different user but it is me i promise.

Okay tkoster i got Squid running by editing the squid file the way you said but when i load web pages through the proxy i don't see any significant change in the speed the pages are loading.

I thought that because squid would cache pages,then next time you view the page it would load from the cache instead of having to go out to the net to retreive it.But i'm still getting pages loading at roughly the same speed.
How can i speed things up?

tkoster
05-17-2002, 09:02 PM
Sorry, you just outstripped my knowledge of squid. What I gave you is the only way I've been able to get internet out to my lan at all, so I've got nothing to compare it to. I would assume it should be faster as well, unless perhaps your browser settings tell it to go all the way back to the source each time you load a page. I wish I could offer more help, but you just discovered why I am still a lowly grasshopper.