티스토리 뷰

EN/Debian 6

Debian 6 Proxy Server Install Squid

ServerWorld 2016.05.23 20:56

Debian 6 Proxy Server Install Squid


Install Squid

  Configure Proxy server and make web browzing fast. Install Squid for it. 


1. Install and configure Squid

root@lan:~# aptitude -y install squid3 


root@lan:~# vi /etc/squid3/squid.conf 


acl CONNECT method CONNECT

# line 667: define internal ACL

acl lan src 10.0.0.0/24


http_access allow localhost

# line 788: add ACL for internal

http_access allow lan


# line 1075: change

http_port 8080


# line 3295: add

request_header_access Referer deny all

request_header_access X-Forwarded-For deny all

request_header_access Via deny all

request_header_access Cache-Control deny all 


# line 3578: add (specify hostname)

visible_hostname lan.srv.world


# forwarded_for on

# line 5304: add (hide IP address)

forwarded_for off


root@lan:~# /etc/init.d/squid3 restart 

Restarting Squid HTTP Proxy 3.x: squid3 Waiting.....................done.

Creating Squid HTTP Proxy 3.x cache structure ... (warning).

2011/03/13 00:36:49| Creating Swap Directories

.

※ Next manual


저작자 표시 비영리 변경 금지
신고
댓글