免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3030 | 回复: 8
打印 上一主题 下一主题

[proxy] 这样的配置代理服务器能让多少人用 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-03-13 14:51 |只看该作者 |倒序浏览
服务器配置4 2.4G
         内存 512M
安装了rhel3版    双100M网卡
请问这样的系统有能让多少人使用代理上网

论坛徽章:
0
2 [报告]
发表于 2007-03-21 09:54 |只看该作者
内存太小了点..........

硬盘最好是SCSI的

300-500人应该没问题吧

论坛徽章:
0
3 [报告]
发表于 2007-03-22 11:03 |只看该作者

回复 2楼 fugangyun 的帖子

能300-500人吗??我现在用到120人左右就不行了,有人说上网不能上,有时候又可以??是什么问题,请教!!!

论坛徽章:
0
4 [报告]
发表于 2007-03-22 11:07 |只看该作者

附我的代理配制!

http_port 192.168.16.251:8080

acl QUERY urlpath_regex cgi-bin \? asp php shtml php3 cgi
no_cache deny QUERY
cache_mem 100 MB
cache_swap_low 90
cache_swap_high 95
maximum_object_size 4096 KB
cache_dir ufs /var/spool/squid 1200 16 256
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
dns_nameservers 202.102.24.34 202.102.24.35

acl list src 192.168.16.0/255.255.255.0
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl SSL_ports port 443 563
acl Safe_ports port 80                # http
acl Safe_ports port 21                # ftp
acl Safe_ports port 443 563        # https, snews
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

http_access allow list
http_access deny !Safe_ports
http_access deny !SSL_ports
icp_access allow all
http_access allow manager localhost
http_access deny manager
http_access allow localhost
http_access deny all

client_lifetime 2 hours   
acl mmxfile urlpath_regex -i \.avi$ \.rmvb$ \.torrent$
http_access deny mmxfile

acl refused_sites url_regex sex
http_access deny refused_sites
cache_effective_user squid
cache_effective_group squid

visible_hostname squid.5online.com.cn
httpd_accel_host virtual
cache_mgr test@test.com
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on

error_directory /etc/squid/errors

论坛徽章:
1
技术图书徽章
日期:2013-12-05 23:25:45
5 [报告]
发表于 2007-03-22 12:08 |只看该作者
这个时候,你可以检查啊。

到底是哪个环节不可以呢?

论坛徽章:
0
6 [报告]
发表于 2007-03-22 14:44 |只看该作者
原帖由 jacky10000 于 2007-3-22 11:03 发表
能300-500人吗??我现在用到120人左右就不行了,有人说上网不能上,有时候又可以??是什么问题,请教!!!

你的网络怎么样呢,带宽、速度如何?
和不用squid的情况下作一个对比

论坛徽章:
0
7 [报告]
发表于 2007-03-26 14:59 |只看该作者
2M的带宽,我也做了IPTABLES来限制P2P软件,做代理主要不是要提高网速,我这边速度还是可以的,就是有人经常BT,搞得速度慢,才想用代理来限制,

论坛徽章:
0
8 [报告]
发表于 2007-03-26 15:00 |只看该作者
$ipt -t nat -A PREROUTING -i eth1 -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 8080
$ipt -t nat -A POSTROUTING -s 192.168.0.0/255.255.255.0 -j SNAT --to 192.168.1.80
$ipt -A FORWARD -m ipp2p --udp --kazaa --bit -j DROP
$ipt -A FORWARD -p tcp -m ipp2p --ares -j DROP
$ipt -A FORWARD -p udp -m ipp2p --kazaa -j DROP

论坛徽章:
0
9 [报告]
发表于 2007-03-26 15:10 |只看该作者
原帖由 HonestQiao 于 2007-3-22 12:08 发表
这个时候,你可以检查啊。

到底是哪个环节不可以呢?


在服务器上我看到一段报错的信息,
看屏幕显示满屏的“eth1: Too much work in interrupt, status 0x0001
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP