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"