Welcome 微信登录

首页 / 操作系统 / Linux / Ubuntu+Cisco ASA搭建支持WCCP的Squid

环境说明Cisco防火墙地址inside口:10.10.0.1outside口:123.*.*.*DMZ口:172.*.*.*
Cisco核心交换机总出口10.10.0.2
squid:10.10.0.3防火墙、交换机、squid通过交换机连接
1.安装Ubuntuhostname:proxyip:10.6.1.3 gateway:10.6.1.2 netmask:255.255.255.0 broadcast:10.6.1.2552.修改root密码设置root密码:sudo passwd root3.取消squid版本信息/src/errorpage.c 文件在以下地方修改
} error_hard_text[] = {     {        ERR_SQUID_SIGNATURE,            " <BR clear="all"> "            "<HR noshade size="1px"> "            "<ADDRESS> "            "Generated %T by %h (%s) "            #将%s修改即可,%t为当前时间             "</ADDRESS> "                       #%h 为主机名称            "</BODY></HTML> "}4.编译:apt-get source squid./configure --prefix=/usr/ --localstatedir=/var/squid --sysconfdir=/etc/squid --enable-cache-digests --enable-delay-pools --enable-forward-log --enable-async-io --enable-dlmalloc --enable-arp-acl --enable-linux-netfilter --disable-hostname-checks --enable-underscores --enable-auth --enable-icmp --enable-htcp安装后文件位置:/usr/squid    主目录/usr/ sbin/squid 执行文件/etc/squid/squid.conf    配置文件/var/squid/logs    日志/var/squid/cache    自己建立的cache5.配置squidmkdir /var/ squid/cache     #给squid创建 cache目录chown –R proxy:proxy /var/squid    #更改/var/squid目录的所有者为proxy/usr /sbin/squid –z    #生成交换文件目录squid    启动squid修改配置文件: cd /etc/squid/rm squid.confvi squid.conf将下边的内容复制到squid.conf里access_log /var/squid/logs/access.log squid cache_store_log /var/squid/logs/store.log cache_log /var/squid/logs/cache.log acl all src 0.0.0.0/0.0.0.0acl internal dstdomain “/etc/squid/internal.acl“    #定义aclhttp_port 3128 transparenthttp_access allow allwccp2_router 10.6.1.1    #指定防火墙的地址
wccp2_rebuild_wait on
wccp2_forwarding_method 1
wccp2_return_method 1
wccp2_assignment_method 1
wccp2_service standard 0cache_mem 4096 MBcache_dir ufs /var/squid/cache 10240 16 256cache_effective_user proxyerror_directory /usr/share/errors/no   cache_mgr **@***    #设置错误提示页面中管理员的邮件地址forwarded_for off   #不显示客户端私有IPlogfile_rotate 3   #日志轮回,保存轮回几次的日志memory_pools on   #让squid自动分配内存           memory_pools_limit none   #不做上限限制cache_swap_low 85cache_swap_high 95no_cache deny internal    #对于acl internal中的域名不缓存
  • 1
  • 2
  • 下一页
Ubuntu突然没有声音的解决方法Linux轻量级系统DSL Linux安装使用详解相关资讯      Ubuntu教程 
  • Ubuntu教程 - 使用Ubuntu拷贝CD和  (12/18/2013 14:38:16)
  • 让Ubuntu 12.10支持RAR和7Z文件解  (11/15/2012 18:51:50)
  • Windows 7硬盘安装Ubuntu 12.10图  (11/03/2012 19:22:47)
  • 完美安装Ubuntu 12.10最新AMD显卡  (11/27/2012 08:17:47)
  • Win 7硬盘安装Ubuntu 12.10  (11/05/2012 13:30:34)
  • 虚拟机上Ubuntu 11.10升级到12.04  (10/12/2012 20:00:38)
本文评论 查看全部评论 (0)
表情: 姓名: 字数