4. Remove the following 676 line comment to allow localnet access
That is:
673 # Example rule allowing access from your local networks.674 # Adapt localnet in the ACL section to list your (internal) IP networks675 # from where browsing shoshould be allowed676 http_access allow localnet677 http_access allow localhost
5. Restart squid
Www.linuxidc.com @ linuxidc :~ $ Sudo/etc/init. d/squid restart
6. Then y
Linux and Cloud computing--the second phase of Linux Server SetupThe 11th chapter:Agent Proxy Server Erection-squid configuration Reverse ProxyReverse proxy settings[1]ConfigurationSquid.[Email protected] ~]# vim/etc/squid/squid.c
/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
Linux and Cloud computing--the second phase of Linux Server SetupThe 11th chapter:Agent Proxy Server-squid proxy and client configurationInstalling Squidinstallation Squid come to Configuring a
Ubuntu installs squid as the Proxy of the intranet. I have a machine named UbuntuLinux, which has a wireless network card and can be used on the Internet. I want to set it as a proxy server so that other machines in the intranet can use it as a proxy for Internet access. 1.
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 res
.aminglinux.com .lishiming.net
Http_access allow good_domain
Http_access deny! Good_domain
Check the syntax of the configuration file:
# Squid-kcheck
No problem restarting squid
# Service squid restart
Or reload the configuration file.
# Squid-kre
Iv. Reverse Proxy
Http_por
How to use squid to set up a proxy server in linux _ enough details on how to use squid to set up a proxy server in linux, which is around the world, but some details are unclear on the Internet, it has been a good job for a long
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 da
:
Service squid start
Note:Squid can also run automatically when the system is started by enabling Squid in ntsysv or setup (system service menu. InAfter any changes are made to the configuration file, the currently running Squid process must be restarted. You can use the following command to complete the process:
Service s
to the internal host again intact. Several machines with internal addresses make up the intranet, and the proxy server is to communicate the intranet and the Internet to solve the problem of intranet access to the Internet. This agent is irreversible, the host on the Internet can not access any one with internal address of the machine, so as to ensure the security of internal data.
One advantage of the ag
This session explains the common types of proxy serversLearn to build a traditional agent, transparent proxy serviceLearn to configure the access control policy for squid.First, squid service baseworking mechanism of the agent When a client requests a Web page through a proxy
:
# 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/
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
Squid is an application-level agent, in order to ensure that the client host and server host network connectivity, the need for client software to do the appropriate settings before use, such as Internet Explorer set proxy server address, port and so on.Web caching is necessary for a large, busy network, an article on
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.