Configure squid proxy http and rsync

Source: Internet
Author: User
Tags squid proxy

Configuring squid proxy for http and rsync is too bad. In what time, the CPU is 4, and the memory is only 1.5 gb ddr. Fortunately, there is USB. It's no fun to install gentoo on a virtual machine. The CPU does not support VT-x and is 32-bit. ubuntu running 32-bit virtualbox is almost slow. Scan the IDC network one day and find an available server, Zhiqiang E7520, good guy, dual-channel, 16-core, 16 GB. It's just a waste of running several network devices and firewall management programs. Run the VM. Unfortunately, the network segment cannot access the Internet. So I thought of setting up a proxy on the local machine. The network topology is shown in the figure below: Because windows is installed on the office computer, you have to install squid for windows to download it: Access Acme fuse to install squid-2.7.stable8-bin.zip, which is generally configured in the c: \ squid directory: go to the etc directory and rename the three configuration files: cachemgr. conf. default => cachemgr. confmime. conf. default => mime. confsquid. conf. default => squid. conf modify squid. conf [plain] http_accescc allow 10_8_5 # acl 10_8_5 src 10.8.5.0/24 acl SSL_port port 873 # for rsync acl Safe_port 873 # for rsync visible_hostname localhost run before http_access deny all: [plain] squid-I # squid-I installation service, the service name is squid, you can also use-n to specify the name squid-z # create cache net start squid # Run the squid service and then modify/etc/make on the gentoo system of the virtualbox virtual machine on the server. conf, add [plain] HTTP_PROXY =" http://10.8.117.7:3128 "RSYNC_PROXY =" 10.8.117.7: 3128 "NOTE: RSYNC_PROXY =" 10.8.117.7: 3128 "cannot be written as RSYNC_PROXY =" rsync: // 10.8.117.7: 3128 ". I cannot do it here. Then you can freely enable eix-sync and emerge.

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.