The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]

форумы  помощь  поиск  регистрация  майллист  ВХОД  слежка  RSS
"FreeBSD6.1+Squid2.6+WCCPv2+PF problem"
Вариант для распечатки  
Пред. тема | След. тема 
Форумы Настройка Squid и других прокси серверов (Public)
Изначальное сообщение [Проследить за развитием треда]

"FreeBSD6.1+Squid2.6+WCCPv2+PF problem"  
Сообщение от tn192 email(ok) on 28-Май-07, 12:08 
Hello,
I'm a new to squid and triyng to use

Transparent Squid Cache with WCCPv2 on Cisco 7206 router. IOS version is
12.4(1). Squid cache and clients are in a same subnet.

I have a problem the client browser the page cannot display error message.
And also from squid cache there aren't any log in the access.log and
store.log.
What should i do? please help me.

I hope and waiting for your reply,

Following are my configurations:

   Internet
      |
      |
      | fa0/1 ip: x.x.x.1/30
__________________
|                  |
|    Cisco 7206           |
|      Router           |
|__________________|
      | fa0/0 ip: y.y.y.2/24
      |
      |
      |                                   em0 ip: y.y.y.125/24
__________________                  ____________________
|                  |             |                    |
|   Cisco Switch   |-------------|   Squid 2.6 Cache  |
|                         |             |     FreeBSD 6.2    |
|__________________|             |____________________|
      |
      |
      |
  Clients and customers
     Ip: y.y.y.0/24


**************** Router Config ***********************

Router7206#conf t
Router7206(config)#ip wccp version 2
Router7206(config)#ip wccp web-cache
Router7206(config)#int fa0/1
Router7206(config-if)#ip wccp web-cache redirect out
Router7206(config-if)#exit
Router7206(config)#int fa0/0
Router7206(config-if)#ip route-cache same-interface

******************************************************

**************** Squid Config ************************
http_port y.y.y.125:3128 transparent

cache_mem 64 MB
cache_dir ufs /usr/local/squid/cache 1024 16 256
access_log /usr/local/squid/logs/access.log
cache_log /usr/local/squid/logs/cache.log
cache_store_log /usr/local/squid/logs/store.log

acl our_networks src y.y.y.0/24 127.0.0.1/32
http_access allow our_networks

wccp2_router y.y.y.2
wccp_version 4
wccp2_rebuild_wait on
wccp2_forwarding_method 1
wccp2_return_method 1
wccp2_service standard 0
wccp2_address x.x.x.125
******************************************************

******************* sysctl.conf **********************
net.inet.ip.forwarding=1
******************************************************

********************* rc.conf ************************

defaultrouter="y.y.y.2"
gateway_enable="YES"
hostname="cachetest.mn"
ifconfig_em0="inet y.y.y.125  netmask 255.255.255.0"

gre_enable="YES"
gre_flags="gre0 link1"

ifconfig_gre0="inet 172.10.20.30/32 172.10.20.31 link0 link1 tunnel
202.72.241.125 203.208.191.102 up"

router_enable="YES"
tcp_extensions="NO"
named_enable="YES"

inetd_enable="YES"
keymap="us.iso"
sshd_enable="YES"
usbd_enable="YES"

# PF Firewall
pf_enable="YES"                 # Enable PF (load module if required)
pf_rules="/etc/pf.conf"         # rules definition file for pf
pf_flags=""                     # additional flags for pfctl startup
pflog_enable="YES"              # start pflogd(8)
pflog_logfile="/var/log/pflog"  # where pflogd should store the logfile
pflog_flags=""                  # additional flags for pflogd startup

******************************************************

******************* PF Config ************************
ext_if="em0"    # external interface
external_addr="y.y.y.125"
set loginterface $ext_if
set block-policy drop
set require-order yes
set fingerprints "/etc/pf.os"

scrub in all


rdr on $ext_if proto tcp from any to any port 80 -> 127.0.0.1 port 3128

pass in all
pass out all
pass in on $ext_if proto tcp from any to $ext_if port 3128 keep state
******************************************************


******************* From cache ***********************

cachetest# ifconfig
em0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
        options=b<RXCSUM,TXCSUM,VLAN_MTU>
        inet y.y.y.125 netmask 0xffffff00 broadcast y.y.y.255
        ether 00:c0:9f:3c:06:6e
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500
pfsync0: flags=0<> mtu 2020
        syncpeer: 224.0.0.240 maxupd: 128
pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33208
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x6
        inet6 ::1 prefixlen 128
        inet 127.0.0.1 netmask 0xff000000
gre0: flags=d011<UP,POINTOPOINT,LINK0,LINK2,MULTICAST> mtu 1476
        tunnel inet y.y.y.125 --> x.x.x.1
        inet 172.10.20.30 --> 172.10.20.31 netmask 0xffffffff

cachetest# squid -NCd1
2007/05/18 15:25:12| Starting Squid Cache version 2.6.STABLE3 for
i386-portbld-freebsd6.2...
2007/05/18 15:25:12| Process ID 13124
2007/05/18 15:25:12| With 7232 file descriptors available
2007/05/18 15:25:12| Using kqueue for the IO loop
2007/05/18 15:25:12| Performing DNS Tests...
2007/05/18 15:25:12| Successful DNS name lookup tests...
2007/05/18 15:25:12| DNS Socket created at 0.0.0.0, port 58840, FD 5
2007/05/18 15:25:12| Adding nameserver y.y.y.4 from /etc/resolv.conf
2007/05/18 15:25:12| Unlinkd pipe opened on FD 10
2007/05/18 15:25:12| Swap maxSize 524288 KB, estimated 40329 objects
2007/05/18 15:25:12| Target number of buckets: 2016
2007/05/18 15:25:12| Using 8192 Store buckets
2007/05/18 15:25:12| Max Mem  size: 65536 KB
2007/05/18 15:25:12| Max Swap size: 524288 KB
2007/05/18 15:25:12| Rebuilding storage in /usr/local/squid/cache (CLEAN)
2007/05/18 15:25:12| Using Least Load store dir selection
2007/05/18 15:25:12| Set Current Directory to /usr/local/squid/cache
2007/05/18 15:25:12| Loaded Icons.
2007/05/18 15:25:12| Accepting transparently proxied HTTP connections at
0.0.0.0, port 80, FD 12.
2007/05/18 15:25:12| Accepting ICP messages at 0.0.0.0, port 3130, FD 13.
2007/05/18 15:25:12| Accepting HTCP messages on port 4827, FD 14.
2007/05/18 15:25:12| WCCP Disabled.
2007/05/18 15:25:12| Accepting WCCPv2 messages on port 2048, FD 15.
2007/05/18 15:25:12| Initialising all WCCPv2 lists
2007/05/18 15:25:12| Ready to serve requests.
2007/05/18 15:25:13| Done reading /usr/local/squid/cache swaplog (0 entries)
2007/05/18 15:25:13| Finished rebuilding storage from disk.
2007/05/18 15:25:13|         0 Entries scanned
2007/05/18 15:25:13|         0 Invalid entries.
2007/05/18 15:25:13|         0 With invalid flags.
2007/05/18 15:25:13|         0 Objects loaded.
2007/05/18 15:25:13|         0 Objects expired.
2007/05/18 15:25:13|         0 Objects cancelled.
2007/05/18 15:25:13|         0 Duplicate URLs purged.
2007/05/18 15:25:13|         0 Swapfile clashes avoided.
2007/05/18 15:25:13|   Took 1.2 seconds (   0.0 objects/sec).
2007/05/18 15:25:13| Beginning Validation Procedure
2007/05/18 15:25:13|   Completed Validation Procedure
2007/05/18 15:25:13|   Validated 0 Entries
2007/05/18 15:25:13|   store_swap_size = 0k
2007/05/18 15:25:14| storeLateRelease: released 0 objects


cachetest# netstat -rn
Routing tables

Internet:
Destination        Gateway            Flags    Refs      Use  Netif Expire
default            y.y.y.2       UGS         0  3474085    em0
127.0.0.1          127.0.0.1          UH          0       42    lo0
172.10.20.30       127.0.0.1          UH          0        0    lo0
172.10.20.31       172.10.20.30       UH          0        0   gre0
y.y.y         link#1             UC          0        0    em0
y.y.y.2       00:03:fd:cb:74:08  UHLW        2       67    em0   1198
y.y.y.4       00:30:05:1b:a4:bb  UHLW        1     1714    em0   1189
y.y.y.29      00:05:5d:2e:18:2b  UHLW        1     3141    em0   1081
y.y.y.120     00:11:11:d0:a8:35  UHLW        1       67    em0    586
y.y.y.121     00:c0:9f:14:e3:89  UHLW        1        6    em0    470
y.y.y.125     127.0.0.1          UH          0        0    lo0
y.y.y.131     00:13:72:fd:27:5d  UHLW        1     1120    em0
y.y.y.185     00:02:44:77:68:f4  UHLW        1       46    em0    145
y.y.y.187     00:02:b9:fa:4c:47  UHLW        1       17    em0    148
y.y.y.193     00:13:72:e0:d9:90  UHLW        1       64    em0   1166
y.y.y.239     00:14:2a:be:42:bf  UHLW        1       70    em0   1065
y.y.y.244     00:e0:4c:e0:dd:c2  UHLW        1       71    em0   1197
y.y.y.246     00:13:d3:d7:47:5d  UHLW        1       33    em0   1179
y.y.y.252     00:0a:eb:56:e0:57  UHLW        1      484    em0    812
y.y.y.253     00:14:78:80:18:e2  UHLW        1       61    em0   1092

Internet6:
Destination                       Gateway                       Flags    
Netif Expire
::1                               ::1                           UHL      
lo0
fe80::%lo0/64                     fe80::1%lo0                   U        
lo0
fe80::1%lo0                       link#6                        UHL      
lo0
ff01:6::/32                       fe80::1%lo0                   UC        
lo0
ff02::%lo0/32                     fe80::1%lo0                   UC        
lo0


*******************  From Router *********************


Router7206#sh ip wccp web-cache
Global WCCP information:
    Router information:
        Router Identifier:                   x.x.x.1
        Protocol Version:                    2.0

    Service Identifier: web-cache
        Number of Cache Engines:             1
        Number of routers:                   1
        Total Packets Redirected:            4713008
        Process:                             185
        Fast:                                0
        CEF:                                 4712823
        Redirect access-list:                -none-
        Total Packets Denied Redirect:       0
        Total Packets Unassigned:            281205
        Group access-list:                   -none-
        Total Messages Denied to Group:      0
        Total Authentication failures:       0
        Total Bypassed Packets Received:     0

Router7206#sh ip wccp web-cache detail
WCCP Cache-Engine information:
        Web Cache ID:          y.y.y.125
        Protocol Version:      2.0
        State:                 Usable
        Initial Hash Info:     00000000000000000000000000000000
                               00000000000000000000000000000000
        Assigned Hash Info:    FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
                               FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
        Hash Allotment:        256 (100.00%)
        Packets Redirected:    515766
        Connect Time:          00:06:24
        Bypassed Packets
          Process:             0
          Fast:                0
          CEF:                 0


Router7206#sh ip wccp web-cache view
    WCCP Routers Informed of:
        x.x.x.1

    WCCP Cache Engines Visible:
        y.y.y.125

    WCCP Cache Engines NOT Visible:
        -none-


******************************************************

Высказать мнение | Ответить | Правка | Наверх | Cообщить модератору

 Оглавление

Сообщения по теме [Сортировка по времени, UBB]


1. "11"  
Сообщение от tn192 email(ok) on 28-Май-07, 12:20 

11
Высказать мнение | Ответить | Правка | Наверх | Cообщить модератору

2. "FreeBSD6.1+Squid2.6+WCCPv2+PF problem"  
Сообщение от tn192 email(ok) on 28-Май-07, 12:23 
>Hello,
>I'm a new to squid and triyng to use
>
>Transparent Squid Cache with WCCPv2 on Cisco 7206 router. IOS version is
>
>12.4(1). Squid cache and clients are in a same subnet.
>
>I have a problem the client browser the page cannot display error
>message.
>And also from squid cache there aren't any log in the access.log
>and
>store.log.
>What should i do? please help me.
>
>I hope and waiting for your reply,
>
>Following are my configurations:
>
>   Internet
>      |
>      |
>      | fa0/1 ip: x.x.x.1/30
> __________________
>|            
>      |
>|    Cisco 7206      
>    |
>|      Router      
>     |
>|__________________|
>      | fa0/0 ip: y.y.y.2/24
>      |
>      |
>      |      
>          
>          
>       em0 ip: y.y.y.125/24
> __________________          
>       ____________________
>|            
>      |    
>        |  
>          
>      |
>|   Cisco Switch   |-------------|   Squid 2.6
>Cache  |
>|            
>          
>  |        
>    |     FreeBSD 6.2
>   |
>|__________________|            
> |____________________|
>      |
>      |
>      |
>  Clients and customers
>     Ip: y.y.y.0/24
>
>
>

Высказать мнение | Ответить | Правка | Наверх | Cообщить модератору

Архив | Удалить

Индекс форумов | Темы | Пред. тема | След. тема
Оцените тред (1=ужас, 5=супер)? [ 1 | 2 | 3 | 4 | 5 ] [Рекомендовать для помещения в FAQ]




Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2024 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру