URL filter on IPCop
posted on 29 Feb 2008 14:39 by tonhor in LinuxURL filter on IPCop ใช้ Add-on 2 ตัว
ติดตั้งโดย ./install เหมือนเดิม หรือ link: การติดตั้ง Advanced Proxy กับ URL filter
เมื่อติดตั้งเสร็จ ไปที่ web-gui
- Services -> Advanced Proxy -> Enable URL filter
- Services -> URL filter
>> Blocked domains
>> Blocked URLs
- cmd -> nslookup -> แล้วพิมพ์ domain ของเวป
>> Custom expression list ตัวอย่างเช่น
- \.(.*thai*.*|.*online*.*)$
จะ block web ที่มีคำว่า thai หรือ online อยู่
ดูภาพรายละเอียดเพิ่มเติมได้จาก
http://www.linuxthai.org/forum/index.php?topic=566.0
Note1 ! ถ้าไม่อยากให้เครื่อง client ต้องไป set ip ของ proxy
- Services -> Advanced Proxy -> Enable Transparent
หรือ text mode :
- vi /etc/squid/squid.conf
- ตรง http_port 192.168.2.1:8080 transparent <-ใส่เพิ่มเข้าไป
Note2 ! หลังจากที่ Services -> Advanced Proxy -> Enable URL filter
ที่2บรรทัดสุดท้าย squid.conf จะมีเพิ่มเข้ามา คือ
url_rewrite_program /usr/sbin/squidGuard
url_rewrite_children 5 # Number of filter processes: 5
ปล. Note2 ไร้สาระจังฟะ - -a
[Twitter] ดูสถิติด้วย TweetStats




