Friday, December 10, 2010

Linux build green campus network

Internet filter 1, proxy server, Squid configuration and as above, first enable Squid Squid proxy server, make sure that work properly.

Modify/etc/squid/squid.conf profile. Http_port3128 # define Squid listens for HTTP client request port Cache_mem10MB # Squid can use memory ideal value, standing for the physical memory of the 1/3. Cache_swap_low95 Cache_swap_low90 Maximum_object_size4096KB # is greater than the value object will not be stored Cache_dirufs/var/spool/squid/Squid cache20016256 # specified to store the object of swap space size and directory structure to define Aclallsrc192.168.1.1/24 # all 192.168.1.1 segment http_acceaaallowall # 192.168.1.1 segment of customers can use Squid proxy to the Internet. Cache_effective_usersquid # use the users and user groups Cache_effective_groupsquid (the remaining parameters with default values!) root @ squid bin] # chmod777/var/spool/squid/cache (the cache directory is/var/spool/squid/noboay users have write permissions) root @ squid bin] # squid-z (establishment of Squid cache directory/var/spool/squid/cace) root @ squid bin] #/etc/rc.d/init.d/squidstart (start, stop, squid Squid with/etc/rc.d/init.d/squidstop) in client test to Windows, for example. Run IE, click on "Tools", then click "Internet Options", then click the "connection" tab, click "LAN settings" in the "LAN settings" window, in the "address" and enter the IP address of the Squid server 192.168.1.16, in the "port" and insert "3128", OK, and then quits. At this point, the client should be able to browse the Internet, the description of the Squid is running. Here are Web site filtering configuration. 2. install the downloaded from http://www.sleepycat.com BerkeleyDB2.x db-2.7.7.tar.gz and/usr/local/squidGuard/src/directory # cd/usr/local/squidGuard/src/# tarxvzfdb-2.7.7.tar.gz # cddb-2.7.7 # cdbuild_unix # ... # make # makeinstall/dist/configure (default installation to/usr/local/BerkeleyDB directory)

No comments:

Post a Comment