Hello.

        I have a quite strange problem with my home router. It
has 4 NICs, which are configured as follows:
# ifconfig -a                                                                   
                                                                                
                  
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33224
        groups: lo
        inet 127.0.0.1 netmask 0xff000000
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x7
sis0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        lladdr 00:11:5b:50:ef:ec
        groups: egress
        media: Ethernet autoselect (100baseTX full-duplex)
        status: active
        inet 192.168.1.2 netmask 0xffffff00 broadcast 192.168.1.255
        inet6 fe80::211:5bff:fe50:efec%sis0 prefixlen 64 scopeid 0x1
ath0: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        lladdr 00:0f:3d:a9:2b:92
        groups: wlan
        media: IEEE802.11 autoselect mode 11b hostap
        status: active
        ieee80211: nwid waagh chan 3 bssid 00:0f:3d:a9:2b:92
        inet 10.0.4.1 netmask 0xffffff00 broadcast 10.0.4.255
        inet6 fe80::20f:3dff:fea9:2b92%ath0 prefixlen 64 scopeid 0x2
ath1: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        lladdr 00:0f:3d:ac:69:74
        groups: wlan
        media: IEEE802.11 autoselect mode 11b (DS1 mode 11b)
        status: no network
        ieee80211: nwid aga
        inet 10.0.10.1 netmask 0xffffff00 broadcast 10.0.10.255
        inet6 fe80::20f:3dff:feac:6974%ath1 prefixlen 64 scopeid 0x3
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        lladdr 00:50:da:37:c3:6c
        media: Ethernet 10base2
        status: active
        inet 10.0.1.1 netmask 0xffffffe0 broadcast 10.0.1.31
        inet6 fe80::250:daff:fe37:c36c%xl0 prefixlen 64 scopeid 0x4
pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33224
enc0: flags=0<> mtu 1536

The problem is that ath1 card does not see the access point which
has address 10.0.10.254. However its entry is automatically inserted
into arp table:

# arp -an
? (10.0.1.20) at 00:e0:7d:a4:00:2e on xl0
? (10.0.1.24) at 00:10:a7:0e:59:98 on xl0
? (10.0.4.2) at 00:0f:3d:ad:49:3c on ath0
? (10.0.10.12) at 00:0a:e4:b8:3d:da on ath1
? (10.0.10.254) at 00:80:c8:38:c7:7e on ath1
? (192.168.1.1) at 00:15:56:0c:74:11 on sis0
? (192.168.1.2) at 00:11:5b:50:ef:ec on sis0 static
? (192.168.1.4) at 00:14:a5:a0:0d:76 on sis0


Moreover when I run tcpdump on this interface it shows:
# tcpdump -i ath1
20:29:48.367881 arp who-has 10.0.10.1 tell 10.0.10.12
20:29:57.823184 arp who-has 10.0.10.1 tell 10.0.10.12
20:30:09.189659 arp who-has 10.0.10.1 tell 10.0.10.12
but my machine does not respond. Occasionaly something like 
this also appears:
20:01:53.958274 10.0.4.1.domain > 10.0.5.2.32768: 14587 1/4/4 A 
dbm-uc.verisign.net (193)
What do these packets do on ath1 interface?

If I try to ping 10.0.10.12 tcpdump does not show any 
packets going trough ath1 interface (I also checked with pf disabled
of course).

Thank you any help.

Output of route command and dmeg output and pf configutarion follow:

# pfctl -s all
TRANSLATION RULES:
nat-anchor "ftp-proxy/*" all
nat on sis0 from ! (sis0:0) to any -> (sis0:0)
rdr-anchor "ftp-proxy/*" all
rdr pass on sis0 inet proto tcp from any to any port = ftp -> 127.0.0.1 port 
8021

FILTER RULES:
No queue in use

STATES:
....

INFO:
Status: Enabled for 0 days 00:36:04           Debug: Urgent

State Table                          Total             Rate
  current entries                      198               
  searches                          293362          135.6/s
  inserts                             5276            2.4/s
  removals                            5078            2.3/s
Counters
  match                             160749           74.3/s
  bad-offset                             0            0.0/s
  fragment                               0            0.0/s
  short                                  0            0.0/s
  normalize                              0            0.0/s
  memory                                 0            0.0/s
  bad-timestamp                          0            0.0/s
  congestion                             0            0.0/s
  ip-option                              0            0.0/s
  proto-cksum                           21            0.0/s
  state-mismatch                         9            0.0/s
  state-insert                           0            0.0/s
  state-limit                            0            0.0/s
  src-limit                              0            0.0/s
  synproxy                               0            0.0/s

TIMEOUTS:
tcp.first                   120s
tcp.opening                  30s
tcp.established           86400s
tcp.closing                 900s
tcp.finwait                  45s
tcp.closed                   90s
tcp.tsdiff                   30s
udp.first                    60s
udp.single                   30s
udp.multiple                 60s
icmp.first                   20s
icmp.error                   10s
other.first                  60s
other.single                 30s
other.multiple               60s
frag                         30s
interval                     10s
adaptive.start             6000 states
adaptive.end              12000 states
src.track                     0s

LIMITS:
states        hard limit    10000
src-nodes     hard limit    10000
frags         hard limit     5000
tables        hard limit     1000
table-entries hard limit   200000

TABLES:

OS FINGERPRINTS:
696 fingerprints loaded
Routing tables

# route -n show
Internet:
Destination        Gateway            Flags    Refs      Use    Mtu  Interface
default            192.168.1.1        UGS         8    73104      -   sis0
10.0.1.0/27        link#4             UC          2        0      -   xl0
10.0.1.20          00:e0:7d:a4:00:2e  UHLc        3    73903      -   xl0
10.0.1.24          00:10:a7:0e:59:98  UHLc        1      192      -   xl0
10.0.4/24          link#2             UC          1        0      -   ath0
10.0.4.2           00:0f:3d:ad:49:3c  UHLc        3        8      -   ath0
10.0.5/24          10.0.4.2           UGS         1      221      -   ath0
10.0.6/24          10.0.4.2           UGS         0        0      -   ath0
10.0.7/24          10.0.4.2           UGS         0        0      -   ath0
10.0.10/24         link#3             UC          2        0      -   ath1
10.0.10.12         00:0a:e4:b8:3d:da  UHLc        0        0      -   ath1
10.0.10.254        00:80:c8:38:c7:7e  UHLc        0        0      -   ath1
127/8              127.0.0.1          UGRS        0        0  33224   lo0
127.0.0.1          127.0.0.1          UH          1        0  33224   lo0
192.168.1/24       link#1             UC          3        0      -   sis0
192.168.1.1        00:15:56:0c:74:11  UHLc        1        0      -   sis0
192.168.1.2        00:11:5b:50:ef:ec  UHLc        0       30      -   lo0
192.168.1.4        00:14:a5:a0:0d:76  UHLc        1     1474      -   sis0
224/4              127.0.0.1          URS         0        0  33224   lo0

Internet6:
Destination                        Gateway                        Flags    Refs 
     Use    Mtu  Interface
::/104                             ::1                            UGRS        0 
       0      -   lo0
::/96                              ::1                            UGRS        0 
       0      -   lo0
::1                                ::1                            UH         14 
       0  33224   lo0
::127.0.0.0/104                    ::1                            UGRS        0 
       0      -   lo0
::224.0.0.0/100                    ::1                            UGRS        0 
       0      -   lo0
::255.0.0.0/104                    ::1                            UGRS        0 
       0      -   lo0
::ffff:0.0.0.0/96                  ::1                            UGRS        0 
       0      -   lo0
2002::/24                          ::1                            UGRS        0 
       0      -   lo0
2002:7f00::/24                     ::1                            UGRS        0 
       0      -   lo0
2002:e000::/20                     ::1                            UGRS        0 
       0      -   lo0
2002:ff00::/24                     ::1                            UGRS        0 
       0      -   lo0
fe80::/10                          ::1                            UGRS        0 
       0      -   lo0
fe80::%sis0/64                     link#1                         UC          0 
       0      -   sis0
fe80::211:5bff:fe50:efec%sis0      00:11:5b:50:ef:ec              UHL         0 
       0      -   lo0
fe80::%ath0/64                     link#2                         UC          0 
       0      -   ath0
fe80::20f:3dff:fea9:2b92%ath0      00:0f:3d:a9:2b:92              UHL         0 
       0      -   lo0
fe80::%ath1/64                     link#3                         UC          0 
       0      -   ath1
fe80::20f:3dff:feac:6974%ath1      00:0f:3d:ac:69:74              UHL         0 
       0      -   lo0
fe80::%xl0/64                      link#4                         UC          0 
       0      -   xl0
fe80::250:daff:fe37:c36c%xl0       00:50:da:37:c3:6c              UHL         0 
       0      -   lo0
fe80::%lo0/64                      fe80::1%lo0                    U           0 
       0      -   lo0
fe80::1%lo0                        link#7                         UHL         0 
       0      -   lo0
fec0::/10                          ::1                            UGRS        0 
       0      -   lo0
ff01::/16                          ::1                            UGRS        0 
       0      -   lo0
ff01::%sis0/32                     link#1                         UC          0 
       0      -   sis0
ff01::%ath0/32                     link#2                         UC          0 
       0      -   ath0
ff01::%ath1/32                     link#3                         UC          0 
       0      -   ath1
ff01::%xl0/32                      link#4                         UC          0 
       0      -   xl0
ff01::%lo0/32                      ::1                            UC          0 
       0      -   lo0
ff02::/16                          ::1                            UGRS        0 
       0      -   lo0
ff02::%sis0/32                     link#1                         UC          0 
       0      -   sis0
ff02::%ath0/32                     link#2                         UC          0 
       0      -   ath0
ff02::%ath1/32                     link#3                         UC          0 
       0      -   ath1
ff02::%xl0/32                      link#4                         UC          0 
       0      -   xl0
ff02::%lo0/32                      ::1                            UC          0 
       0      -   lo0


# dmesg
OpenBSD 4.1 (GENERIC) #1435: Sat Mar 10 19:07:45 MST 2007
    [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: AMD Athlon(tm) XP 2000+ ("AuthenticAMD" 686-class, 256KB L2 cache) 1.67 
GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
real mem  = 234385408 (228892K)
avail mem = 206200832 (201368K)
using 2891 buffers containing 11841536 bytes (11564K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+ BIOS, date 08/19/04, BIOS32 rev. 0 @ 0xfb490, SMBIOS 
rev. 2.2 @ 0xf0000 (33 entries)
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
apm0: flags 70102 dobusy 1 doidle 1
pcibios0 at bios0: rev 2.1 @ 0xf0000/0xdef4
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfde60/144 (7 entries)
pcibios0: PCI Exclusive IRQs: 3 4 5 6 7 9 10 11
pcibios0: PCI Interrupt Router at 000:02:0 ("SiS 85C503 System" rev 0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc0000/0x8000 0xc8000/0x8000!
acpi at mainbus0 not configured
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "SiS 741 PCI" rev 0x03
ppb0 at pci0 dev 1 function 0 "SiS 648FX AGP" rev 0x00
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "SiS 6330 VGA" rev 0x00: aperture at 0xe0000000, 
size 0x400000
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
pcib0 at pci0 dev 2 function 0 "SiS 964 ISA" rev 0x36
pciide0 at pci0 dev 2 function 5 "SiS 5513 EIDE" rev 0x01: 741: DMA, channel 0 
configured to compatibility, channel 1 configured to compatibility
wd0 at pciide0 channel 0 drive 0: <WDC WD400JB-00JJA0>
wd0: 16-sector PIO, LBA, 38166MB, 78165360 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 disabled (no drives)
auich0 at pci0 dev 2 function 7 "SiS 7012 AC97" rev 0xa0: irq 10, SiS7012 AC97
ac97: codec id 0x414c4760 (Avance Logic ALC655 rev 0)
audio0 at auich0
ohci0 at pci0 dev 3 function 0 "SiS 5597/5598 USB" rev 0x0f: irq 6, version 
1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: SiS OHCI root hub, rev 1.00/1.00, addr 1
uhub0: 3 ports with 3 removable, self powered
ohci1 at pci0 dev 3 function 1 "SiS 5597/5598 USB" rev 0x0f: irq 9, version 
1.0, legacy support
usb1 at ohci1: USB revision 1.0
uhub1 at usb1
uhub1: SiS OHCI root hub, rev 1.00/1.00, addr 1
uhub1: 3 ports with 3 removable, self powered
ohci2 at pci0 dev 3 function 2 "SiS 5597/5598 USB" rev 0x0f: irq 4, version 
1.0, legacy support
usb2 at ohci2: USB revision 1.0
uhub2 at usb2
uhub2: SiS OHCI root hub, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 3 function 3 "SiS 7002 USB" rev 0x00: irq 3
usb3 at ehci0: USB revision 2.0
uhub3 at usb3
uhub3: SiS EHCI root hub, rev 2.00/1.00, addr 1
uhub3: 8 ports with 8 removable, self powered
sis0 at pci0 dev 4 function 0 "SiS 900 10/100BaseTX" rev 0x91: irq 11, address 
00:11:5b:50:ef:ec
rlphy0 at sis0 phy 1: RTL8201L 10/100 PHY, rev. 1
ath0 at pci0 dev 9 function 0 "Atheros AR5212" rev 0x01: irq 5
ath0: AR5213 5.9 phy 4.3 rf2112a 4.6, FCC2A*, address 00:0f:3d:a9:2b:92
ath1 at pci0 dev 10 function 0 "Atheros AR5212" rev 0x01: irq 10
ath1: AR5213 5.9 phy 4.3 rf2112a 4.6, FCC1A, address 00:0f:3d:ac:69:74
xl0 at pci0 dev 11 function 0 "3Com 3c900B 10Mbps-Combo" rev 0x04: irq 11, 
address 00:50:da:37:c3:6c
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
it0 at isa0 port 0x290/8: IT87
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
biomask f3dd netmask fffd ttymask ffff
pctr: user-level cycle counter enabled
mtrr: Pentium Pro MTRR support
dkcsum: wd0 matches BIOS drive 0x80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302

Reply via email to