SHIFT

--- Sjoerd Hooft's InFormation Technology ---

User Tools

Site Tools


Sidebar

Recently Changed Pages:

View All Pages


View All Tags


LinkedIn




WIKI Disclaimer: As with most other things on the Internet, the content on this wiki is not supported. It was contributed by me and is published “as is”. It has worked for me, and might work for you.
Also note that any view or statement expressed anywhere on this site are strictly mine and not the opinions or views of my employer.


Pages with comments

View All Comments

squid

Squid

This is the article on installing and configuring squid on SLES11. The SLES 11 server is installed like this. Squid is in the support channel for SLES 11, so you'll also need to add the update repository to the server. See SLES Installation Update Server 11 on how to do that. The end situation will be two networks (private and public), with squid in the middle and protected by the firewall for the public network.

Firewall

Yast → 'Security and Users' → 'Firewall'.

Config:

  • Start automatically on boot
  • Set eth0 as Internal zone
  • Set eth1 as Demilitarized zone

Default Allowed services for internal zone are fine.

Installing Squid

Go to yast → 'Software' → 'Software Management'. Search for squid, and select the appropriate version in the list with search results. That is currently 2.7.STABLE5-2.4.1. Click 'Accept'.

Configure Squid

Can be done with yast → 'Network Services' → Squid.

  • Service start when booting
  • Squid HTTP port: 3128
  • Cache setting default
  • Cache directory default (/var/cache/squid)
  • Access Control default
  • Logging, Timeouts and Miscellaneous all default

Extra Config

There is an extra configuration option which is a nice to have for troubleshooting and log handling etc. Configure the visible_hostname for this:

#  TAG: visible_hostname
#       If you want to present a special hostname in error messages, etc,
#       define this.  Otherwise, the return value of gethostname()
#       will be used. If you have multiple caches in a cluster and
#       get errors about IP-forwarding you must set them to have individual
#       names with this setting.
#
#Default:
# none
visib
le_hostname proxy.getshifting.com

Proxy.pac

To make proxy.pac work create a file in the documentroot of apache. So we need apache:

Go to yast → 'Software' → 'Software Management'. Search for apache, and select the appropriate version in the list with search results. That is currently 2.2.10-2.24.5. Click 'Accept', as well as for the dependencies.

For further configuration check here.

Apache Auto Start

Yast → system → runlevel

Change the runlevel for Apache to automatic.

You could leave a comment if you were logged in.
squid.txt · Last modified: 2021/09/24 00:25 (external edit)