From the Blogjava an article, wrote a good, original address:
Http://www.blogjava.net/Alpha/archive/2006/07/12/57764.html?Pending=true#Post
In many applications may have to the user's real IP records down, at this point to get the user's real IP address, in the JSP, obtain the client's IP address method is:request.getremoteaddr (), this method is effective in most cases. But in the adoption of APACHE,SQUID and other reverse
The reverse proxy configuration process is actually not much different from the forward proxy, the only difference is that the configuration fileA place to change. Need to put:Http_port 3128SwitchHttp_port Accel Vhost VportThen add the backend real server information you want to proxy:Cache_peer 180.97.33.108 Parent 0 originserver Name=aCache_peer 101.226.103.106 Parent 0 originserver Name=bCache_peer_domai
[Question] How does SQUID work as a second-level proxy in UBUNTU? -- Linux Enterprise Application-Linux server application information. For details, refer to the following section. Description:
The upper-level proxy server is implemented by ISA2004 of M $ and the IP address is 10.10.2.12. The second-level proxy server
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
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
What if you want to go to Google, or other sites in the celestial world that you can't access? Premise to have a, not in the big Celestial LAN VPS
Method One, take a VPN, please refer to: VPN installation configuration detailed
Method Two, a proxy server, the following will be a detailed say
1, install Squid
# Yum Install Squid
2, add authenticated user test
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
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
of the PCI Nic is 10 M. Therefore, the PCMCIA Nic is connected to the Internet, DHCP is set, public IP is obtained, and the Intel Nic is set to static IP: 192.168.2.1, used to connect to the subnet, you can use an Ethernet switch to expand the number of connections, but it is not required for me now, because I only need to connect to my Dell D620.
Step 1: InstallSudo apt-get install squid
Step 2: Configure squid
Use Squid in Ubuntu to set a machine as a proxy serverFirst install squidSudo apt-get install squidThen let's take a look at the squid installation.Whereis squidModify the squid configuration fileSudo gedit/etc/squid. confThen, locate# And finally deny all other access to th
Release date: 2012-04-16Updated on: 2012-04-17
Affected Systems:Squid Web Proxy Cache 3.1.19Description:--------------------------------------------------------------------------------Bugtraq id: 53024
Squid is an efficient Web Cache and proxy program. It was initially developed for the Unix platform and has been transplanted to Linux and most Unix systems, the l
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 Httpd-tools[2]ConfigurationSquidcome toset up basic Auth.[Email protected] ~]# vi/etc/
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
-lzo
Persist-key
Persist-tun
Status openvpn-status.log
Verb 3
Then install squid. Here, you only need to use the simple forward proxy function of squid, so yum is installed.
Yum install squid-y
Edit the squid configuration file and edit the following two lines
Http_port 10.8
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
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
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.