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

Post new topic   Reply to topic

View previous topic View next topic Go down

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

Post  chantroitinhoc on Fri Sep 30, 2011 12: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
Admin

Posts: 126
Join date: 2008-01-16

View user profile http://chantroitinhoc.niceboard.net

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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