RH 7.3 SQUID PROXY ㄉ設法?【求助】 - PCZONE 討論區

返回   PCZONE 討論區 > ▲ -- 電 腦 軟 體 討 論 區 > -- FreeBSD & Linux 討 論 版


PCZONE 討論區



通知

-- FreeBSD & Linux 討 論 版 因為本站採用 FreeBSD 作業系統,所以自己本身也多學了一些技巧,希望各位在這裡互相討論 Unix 作業系統及程式等相關問題。

會員
RH 7.2 SQUID PROXY ㄉ設法?【求助】
小弟我架ㄌ一個Squid proxy 想要限制client端只能上我所設定ㄉ網站 而其他網站皆不行去 要在squiD.conf檔中怎ㄇ設定ㄋ?

回覆
進階會員

可以參考一下這段的說明...


# ACCESS CONTROLS
# -----------------------------------------------------------------------------

# TAG: acl
# Defining an Access List
#
# acl aclname acltype string1 ...
# acl aclname acltype "file" ...
#
# when using "file", the file should contain one item per line
#
# acltype is one of src dst srcdomain dstdomain url_pattern
# urlpath_pattern time port proto method browser user
#
# By default, regular expressions are CASE-SENSITIVE. To make
# them case-insensitive, use the -i option.
#
# acl aclname src ip-address/netmask ... (clients IP address)
# acl aclname src addr1-addr2/netmask ... (range of addresses)
# acl aclname dst ip-address/netmask ... (URL host's IP address)
# acl aclname myip ip-address/netmask ... (local socket IP address)
#
# acl aclname srcdomain .foo.com ... # reverse lookup, client IP
# acl aclname dstdomain .foo.com ... # Destination server from URL
# acl aclname srcdom_regex [-i] xxx ... # regex matching client name
# acl aclname dstdom_regex [-i] xxx ... # regex matching server
# # For dstdomain and dstdom_regex a reverse lookup is tried if a IP
# # based URL is used. The name "none" is used if the reverse lookup
# # fails
# acl aclname url_regex [-i] ^http:// ... # regex matching on whole URL
# acl aclname urlpath_regex [-i] \.gif$ ... # regex matching on URL path

回覆


類似的主題
主題 主題作者 討論版 回覆 最後發表
Proxy List: Free Anonymous Proxy Server - Hide IP Address FYI -- 優 質 網 站 分 享 0 2006-11-04 12:44 PM
Sony Walkman RH-1 Black a73126 -- 閒 話 家 常 灌 水 版 12 2006-06-15 09:05 PM
【求助】請問 Becky! 可以設定 Proxy 或 proxy 的plug-in 嗎? todoelie -- 網 路 軟 體 討 論 一 版 (Browser,Email 2 2004-06-19 12:13 AM
RH Linux 7.3字型設定 lalahaha -- FreeBSD & Linux 討 論 版 1 2002-07-09 06:16 PM
RH 7.3安裝後無法上網 C-- -- FreeBSD & Linux 討 論 版 3 2002-06-18 11:14 PM






 XML   RSS 2.0   RSS 
本站使用 vBulletin 合法版權程式
站務信箱 : [email protected]

本論壇所有文章僅代表留言者個人意見,並不代表本站之立場,討論區以「即時留言」方式運作,故無法完全監察所有即時留言,若您發現文章可能有異議,請 email :[email protected] 處理。