Linux Squid proxy-common proxy

Source: Internet
Author: User
Tags squid proxy

1. Install Squid and Configuration

1. Install Squid

Yum-yinstallsquid *

2. squid configuration file

/Etc/squid. conf

3. squid operation

Servicesquidstart/stop/restart

4. Reload the configuration file

Squid-kreconfig

Ii. Common configurations of Squid

# Enable http_port 192.168.10.1: 3128 # Set the memory size cache_mem 64 MB # cache object size maximum_object_size 4096 KB # allow the proxy server to download the maximum limit reply_body_max_size 10480000 allow all # process log access_log/var/log/squid/access. log # prompt host information visible_hostname 192.168.10.1 # cache setting 100 is the size, 16 is the first-level directory, and 256 is the second-level directory cache_dir ufs/var/spool/squid 100 16 256

3. In addition to the above configurations, the squid firewall configuration must be configured

# Add acl Access Control List acl innet src 192.168.10.0/24acl all src 0.0.0.0/0.0.0.0 # configure the list permission http_access allow innethttp_access deny all

Iv. squid log

Cache. log cache logs

Squid. out Error Log

Store. log storage log

This article is from the "phper" blog, please be sure to keep this source http://janephp.blog.51cto.com/4439680/1304056

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.