亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
12下一頁
最近訪問板塊 發(fā)新帖
查看: 5546 | 回復: 14
打印 上一主題 下一主題

[proxy] squid 不能用mac認證 [復制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2015-01-13 21:40 |只看該作者 |倒序瀏覽

centos 6.3  安裝  yum安裝squid和http
沒有能實現(xiàn)mac 地址認證,哪里有問題?????????????????????????
#
# Recommended minimum configuration:
#
acl manager proto cache_object
acl localhost src 127.0.0.1/32 ::1
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1

# Example rule allowing access from your local networks.
# Adapt to list your (internal) IP networks from where browsing
# should be allowed

auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/squid_user.txt


#acl localnet src 10.0.0.0/8    # RFC1918 possible internal network
acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
acl localnet src 192.168.0.0/16        # RFC1918 possible internal network
acl localnet src fc00::/7       # RFC 4193 local private network range
acl localnet src fe80::/10      # RFC 4291 link-local (directly plugged) machines

acl usermac arp  8c:a9:82:b1:fd:14

acl SSL_ports port 443
acl Safe_ports port 80          # http
acl Safe_ports port 21          # ftp
acl Safe_ports port 443         # https
acl Safe_ports port 70          # gopher
acl Safe_ports port 210         # wais
acl Safe_ports port 1025-65535  # unregistered ports
acl Safe_ports port 280         # http-mgmt
acl Safe_ports port 488         # gss-http
acl Safe_ports port 591         # filemaker
acl Safe_ports port 777         # multiling http
acl CONNECT method CONNECT




#
# Recommended minimum Access Permission configuration:
#
# Only allow cachemgr access from localhost
http_access allow manager localhost
http_access deny manager

# Deny requests to certain unsafe ports
http_access deny !Safe_ports

# Deny CONNECT to other than secure SSL ports
http_access deny CONNECT !SSL_ports

# We strongly recommend the following be uncommented to protect innocent
# web applications running on the proxy server who think the only
# one who can access services on "localhost" is a local user
#http_access deny to_localhost



#
# INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
#

# Example rule allowing access from your local networks.
# Adapt localnet in the ACL section to list your (internal) IP networks
# from where browsing should be allowed

http_access allow usermac

http_access allow localnet
http_access allow localhost

# And finally deny all other access to this proxy
http_access deny all

# Squid normally listens to port 3128
http_port 3128

# We recommend you to use at least the following line.
hierarchy_stoplist cgi-bin ?

# Uncomment and adjust the following to add a disk cache directory.
#

cache_dir ufs /var/spool/squid 1024 16 256
cache_mem 1024 MB
cache_swap_low 90
cache_swap_high 95
minimum_object_size 0 KB
maximum_object_size 4096 KB

# Leave coredumps in the first cache dir
coredump_dir /var/spool/squid

# Add any of your own refresh_pattern entries above these.
refresh_pattern ^ftp:           1440    20%     10080
refresh_pattern ^gopher:        1440    0%      1440
refresh_pattern -i (/cgi-bin/|\?) 0     0%      0
refresh_pattern .               0       20%     4320

QQ截圖20150113213740.jpg (122.72 KB, 下載次數(shù): 93)

QQ截圖20150113213740.jpg

論壇徽章:
26
CU十二周年紀念徽章
日期:2013-10-24 15:41:34技術(shù)圖書徽章
日期:2014-07-11 16:27:52辰龍
日期:2014-09-04 13:40:43白羊座
日期:2014-09-09 12:51:55雙子座
日期:2014-09-26 11:00:042014年中國系統(tǒng)架構(gòu)師大會
日期:2014-10-14 15:59:00子鼠
日期:2014-10-23 16:48:23巨蟹座
日期:2014-10-27 08:21:10申猴
日期:2014-12-08 10:16:282015年辭舊歲徽章
日期:2015-03-03 16:54:15NBA常規(guī)賽紀念章
日期:2015-05-04 22:32:03IT運維版塊每日發(fā)帖之星
日期:2016-01-29 06:20:00
2 [報告]
發(fā)表于 2015-01-14 07:56 |只看該作者
要注意,acl是有順序的
你的mac是在什么網(wǎng)段?

localnet已允許,如acl也在localnet內(nèi)就會不能體現(xiàn)出來。

論壇徽章:
0
3 [報告]
發(fā)表于 2015-01-14 08:17 |只看該作者
回復 2# cryboy2001


    #acl localnet src 10.0.0.0/8    # RFC1918 possible internal network  我的網(wǎng)段屬于這個,已經(jīng)拒絕了這個網(wǎng)段。

論壇徽章:
26
CU十二周年紀念徽章
日期:2013-10-24 15:41:34技術(shù)圖書徽章
日期:2014-07-11 16:27:52辰龍
日期:2014-09-04 13:40:43白羊座
日期:2014-09-09 12:51:55雙子座
日期:2014-09-26 11:00:042014年中國系統(tǒng)架構(gòu)師大會
日期:2014-10-14 15:59:00子鼠
日期:2014-10-23 16:48:23巨蟹座
日期:2014-10-27 08:21:10申猴
日期:2014-12-08 10:16:282015年辭舊歲徽章
日期:2015-03-03 16:54:15NBA常規(guī)賽紀念章
日期:2015-05-04 22:32:03IT運維版塊每日發(fā)帖之星
日期:2016-01-29 06:20:00
4 [報告]
發(fā)表于 2015-01-14 08:36 |只看該作者
你的yum安裝也可能不支持mac控制

如源碼安裝編譯要加參數(shù)--enable-arp-acl

論壇徽章:
0
5 [報告]
發(fā)表于 2015-01-14 08:54 |只看該作者
回復 4# cryboy2001

上面那個截圖就是我用yum安裝后的結(jié)果,里面包含了mac的功能吧。


   

論壇徽章:
26
CU十二周年紀念徽章
日期:2013-10-24 15:41:34技術(shù)圖書徽章
日期:2014-07-11 16:27:52辰龍
日期:2014-09-04 13:40:43白羊座
日期:2014-09-09 12:51:55雙子座
日期:2014-09-26 11:00:042014年中國系統(tǒng)架構(gòu)師大會
日期:2014-10-14 15:59:00子鼠
日期:2014-10-23 16:48:23巨蟹座
日期:2014-10-27 08:21:10申猴
日期:2014-12-08 10:16:282015年辭舊歲徽章
日期:2015-03-03 16:54:15NBA常規(guī)賽紀念章
日期:2015-05-04 22:32:03IT運維版塊每日發(fā)帖之星
日期:2016-01-29 06:20:00
6 [報告]
發(fā)表于 2015-01-14 09:29 |只看該作者
哦,剛剛沒注意。

你可以仔細一點,看看日志有沒有記錄,mac有沒寫錯,squid重啟,等等。

論壇徽章:
0
7 [報告]
發(fā)表于 2015-01-14 09:43 |只看該作者
回復 6# cryboy2001
老兄,能不能給我遠程幫我看一下,我找了好久的原因,也沒找到。你的qq號碼是多少或者加我249468198


   

論壇徽章:
0
8 [報告]
發(fā)表于 2015-01-14 13:51 |只看該作者
回復 1# mengcun123


    你的squid的ip和控制的那臺客戶段 在一個廣播域內(nèi)嗎???

論壇徽章:
0
9 [報告]
發(fā)表于 2015-01-14 13:57 |只看該作者
回復 8# fly_jiang

不在一個廣播域
   

論壇徽章:
0
10 [報告]
發(fā)表于 2015-01-14 15:38 |只看該作者
回復 9# mengcun123


    兄弟 那就對了,不在一個廣播域就無效了。。。。。

你要在代理服務(wù)器上 開放 幾個網(wǎng)口給不同vlan用。。。。不在一個廣播域就沒有沖突這一說了。。。。。
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP