Case:Web server: Domain name www.abc.com ip:192.168.21.129 Telecom Single line accessAccess users: Telecommunications broadband users, mobile broadband usersProblems: Telecommunications users open www.abc.com Normal, mobile users open www.abc.com very slow, or even openSolution: Place a CDN proxy server in the mobile computer room, through the intelligent DNS resolution, let the telecommunication user directly access the Web server, let the mobile use
1. Principle of Experiment:The client's request goes to the proxy server first, and the proxy server determines whether to request the Web server based on its own ACL. If the Web server is requested, the cache is established on its own hard disk, and if there is the next same request, it will be returned directly from its own cache.2. Specific operation:/etc/squid
, so that the speed of access slows down, but the second visitors and later visitors need the information, proxy do not want to remote server request, The data in the cache is sent directly to the subsequent requester, which reduces the traffic to the remote server, and the transmission is faster because the proxy is local.
Second, the use of squid in the constr
Case:
Web server: domain name www.abc.com IP: 192.168.21.129 China Telecom single line access
Users: Telecom broadband users and mobile broadband users
Problem: telecom users can access www.abc.com normally. Mobile users can access www.abc.com very slowly or even not.
Solution: place a CDN proxy server in the mobile data center. through intelligent DNS resolution, telecom users can directly access the Web server and mobile users can access the CDN
Linux and Cloud computing--the second phase of Linux Server SetupThe 11th chapter:Agent Proxy Server Erection-SQUID for basic certificationBasic CertificationConfiguration Basic Certification and Limitations users must Use authentication . [1]installationPackagetocontains htpasswd.[Email protected] ~]# yum-y install Ht
Proxy server, there is no need to introduce, simply say the installation process. At the beginning of the hosting24 above, installation, how the installation has not been successful, replaced by Linode, half an hour on the deal, Guess hosting24 the agent made restrictions.
One, server description
A foreign VPS (recommended Linode), service-side squid
A company's internal PC, can access the external netwo
Install the squid Proxy Server in linux
1. Experiment principle:
Client requests are first sent to the proxy server. the proxy server determines whether to request the WEB server based on its own acl. If you request a WEB server, a cache will be created on your own hard di
Installation: Yum install-y squidConfiguration file: vim/etc/squid/squid.confSpecify disk directory: Cache_dir ufs/var/spool/squid 100 16 256Cache_dir is used to specify the disk directory and size, the three values following the directory are represented from left to right:Disk directory maximum Capacity unit is m, the number of first-level subdirectories, the number of two levels of subdirectories.Enable
A simple record of squid transparent proxy server configuration
Environment: VirtualBox + CentOS 6.0 + squid-3.1.4-1.el6.i686
0, check squid is installed by default, no installation of the first installation
The code is as follows:
[Root@slyar ~]# Rpm-qa Squid
isolate data from adsl and reduce mutual interference. each ad is independent of each other. if a sub-Nic is used, the mac address cannot be modified, even if the modification is successful, all the sub-nics and the mac of the primary Eni are the same and cannot meet the requirements of multiple adsl connections at the same time. Therefore, vlan virtual interfaces must be used.
3. the Nic connected to the optical fiber uses a sub-Nic to Mount multiple public ip addresses
4. the
First, the basic principle
1, the public network in the client
Client
200.168.10.2
2. Squid Reverse proxy Server
Eth0
200.168.10.2
Eth1
192.168.10.1
3. Internal Web server
Web
192.168.10.2
Ii. Modification of squid.conf documents
#配置虚拟80端口 to prevent direct loss of data packets
http_port 200.168.10.1:80 vhost
#重定向的web服务器 0 means that the upper-level cache is not used
Cache_peer 192.168.10.2 Pa
Linode VPS, using squid to build a proxy, after loading, found that Facebook can be on, YouTube can also, but Google prompted errors, as follows
We ' re sorry ... but your computer or network may is sending automated. To protect we are users, we can ' t process your request right now
Looking for a long time on the internet, finally found a solution.
Method One: Edit/etc/sysctl.conf, add the following
Ne
2. Configure Iptables to forward the client's Web request to the Squid proxy port.
Third, the configuration transparent proxy
1, modify the squid.conf configuration file
Http_port 192.168.10.1:3128 Transparent
2. Reload the configuration file
Squid-k Reconfig
3, add iptables rules, the internal HTTP request wit
1440 90% 129600 reload-into-IMSRefresh_pattern-I. jpg 1440 90% 129600 reload-into-IMSRefresh_pattern-I. PNG 1440 90% 129600 reload-into-IMSRefresh_pattern-I. BMP 1440 90% 129600 reload-into-IMSRefresh_pattern-I. js 1440 90% 129600 reload-into-IMS
Note:
1. cache_mem 32 MB
Note: cache_mem is not the memory size that squid can use, but the physical memory size of squid user hot object, so this value can be sm
Article Title: detailed explanation of the use of the proxy server Squid. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
As the most popular operating system,
The domain name of this instance is Wenjin.cache. ibm.com.cn , through DNS the polling technology, the client's request is distributed to one of the Squid reverse proxy server processing, if the squid cache the user's request resource, the requested resource is returned directly to the user, otherwise this Squid will n
Server Pages return "cache-control: Private." Therefore, no Active Server Pages will be cached on a reverse proxy server.
Grouping squid as reverse proxy (HTTP accelerator)
To set up squid as an httpd accelerator, you simply configure the squid. CONF file. usually it is fou
-cache
back to the top of the page
Use Squid reverse proxy to accelerate website instance
This instance's domain name is wenjin.cache.ibm.com.cn, through the DNS polling technology, distributes the client request to one Squid rev
Turn from: Http://www.ibm.com/developerworks/cn/linux/l-cn-squid/
On the basis of introducing the working principle of squid Reverse proxy, this paper points out that reverse proxy technology has a good use in improving Web site access speed and enhancing usability and sec
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.