CẤU HÌNH PROXY SERVER TRÊN CENTOS 6.0
Page 1 of 1
CẤU HÌNH PROXY SERVER TRÊN CENTOS 6.0
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
3. Khởi động dịch vụ:
[root@proxy ~]# /etc/rc.d/init.d/squid start
[root@proxy ~]# chkconfig squid on
[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
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|