Obtain the real IP address of the client under multi-level reverse proxy [Squid]
In many applications, you may need to record the real IP address of the user. In this case, you need to obtain the real IP address of the user. In JSP, you can obtain the IP address of the client:Request. getRemoteAddr ()In most cases, this method is effective. However, the real IP address of the client cannot be obtained throu
The speed of using this Intranet proxy to access the website is high. In addition, the first CD of the Red Hat has a direct RPM package. It gets everything done for you. You just need to change the default deny all links. /Etc/squid. conf. There is an ACL access control list and you can modify it. (I suspect many vrouters in the world have used it for reference.Code). Well, it's very powerful.
The speed of
IsSmall and medium-sized enterprises customize a set of open source software solutionsStarted to build a website.
1. Install squid
$ Sudo apt-get install squid-y
Note: After installation, you can start/etc/init. d/squid3 start, but the default status is unavailable.
2. Configuration
$/Etc/squid. conf
Configure Port
Http_port 3128
Note: We recommend that you
Problem:The following error occurred while using the proxy to access the Web site:========================================The requested URL could not is retrievedWhile trying to retrieve the Url:http://linkhelp.clients.google.com/tbproxy/lh/fixurl?The following error was encountered:Unable to determine IP addresses from host name for linkhelp.clients.google.comThe DNSServer returned:TimeoutThis means:The cache
How do I set up the squid Proxy Server for two NICs? -- Linux Enterprise Application-Linux server application information. For details, refer to the following section. System Environment: dell 755 Desktop
Ubuntu9.04
Nic 1: built-in (Intranet)
Nic 2: tp-link 8139 (Internet)
Network Environment: Internet (ip address 192.168.2.12
Mask 255.255.255.0
Gateway 192.168.2.254
Dns 202.99.96.68) the local machi
BKJIA exclusive Article] recently, a customer helped a friend pick up a small project. The customer rented several servers for their U.S. machines and then wanted to use proxy servers for Internet access, for customers in China. The specific requirements are as follows:
1. The customer's server has multiple egress IP addresses
2. The customer wants to use the proxy server for Internet access through authe
Tags: des HTTP Io OS ar use for SP Div
Test performed under a virtual machine.
VM 1: (dual Nic)
The Intranet IP address of eth0 is 192.168.0.100/24.
Eth1 configure an Internet virtual IP address 200.168.0.100/24
VM 2:
IP Address: 200.168.0.101/24 (for test, it is in the same network segment as the above IP address)
PC:
192.168.0.110
1. Install squid
Install with yum
Yum install squid *-y
Modify configuratio
illustration:
Web server Acceleration (reverse proxy) is designed to provide accelerated functionality for Web servers. It acts as a proxy cache, but not for browser users, but for one or more specific Web servers (which is also the origin of the reverse proxy name). Implement a reverse
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
)Working principle:When an external request comes in, the settings cache is resolved according to the configuration file. In this way, the server request can be forwarded to the internal address we specify.In dealing with multiple virtual host steering: Mod_proxy is simpler than squid: you can turn different services to different ports on multiple IP backgrounds.And squ
In fact, I do not want to write this title, my intention is to cache the Yupoo API query data, this process found a reference method (Caching Google earth with Squid). Oh, so I also come back to the title party.
This reference has been widely circulated, Digg has been mentioned, I do not know where the original source is.
But.... You follow its instructions to set it and it does not work correctly!!
Anyw
Squid + iptables for transparent proxy errors-Linux general technology-Linux technology and application information, the following is a detailed description. Environment: linux fedora 8 (linux installed on VMware Server)
Now I have created a proxy server on fedora 8. The Ip address is 192.168.6.244/24.
The following problems occur:
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
In many applications, you may need to record the real IP address of the user. In this case, you need to obtain the real IP address of the user. In JSP, you can obtain the IP address of the client by: request. getRemoteAddr (), which is effective in most cases. However, the real IP address of the client cannot be obtained through reverse proxy software such as Apache and Squid.
During this time, the IP addre
Configuring the Reverse ProxyOpen configuration fileVim/etc/squid/squid.confModify3128 Accel Vhost VportAdd a section below it115.239. 210.27 the 0 originserver name=acache_peer_domain a www.qq.comcache_peer 114.80.143.1580 Originserver name=bcache_peer_domain b www.163.comSee if the configuration file is wrongSquid-kchReloadSquid-kreBrowser viewTurn the forward agent off.Tools-internet Options-Connections-LAN Settings-switch off use a
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.