Click to See Complete Forum and Search --> : Squid and IP Masq...
LordMorlock
11-21-2000, 08:39 PM
Can anyone assist me?... I have tryed to configure Squid for caching but failed. I have tryed all the info in the FAQ and manual without success. I tried setting the http port to 80 etc. and still couldn't get results.
As I said I have read all the Squid documentation and tried all that was recommended.
LordMorlock
furrycat
11-22-2000, 02:16 AM
What you didn't say is what you're trying to achieve! :-)
LordMorlock
11-23-2000, 07:16 PM
What I would like is to have all http requests to go through Squid (that is running on my server) so that I can have it cache webpages, graphics etc.
I have IP Masquerading enabled at the moment (on the server) so that ALL internet content is going to the clients (as they have their gateways set to the server). This is the perfect setup as the client computers can still play on-line games, ftp etc.
The only change to the setup I require is that Squid be running (as mentioned above) to cache the html documents etc. for quicker access for the clients.
When I activate it, the clients bypass Squid and go straight to the IP Masq. - Squids logs also reflect this occurance (ie. nothing in them).
furrycat
11-24-2000, 10:09 PM
In that case you need to get your firewall to redirect outgoing web requests to the port squid is listening on. The actual squid setup is pretty much the default one after that.
How to do this with ipchains? Don't know. I hate ipchains and its horrible syntax. Looking at the man page I see the REDIRECT rule and that would probably be the thing you need. On FreeBSD (using IPFIREWALL) you would use "ipfw add fwd me 80 tcp from localnet/24 to not localnet/24 80 in via fxp0". See? Syntax that makes sense.
Of course you could save yourself time and effort by just configuring the clients to use the proxy...