SHIFT

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

User Tools

Site Tools


Sidebar

Sponsor:

Would you like to sponsor this site?
Or buy me a beer?:


Recently Changed Pages:

View All Pages
View All Q Pages


View All Tags


Sign up for Q to post comments.





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.


Terms And Conditions for Q users


Pages with comments

PageDateDiscussionTags
2019/05/01 14:08 2 Comments
2019/03/15 16:02 1 Comment
2019/03/15 16:02 1 Comment
2019/03/15 16:02 3 Comments
2017/04/20 15:28 1 Comment
2017/04/20 15:23 1 Comment
2017/04/19 14:44 1 Comment
2017/04/17 20:10 1 Comment
2017/04/17 20:07 1 Comment
2017/04/17 19:58 1 Comment
2017/04/17 19:52 1 Comment

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: 2013/03/26 21:08 by sjoerd