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 disk. If the same request is sent next time, it
Problem:When using a proxy to access a website, the following error occurs:==========================================================The requested URL cocould not be retrieved
While trying to retrieve the URL: http://linkhelp.clients.google.com/tbproxy/lh/fixurl?
The following error was encountered:
Unable to determine IP address from host name for linkhelp.clients.google.com
The dnsserver returned:
Timeout
This means that:
The cache was not ab
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
I have written a blog: header_access to hide the header information. In order to hide the header information, it is a positive environment test to access webpages that do not allow proxy access, today, I read a blog written by Fukai and found that the security of the reverse proxy can be enhanced. I will record it first ~
Websites using squid# Curl-I www.php-oa.
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
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:
Configured as follows
The code is as follows
Copy Code
Http_port 142.4.106.1:3128Http_port 142.4.106.xx:3128Http_port 142.4.106.xx:3128Auth_param Basic PROGRAM/USER/LIB/SQUID/LIBEXEC/NCSA_AUTH/ETC/SQUID/PASSWDAuth_param Basic Children 5Auth_param Basic Realm Squid proxy-caching Web serverAu
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
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
Article Title: FreeBsd5.4 + pf + squid reverse proxy practical notes. 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.
1. hardware configurationHp netserver 800 P Ⅲ 1000 memory 256 M Inter82559 two NICs2. Partition InformationFilesystem Size Used Avail Capacity Mounted on
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
NobodyCache_effective_group NobodyCoredump_dir/www/sqd/sqd/sqd/var/cacheThird, Parameter modification:The owner of the A,logs,cache file should readNoboby.nobobyb, create a new passwd file in the/www/sqd/sqd/sqd/libexec/directory and add a user account and password to itHtpasswd-c/www/sqd/sqd/sqd/libexec/passwd liangi289Four, before the start of the preparatory work:Generate Cache Directory/www/sqd/sqd/sqd/etc/squid-zThe startup process is displayed
A few days ago with the Nginx proxy HTTPS, the application of redirect HTTPS to HTTP, resulting in the Web site can not access the problem, find a half-day on the internet, finally found a solution.
Although I resolved, I believe there are other friends have encountered this problem, so reprint share:
Cause Analysis:
Browser to Nginx is
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 wasn't able to resolve the hostname prese
Label: style HTTP color ar strong SP file on BS Environment Introduction VM 1: IP Eth0192.168.0.100/24 Eth1: 200.168.0.100/24 VM 2 (simulated Internet) 200.168.0.109/24 (run Web Server) PC () IP 192.168.0.111/24 gateway 192.168.0.100 Implementation of transparent proxy Basic implementation 1. ModifySquid. conf Http_port 192.168.0.100: 3128Transparent 2. Reload the configuration file 3. AddIptablesThe rule sets the internalHTTPRequest re
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.