FreeBSD 6.2release+squid-2.6 set up the Internet level two proxy server

Source: Internet
Author: User

Two-level Internet proxy Server, with very little, but sometimes you want to control a small part of the LAN network of machines, on the internet. Two days ago set up a two-level agent, write a note.

The following figure, the first and two proxy servers are used freebsd6.2release+squid2.6, primary agent direct and extranet line connection, the user by setting the corresponding network segment IP and proxy server (IE settings) for the Internet. First-level proxy server after the exchange of the user directly set 21 IP plus on IE set 192.168.21.254 and port 3128 for the Internet, the second level of proxy users will be set 11 IP plus 192.168.11.254 and port 3128 for the Internet.

============================================

Erection of 一、一级 Proxy Server

Description

Operating system: Freebsd6.2release

Agent Software: Squid2.6stable16

External network card: EM0-> 218.90.159.xxx (default gateway is provided by ISP)

Internal network card: EM1-> 192.168.21.254

1, installation and optimization of FreeBSD

(2) Configure rc.conf

Hostname= "One.www.com"

Defaultrouter= "218.90.159.xxx"

ifconfig_em0= "inet 218.90.159.xxx netmask 255.255.255.xxx"//Extranet IP

ifconfig_em1= "inet 192.168.21.254 netmask 255.255.255.0″//Intranet IP

Sendmail_enable= "NONE"

Inetd_enable= "YES"

Linux_enable= "YES"

Sshd_enable= "YES"

Usbd_enable= "YES"

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.