การ Config Squid Proxy
-
Upload
kowit-meboon -
Category
Documents
-
view
3.047 -
download
4
Transcript of การ Config Squid Proxy
การ Config Squid Proxy
ขั้��นตอนการ config บน Fedora Core
และ Red Hat
1.ต�ดต��ง squid
2.config file /etc/squid/squid.conf #http_port 3128
แก�เป็�น http_port 3128
3128 เป็�น port ที่��ต�องการ อาจเป็ล��ยน เป็�น port อะไรก�ได� #icp_port 3130
แก�เป็�น icp_port 3130 #cache_mem 8 MB
แก�เป็�น cache_mem 256 MB # RAM หาร 3
#cache_dir ufs /var/spool/squid 100 16 256
แก�เป็�น cache_dir ufs /var/spool/squid 1000 16 256 #cache_access_log /var/log/squid/access.log
แก�เป็�น cache_access_log /var/log/squid/access.log#cache_access_log /var/log/squid/cache.log
แก�เป็�น cache_access_log /var/log/squid/cache.log #cache_access_log /var/log/squid/store.log
แก�เป็�น cache_access_log /var/log/squid/store.log
เพิ่��ม บรรที่�ดน��ต อที่�าย acl ที่�� default มาก�บ โป็รแกรมacl my_networks src
192.168.0.0/24 #network ขั้องเรา เพิ่��ม บรรที่�ดน��ไว้�ก อนหน�า http_access
ที่�� default มาก�บ โป็รแกรม http_access allow my_networks
http_access deny all #บรรที่�ดน��แหละ ที่��ต�องแก� แก�เเป็�น http_access allow all
จากน��นที่#าการ save file
3.สร�างไฟล& 3 ไฟล& คื(อ access.log ,
cache.log , store.log
เขั้�าไป็ที่�� directory /var/log/squid/ ใช้�คื#าส��ง #touch access.log #touch store.log #touch cache.log
เป็ล��ยนส�ที่ธิ์�,และเจ�าขั้อง #chmod 755 /var/log/squid/* #chown squid.squid /var/log/squid/*
4.สร�าง cache #squid -z
5.ก#าหนดให� squid start ที่-กคืร��งเม(�อเป็.ดเคืร(�อง #squid chkconfig on
6.ส��งให� squid ที่#างาน # service squid restart
การ Config Squid Proxy
ขั้��นตอนการ config บน Fedora Core
และ Red Hat
1.ต�ดต��ง squid
2.config file /etc/squid/squid.conf #http_port 3128
แก�เป็�น http_port 3128
3128 เป็�น port ที่��ต�องการ อาจเป็ล��ยน เป็�น port อะไรก�ได� #icp_port 3130
แก�เป็�น icp_port 3130 #cache_mem 8 MB
แก�เป็�น cache_mem 256 MB # RAM หาร 3
#cache_dir ufs /var/spool/squid 100 16 256
แก�เป็�น cache_dir ufs /var/spool/squid 1000 16 256
#cache_access_log /var/log/squid/access.log
แก�เป็�น cache_access_log /var/log/squid/access.log#cache_access_log /var/log/squid/cache.log
แก�เป็�น cache_access_log /var/log/squid/cache.log #cache_access_log /var/log/squid/store.log
แก�เป็�น cache_access_log /var/log/squid/store.log
เพิ่��ม บรรที่�ดน��ต อที่�าย acl ที่�� default มาก�บ โป็รแกรมacl my_networks src
192.168.0.0/24 #network ขั้องเรา เพิ่��ม บรรที่�ดน��ไว้�ก อนหน�า http_access
ที่�� default มาก�บ โป็รแกรม http_access allow my_networks
http_access deny all #บรรที่�ดน��แหละ ที่��ต�องแก� แก�เเป็�น http_access allow all
จากน��นที่#าการ save file
3.สร�างไฟล& 3 ไฟล& คื(อ access.log ,
cache.log , store.log
เขั้�าไป็ที่�� directory /var/log/squid/ ใช้�คื#าส��ง #touch access.log #touch store.log #touch cache.log
เป็ล��ยนส�ที่ธิ์�,และเจ�าขั้อง #chmod 755 /var/log/squid/* #chown squid.squid /var/log/squid/*
4.สร�าง cache #squid -z
5.ก#าหนดให� squid start ที่-กคืร��งเม(�อเป็.ดเคืร(�อง #squid chkconfig on
6.ส��งให� squid ที่#างาน # service squid restart