ChinaUnix.net
相关文章推荐:

squid ncsa

实在最基础的squid配置成功的基础上进行修改的,也就说,只在最后添加了这么几项: auth_param basic program /bin/ncsa_auth /etc/passwd acl test proxy_auth REQUIRED http_access allow test $ squid -z FATAL: getpwnam failed to find userid for effective user 'proxy' squid Cache (Version 2.7.STABLE3): Terminated abnormally. CPU Usage: 0.000 seconds = 0.000 user + 0.000 sys Maximum Resident Size: 0 KB Pag...

by 落音 - 服务器应用 - 2009-07-24 17:33:55 阅读(2596) 回复(2)

相关讨论

前天看了一下ncsa_auth认证程序的源码,发现这个认证其实是非常简单的。 squid启动时运行ncsa_auth passwd密码文件 如果你的认证用户不是很多的话,写个sh就可以解决问题了 ncsa_auth.sh 内容如下 #认证用户名为abc密码123 [code] while true ; do read a user=`echo a| /usr/bin/cut -d ' ' -f1` pass=`echo a|/usr/bin/cut -d ' ' -f2` if [ "$user" == "abc" ] ; then if [ "$pass" == "123" ] ; then ...

by wxxszzz - 服务器应用 - 2012-03-15 16:09:35 阅读(5640) 回复(13)

环境:red hat linux8.0+gcc 双网卡:eth0对外、eth1对内 安装时选route/firewall模式;系统默认没有安装squid与GCC. GCC安装不必说了吧! rpm -aq|grep squid #查一下系统是否有squid包如果有rpm -e squid先移除它。嘿嘿,我没有用系统自带的做认证呀!:) squid从http://www.squid-cache.org/下载: wget http://www.squid-cache.org/Versions/v2/2.3/squid-2.3.STABLE2-src.tar.gz tar zxvf squid-2.3.STABLE2-src.tar.gz #...

by wjlxsl - 服务器应用 - 2004-09-01 19:58:09 阅读(1686) 回复(1)

redhat liunx 9.0 下载squid-2.5....tar.gz 解压 安装 squid 安装ncsa 配置squid.conf #auth_param basic program /usr/local/squid/libexec/ncsa_auth /usr/local/squid/etc/password #auth_param basic children 5 #auth_param basic realm squid proxy-caching web server #auth_param basic credentialsttl 2 hours #auth_param basic casesensitive off # acl auth proxy_auth REQUIRED acl all src 10.0.0.0/255.255.2...

by leishili - 服务器应用 - 2005-03-27 17:12:34 阅读(1270) 回复(0)

squid 软件版本:squid-3.0.r1.20071001_1 uname -a: FreeBSD serv01.test.com 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sat Jul 5 21:19:40 CST 2008 [email]root@serv01.test.com[/email]:/usr/src/sys/i386/compile/SERV01 i386 squid.conf 全文如下: http_port 172.16.240.254:3128 transparent cache_mem 21 MB cache_swap_low 90 cache_swap_high 95 cache_dir ufs /home/squid/cache 400 16 256 cache_log /home/squid/...

by q359960537 - 服务器应用 - 2008-08-19 10:17:12 阅读(2943) 回复(8)

用如下没有加ncsa验证来代理时,代理成功: #auth_param basic program /usr/bin/ncsa_auth /usr/local/squid/etc/password auth_param basic children 5 auth_param basic realm squid proxy-caching web server auth_param basic credentialsttl 2 hours acl normal proxy_auth REQUIRED http_access allow normal 但是配置文件改成如下:(加入ncsa验证) auth_param basic program /usr/bin/ncsa_auth /usr/local/squid/e...

by ccoycs - 服务器应用 - 2004-07-30 13:31:32 阅读(1174) 回复(1)

我玩的LINUX..系统是..Redhat Enterprise Linux..我的.LINUX..系统在安装的时候,就把所有的都装上了..为的就是.以后 玩的时候..可以省去一些..安装..类似gcc..之类.. 我在别处做实验..就是关于..squid..的ncsa.验证帐户..用 find / -name ncsa_auth 都可以从系统中.找到我要的验证文件. 可是我现在在我自己的..VM里..却是找不到... 我用...find / -name ncsa 倒是可以搜出些..但是..里面没有一个文件名是叫 ncsa_...

by fuch13 - 多媒体与娱乐 - 2006-04-07 19:58:57 阅读(1515) 回复(0)

我想问一下, 如何在使用ncsa认证时,做到让htpasswd生成的帐户只能一个人用,即当某个人用一个帐户已经 开始浏览网页时,别人就不能使用这个帐户了。 可以做到吗?

by wz2098889 - 服务器应用 - 2006-04-05 17:08:14 阅读(1532) 回复(3)

iptables -t nat -P POSTROUTING ACCEPT iptables -t nat -P PREROUTING ACCEPT iptables -t nat -P OUTPUT ACCEPT iptables -t nat -A POSTROUTING -s 192.168.5.0/255.255.255.0 -o eth0 -j SNAT --to-source 222.***.***.*** iptables -P INPUT ACCEPT iptables -P OUTPUT ACCEPT iptables -P FORWARD DROP iptables -A FORWARD -p tcp --dport 25 -j ACCEPT iptables -A FORWARD -p tcp --dport 110 -j ACCEPT iptables -A FOR...

by ipx-spx - 服务器应用 - 2005-10-11 10:16:34 阅读(2255) 回复(3)

squid的版本:squid-2.5.STABLE9 Redhat9(已经卸载了系统自带的那个squid) ######################################## 编译安装squid #./configure (全部默认) #make #make install 进入到helpers/basic_auth/ncsa. #make #make install (可生成ncsa_auth) ######################################## squid.conf配置文件内容如下 [code] cache_dir ufs /usr/local/squid/var/cache 100 16 256 acl manager proto cache_object ...

by shitian8848 - 服务器应用 - 2005-03-25 15:49:43 阅读(2113) 回复(6)

小弟刚接触linux不久,现在需要配置带有用户密码验证的 squid代理碰到问题. 根据网上资料http://www.blueidea.com/common/prin...d2.5stable5), 在编译安装squid-2.5.STABLE5.tar.gz后使用上面网址的配置内内容容./configure --prefix=/var/squid --sysconfdir=/etc --enable-arp-acl --enable-linux-netfilter --enable-pthreads --enable-err-language="Simplify_Chinese" --enable-storeio=ufs,null --enable-default-err-la...

by sailing214 - 服务器应用 - 2004-09-11 08:25:46 阅读(1562) 回复(5)