Set squid Proxy Server in linux

Source: Internet
Author: User
Tags squid proxy

Virtual Machine linux can be connected to the public network, and the Intranet ip address is 192.168.56.78
Modify/etc/squid. conf as follows:
Http_port 192.168.56.78: 8080
Cache_mgr qwerty@gmail.com
Cache_dir ufs/var/spool/squid 100 16 256
Cache_mem 10 MB
Cache_swap_low 90
Cache_swap_high 95
Cache_access_log/var/squid/access. log
Cache_log/var/squid/cache. log
Cache_store_log/var/squid/store. log
Visible_hostname 192.168.56.78
Client_netmask 255.255.255.0
Acl advance src 192.168.56.2-192.168.56.254
Http_access allow advance

Run the configuration file verification to check for syntax errors.

Squid-k parse

Start proxy service
Chkconfig squid on
Service squid start


The Internet access mode of Virtual Machine xp is Host only, and the ip address is 192.168.56.23. It is in the same LAN as linux 192.168.56.78.
Select the tool, Internet option, connection, and LAN Settings of the IE browser, and set the Proxy Server ip address to 192.168.56.78 and port 8080.
After testing, IE can access the Internet. In linux, execute service squid stop. IE cannot access the Internet, and then execute service squid start. IE can access the Internet again.
This indicates that the linux proxy server is successfully set.

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.