Use squid as Agent to surf the internet

Source: Internet
Author: User
Tags server memory squid proxy

Zhou Haihan/Wen 2009.2.9 lantern Festival

Because of moving the office, network management to HTTPS,MSN,QQ and other ports all banned, leaving only 80 ports can be internet. Other services are required, and applications are not necessarily approved. Although you can use MSN in Meebo.com Web, it is not convenient. This has brought trouble to the work.

Considering our machine room can be directly connected to the extranet, so we used Squid configuration agent, successfully bypassed the office network Gateway, so that msn,qq,gmail services can be used.

Squid Proxy Server General Unix,linux are brought. I'm using squid with Redhat AS4.

Open/etc/squid/squid.conf

Configuration

$vi/etc/squid/squid.conf

#http_port, is the agent's port, if no other HTTP service consumes 80 ports or 8080, you can configure these two ports, better remember. I'm with 8086. The default port is 3128

Http_port 8086

#设置cache memory size is 1G, my server memory is 4G.

CACHE_MEM 1000 MB

#设置cache_dir address, the first numeric parameter cannot be smaller than the size of the CACHE_MEM setting, or it will warn "WARNING Cache_mem is larger than total disk cache space!", so set to 1000. 16,256 represents the first-and second-level directories. Set the cache directory to take effect with squid-z.

Cache_dir Ufs/var/spool/squid 1000 16 256

#设置允许所有人访问, the default is to prohibit anyone from using the proxy. Error: "The requested URL could is retrieved while trying to retrieve the URL: ..."

Http_access Allow all

#设置 Visible_hostname, otherwise it will complain: "Fatal:could not determine fully qualified hostname. "Please set ' visible_hostname '

Visible_hostname Zhhproxy

#其他的用缺省值, save.

$squid-Z

Creating Swap Directories

$squid-NCD1

Run in the foreground, easy to debug. The debugging is done directly to execute squid to run with the wizard process.

See print ready to serve requests. It's ready.

In the IE7 tool->internet option to connect the page, click the "LAN Settings" button, select "Use Proxy server for LAN", configure address for running Squid IP, port for just configured 8086, OK.

Enter http://news.sohu.com test OK.

Other browsers are similar to configuration.

Live Messenger 9 can automatically use IE's proxy configuration, IE can access the Internet, MSN can also be.

QQ 2008 can be in the system configuration of the proxy page, select the "Use browser network Configuration", you can log on normally.

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.