Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: Shaun on June 14, 2002, 03:46:08 AM

Title: Squid and Proxy Ports
Post by: Shaun on June 14, 2002, 03:46:08 AM
Hi,

I have searched the current threads but have been unable to find a clear explaination on how to change the www and squid ports.

Currently my system is set to the defaults, however my current network users are using port 80.  I want to be able to change the squid proxy to 80 from 3128 and the www port to 880 from 80.

Any hints, help would be greatful.

Regards
Shaun
Title: Re: Squid and Proxy Ports
Post by: joost on June 14, 2002, 02:54:28 PM
A contrib by Charly Bradie exists to do just that. It's called Transproxy and takes care of redirecting port 80 directly into squid, so your users don't even have to specify a proxy in their browser configs.
Joost
Title: Re: Squid and Proxy Ports
Post by: Shaun on June 17, 2002, 01:05:38 AM
Unfortunalty that will not work in my network.  I have two connections to the internet, one goes out the DMZ but only has a 64kb international internet pipe.  The other uses a satallite download, ISDN upload giving 700kb+ download.  I want the majority of users to use the sat connection to the internet, for this I'm required to set their proxy.
Title: Re: Squid and Proxy Ports
Post by: Abe Loveless on June 25, 2002, 11:55:12 PM
Shaun,

Take a look at this link for changing your Proxy port from 3128 to something else.

http://www.lth5.k12.il.us/e-smith/tips.htm

Note: In step 2, you should probably make the change in the templates-custom directory, rather than the templates directory.  SO, step 2 should actually read:

"mkdir -p /etc/e-smith/templates-custom/etc/squid/squid.conf"
"cd /etc/e-smith/templates/etc/squid/squid.conf"

And continue from there.

I haven't tried changing the www port, but I suspect the process will be similar.  I'll outline what I would try:

1. Create a custom template for httpd.conf
("mkdir -p /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf")  
2. Search the template fragments of /etc/e-smith/templates/etc/httpd/conf/httpd.conf for the fragment that specifies something like "Listen 80"
3. Copy that fragment to your custom diretory and make any necessary changes.
4. restart httpd - ("service httpd restart")


Hope this helps,
Abe