DIỄN ĐÀN NÂNG TẦM TRI THỨC
Would you like to react to this message? Create an account in a few clicks or log in to continue.

CẤU HÌNH PROXY SERVER TRÊN CENTOS 6.0

Go down

CẤU HÌNH PROXY SERVER TRÊN CENTOS 6.0 Empty CẤU HÌNH PROXY SERVER TRÊN CENTOS 6.0

Post  chantroitinhoc Fri Sep 30, 2011 7:22 am

1. Cài đặt Proxy Server:

[root@proxy ~]# yum -y install squid


1. Cấu hình Proxy Server:

[root@proxy ~]# vi /etc/squid/squid.conf

Code:

acl CONNECT method CONNECT

# Dòng 31: Định nghĩa một acl
acl lan src 192.168.100.0/24

http_access allow localhost

# Dòng 59: Thêm dòng lệnh cho phép các traffice từ ACL đã định nghĩa ở trên
http_access allow lan

# Dòng 64: Thay đổi cho proxy lắng nghe port 8080
http_port 8080

# Thêm vào cuối tập tin
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

# Chỉ định host name của Proxy Server
visible_hostname proxy.ispace.com

# Giấu địa chỉ IP của mạng nội bộ
forwarded_for off

3. Khởi động dịch vụ:

[root@proxy ~]# /etc/rc.d/init.d/squid start
[root@proxy ~]# chkconfig squid on

chantroitinhoc
chantroitinhoc
Admin

Posts : 149
Join date : 2008-01-16

http://chantroitinhoc.niceboard.net

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum