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

  免費(fèi)注冊(cè) 查看新帖 |

Chinaunix

  平臺(tái) 論壇 博客 文庫
123下一頁
最近訪問板塊 發(fā)新帖
查看: 8183 | 回復(fù): 29
打印 上一主題 下一主題

[proxy] squid代理實(shí)現(xiàn)賬號(hào)登陸的問題 [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報(bào)告]
發(fā)表于 2015-01-10 16:23 |只看該作者 |倒序?yàn)g覽
centos 6.3  安裝  yum安裝squid和http
沒有能實(shí)現(xiàn)有登陸提示,哪里有問題?????????????????????????
#
# 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
auth_param basic children 5
auth_param basic realm WELCOME
auth_param basic credentialsttl 2 hours
acl normal proxy_auth REQUIRED
http_access allow normal


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 squid_user proxy_auth REQUIRED

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 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

論壇徽章:
3
白羊座
日期:2014-08-25 15:04:112014年中國系統(tǒng)架構(gòu)師大會(huì)
日期:2014-10-14 15:59:002015元宵節(jié)徽章
日期:2015-03-06 15:52:30
2 [報(bào)告]
發(fā)表于 2015-01-10 18:50 來自手機(jī) |只看該作者
http://www.72891.cn/forum.php?mod=viewthread&tid=4153855&mobile=yes
認(rèn)真比對(duì)一下,看看問題在哪里

論壇徽章:
0
3 [報(bào)告]
發(fā)表于 2015-01-12 12:43 |只看該作者
回復(fù) 2# 睿智2012
yum安裝不行嗎?感覺編譯的好嘛啊。

   

論壇徽章:
41
操作系統(tǒng)版塊每日發(fā)帖之星
日期:2016-08-21 06:20:00每日論壇發(fā)貼之星
日期:2016-05-05 06:20:00操作系統(tǒng)版塊每日發(fā)帖之星
日期:2016-05-05 06:20:00IT運(yùn)維版塊每日發(fā)帖之星
日期:2016-05-05 06:20:0015-16賽季CBA聯(lián)賽之山西
日期:2016-04-27 08:49:00操作系統(tǒng)版塊每日發(fā)帖之星
日期:2016-04-25 06:20:00操作系統(tǒng)版塊每日發(fā)帖之星
日期:2016-04-17 06:23:2815-16賽季CBA聯(lián)賽之吉林
日期:2016-03-25 15:46:3415-16賽季CBA聯(lián)賽之四川
日期:2016-03-25 14:26:19操作系統(tǒng)版塊每日發(fā)帖之星
日期:2016-05-27 06:20:00操作系統(tǒng)版塊每日發(fā)帖之星
日期:2016-05-28 06:20:00IT運(yùn)維版塊每日發(fā)帖之星
日期:2016-08-18 06:20:00
4 [報(bào)告]
發(fā)表于 2015-01-12 13:50 |只看該作者
yum安裝的可以實(shí)現(xiàn)賬號(hào)登陸,包括綁定ad賬號(hào),自己用過

論壇徽章:
24
天蝎座
日期:2014-05-13 18:05:59IT運(yùn)維版塊每日發(fā)帖之星
日期:2015-11-26 06:20:00操作系統(tǒng)版塊每月發(fā)帖之星
日期:2015-12-02 14:57:54IT運(yùn)維版塊每月發(fā)帖之星
日期:2016-01-07 23:01:56IT運(yùn)維版塊每周發(fā)帖之星
日期:2016-01-07 23:04:2615-16賽季CBA聯(lián)賽之青島
日期:2016-01-23 07:58:272016猴年福章徽章
日期:2016-02-18 15:30:3415-16賽季CBA聯(lián)賽之北控
日期:2016-03-23 14:20:06IT運(yùn)維版塊每日發(fā)帖之星
日期:2016-04-01 06:20:0015-16賽季CBA聯(lián)賽之吉林
日期:2016-06-28 13:51:54IT運(yùn)維版塊每日發(fā)帖之星
日期:2016-07-01 06:20:00IT運(yùn)維版塊每日發(fā)帖之星
日期:2015-11-23 06:20:00
5 [報(bào)告]
發(fā)表于 2015-01-12 14:35 |只看該作者
1.使用用戶賬號(hào)認(rèn)真配置,就這樣設(shè)定是沒問題的,主要是看你第一行路徑有沒有指定正確。
auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/squid_user.txt
auth_param basic children 5
auth_param basic realm WELCOME
auth_param basic credentialsttl 2 hours


2. 其他解決方式
2.1如果上述路徑?jīng)]問題,查看下你yum安裝的squid是不是支持NCSA。
squid -v
--enable-basic-auth-helpers=LDAP,MSNT,NCSA    看到這一行代表是支持的。

2.2  /etc/squid/squid_user.txt
/etc/squid/squid_user.txt 存放密碼用的。密碼不能手動(dòng)創(chuàng)建,需要通過htpasswd命令創(chuàng)建

論壇徽章:
0
6 [報(bào)告]
發(fā)表于 2015-01-13 12:21 |只看該作者
回復(fù) 4# jixuuse

貌似不行啊
其他的不說,mac地址我就試過,沒有成功!請(qǐng)問你用的是什么版本的系統(tǒng)
   

論壇徽章:
0
7 [報(bào)告]
發(fā)表于 2015-01-13 16:14 |只看該作者
回復(fù) 5# woxizishen


看截圖,yum安裝的可以支持認(rèn)證和mac地址認(rèn)證的啊,但是不知道為什么我不成功


   

QQ截圖20150113161228.jpg (123.71 KB, 下載次數(shù): 58)

yum安裝的截圖

yum安裝的截圖

論壇徽章:
41
操作系統(tǒng)版塊每日發(fā)帖之星
日期:2016-08-21 06:20:00每日論壇發(fā)貼之星
日期:2016-05-05 06:20:00操作系統(tǒng)版塊每日發(fā)帖之星
日期:2016-05-05 06:20:00IT運(yùn)維版塊每日發(fā)帖之星
日期:2016-05-05 06:20:0015-16賽季CBA聯(lián)賽之山西
日期:2016-04-27 08:49:00操作系統(tǒng)版塊每日發(fā)帖之星
日期:2016-04-25 06:20:00操作系統(tǒng)版塊每日發(fā)帖之星
日期:2016-04-17 06:23:2815-16賽季CBA聯(lián)賽之吉林
日期:2016-03-25 15:46:3415-16賽季CBA聯(lián)賽之四川
日期:2016-03-25 14:26:19操作系統(tǒng)版塊每日發(fā)帖之星
日期:2016-05-27 06:20:00操作系統(tǒng)版塊每日發(fā)帖之星
日期:2016-05-28 06:20:00IT運(yùn)維版塊每日發(fā)帖之星
日期:2016-08-18 06:20:00
8 [報(bào)告]
發(fā)表于 2015-01-14 10:43 |只看該作者
安裝squid openldap openldap-clients

/etc/openldap/ldap.conf
BASE    dc=test,dc=com
URI     ladp://ad.test.com

/etc/squid/squid.conf
//>-----使用賬號(hào)做驗(yàn)證--------<
auth_param basic program /usr/lib/squid/squid_ldap_auth -R -b "DC=test,DC=com" -D "CN=squid,CN=Users,DC=test,DC=com" -w "123456" -f sAMAccountName=%s -h ad.test.com

auth_param basic children 50                                 
auth_param basic realm Web-Proxy                              
auth_param basic credentialsttl 10 minute                     
                                                              
acl ldap-auth proxy_auth REQUIRED                             
http_access deny !ldap-auth  

論壇徽章:
0
9 [報(bào)告]
發(fā)表于 2015-01-14 10:55 |只看該作者
回復(fù) 8# jixuuse
沒看明白,你有qq嗎,我加你,給我詳細(xì)的將一下

   

論壇徽章:
0
10 [報(bào)告]
發(fā)表于 2015-01-14 10:58 |只看該作者
回復(fù) 5# woxizishen

我也不需要做的很麻煩,就是可以ip地址和mac地址認(rèn)證通過,另外實(shí)現(xiàn)賬號(hào)認(rèn)證,AD認(rèn)證可有可無!


   
您需要登錄后才可以回帖 登錄 | 注冊(cè)

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

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP