As shown in the network configuration, Squid uses CentOS5.8 + squid, and the web server uses FreeBSD + nginx for testing. The local network uses VMnet1 for simulation, the public network uses VMnet2 for simulation, and the IP address is planned as shown in figure. First install the web server and select Vmnet2.pkg _ add -...
As shown in the network configuration, Squid
In Ubuntu, use Squid to set a server as a proxy server. first install squidsudoapt-getinstallsquid and then check that squid is installed there and whereissquid is used to modify the squid Configuration file sudogedit/etc/squid. conf and then go to # Andfinallydenyallother U
This section briefly introduces the configuration of the proxy server squid, which has previously recorded the reverse proxy configuration, but is more widely used in the production environment for proxy and forward transparent proxy, this is also the focus of the RHCE test
SSH solves this problem well. You only need one vps to configure. It is quite easy to set up.
Install webminWebmin is a free software for visual management of linux systems. We installed it to facilitate the management of squid proxy servers or linux systems. The detailed installation address is as follows:Install the Webmin Management System on CentOS
Install the squi
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
first of all, what is transparent proxy to introduce? transparent proxy means that the client does not need to know the existence of a proxy server, it changes your request fields (messages), and transmits the real IP, more for the NAT forwarding of the router. The principle of transparent proxy is this:1. Assume that
reason is that there may be more than one Squid service or Web site on a single server, and we assume that there is only one Squid service or Web site on a single server. Consider the following scenarios: Scenario 1: Single site agent, squid Service A (222.0.0.10, 172.16.0.10) provides reverse proxy services for Web s
:
# Vi src/mysql_auth.confMysqld_socket/tmp/mysql. sock#/Usr/ccs/bin/make#/Usr/ccs/bin/make installCreate a user database:# Cd scripts# Mysql-u root-p ******
Test MYSQL_AUTH
1. Add a test user# Mypasswd llzqq 123456Password record ADDED succesfully.
2. Verify the created user# Mysql_authLlzqq: 1234560 K
3. delete an existing user and use this command.# Mypasswd-d username
3. Add the MYSQL_AUTH authentication section in SQUID. CONF.
# Vi/etc/
/var/cache/squid 100 16 256coredump_dir/usr/local/squid/var/cache/squiddns_nameservers 114.114.114.114 #dnsrefresh_pattern ^ftp:1440 20% 10080refresh_pattern ^gopher:1440 0% 1440refresh_pattern-i (/cgi-bin/|\?) 0 0% 0refre Sh_pattern. 0 20% 4320Finally, attach the configuration details:#acl all src 0.0.0.0/0.0.0.0 and http_access the Allow all option defines an access control list. For deta
Http_access Deny CONNECT! Ssl_ports
# only allow cachemgr access from localhost
http_access allow localhost Manager
Http_access Deny Manager
# We strongly recommend the following is uncommented to protect innocent
# Web applications running on the proxy server
# One who can access services on ' localhost ' is ' a ' local user
#http_access Deny To_localhost
#
# INSERT YOUR OWN rule (S) ALLOW ACCESS from YOUR CLIENTS
#
# Example rule allowing acce
As shown in the network configuration, Squid uses CentOS5.8 + squid, and the web server uses FreeBSD + nginx for testing. The local network uses VMnet1 for simulation, the public network uses VMnet2 for simulation, and the IP address is planned as shown in figure. First install the web server. Select Vmnet2. pkg_add-r // install nginx ifconfig le0 200.98.1.1 netmask 255.255.255.0 up // configure the Network
by default, it buffers static pages based on the HTTP header tags returned from the Web server. There are four important HTTP header tags.Last-modified: Tell the Reverse proxy page what time is changed;Expries: Tell the Reverse proxy page what time it should be removed from the bufferCache-control: Tells the direction proxy page should be cached;Pragma: Used to
In Ubuntu, use Squid to set a server as a proxy server. First install squidsudoapt-getinstallsquid and then check that squid is installed there and whereissquid is used to modify the squid configuration file sudogedit/etc/squid. conf and then locate # Andfinallydenyallothera
basic children 5Auth_param basic credentialsttl 2 hoursAcl password proxy_auth REQUIREDHttp_access allow passwordAuthenticate_ip_ttl 2 hoursHttp_access deny all
Iv. Client settings
Fill in the IP address and port of the SQUID server in the proxy server settings of the browser:IP address 192.168.0.1: 3218
Enter the IP address,
Using squid as a directional proxy server can function like Nginx, and can store cached content in memory, Nginx cache content on a hard disk, and configure the same principle as nginx, squid himself works as a Web server, Direction proxy to the backend Web server to the user.
1. Install SquidTAR-ZXVF
/" directory. Www.2cto.com 1. Squid reverse proxy for a single backend WEB server if the WEB server and reverse proxy server are two separate machines (generally, the reverse proxy should have two NICs connected to the internal and external networks respectively ). Modify the following content to set the reverse
only need to connect to my Dell D620.
Step 1: Install
Sudo apt-get install squid
Step 2: Configure squid. conf
Sudo vi/etc/squid. conf
Add a row to set visible_hostname:
Visible_hostname XXXX # XXXX is the name you want
Set the allowed CIDR blocks:
Acl lan src 192.168.2.0/24
Http_access allow lan
The preceding two statements allow subnet
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
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.