分类: BSD
2007-02-15 17:33:45
ip wccp web-cache
!
interface GigabitEthernet1/29
ip wccp web-cache redirect in
先使用ports安装squid,修改squid.conf
http_port 3128 transparent
wccp2_router 10.0.75.6
ifconfig gre0 create
ifconfig gre0 10.0.75.5 211.153.250.1 netmask 255.255.255.255 link2 tunnel 10.0.75.5 211.153.250.1 up
route delete 211.153.250.1
options IPDIVERT
options IPFIREWALL
options IPFIREWALL_FORWARD
options IPFIREWALL_FORWARD_EXTENDED
options IPFIREWALL_DEFAULT_TO_ACCEPT
ipfw add fwd 127.0.0.1,3128 tcp from any to any 80 via gre0 in
echo 'squid_enable="YES"' >> /etc/rc.conf
/usr/local/etc/rc.d/squid.sh start
Router# sho ip wccp
Global WCCP information:
Router information:
Router Identifier: 211.153.250.1
Protocol Version: 2.0
Service Identifier: web-cache
Number of Cache Engines: 1
Number of routers: 1
Total Packets Redirected: 876198
Redirect access-list: -none-
Total Packets Denied Redirect: 0
Total Packets Unassigned: 0
Group access-list: -none-
Total Messages Denied to Group: 0
Total Authentication failures: 0
freebsd 6.2 + squid 2.6 + wccp 问题
在网上找了几篇文章,然后优化了一下,那个装了squid的fb6.2在流量到了60Mbps后,过一会还是会自己重启
sysctl.conf
net.inet.icmp.icmplim=0
kern.maxfiles=3280800
kern.maxfilesperproc=2952700
net.inet.ip.portrange.first=10001
net.inet.ip.portrange.last=49152
loader.conf
hw.physmem="2G"
kern.maxusers="1024"
kern.ipc.nmbclusters="0"
续:把HTT关了,嘿嘿不重启了,但是出现了“No buffer space available”,但令我欣慰的是,双向流量已经达到了160Mbps,现在就差解决“No buffer space available”的问题了,继续加油哦。对了,明天试试把loader.conf里的kern.maxusers改成0
再续:
kern.maxusers改成0没用,系统启动后kern.maxusers=384,流量大了依然会重启。手动改成2048后,重启的问题解决了