Hi all,

first of all, sorry for my english (it's not my first language, but
i'm trying to learn)

i have two testing firewalls running OpenBSD 4.3 -release (fresh
install), with carp and pfsync configured and working.
I was trying to configure relayd, so i halted one of the firewalls and
play with the other. I found that when i disable one host with
'relayctl host disable' and then enable it, relayd exits a few moments
later (it seems that the problem is passing the host from the state
unknown to active).

I've tried to find if there was people with the same error and found
various threads but none of them was solved. Should i report it as a
bug (i didn't find it)? It's just that i did not configure it right? (as
you can see below, the configuration is minimal)

Thanks!
David


(attached the output of relayd, relayctl, dmesg, my relayd.conf, my
pf.conf, and my hostname.* files)

a screenshot of the relayd process:
-----------------------------------------------------------------------
[EMAIL PROTECTED]:~]# relayd -d -vvv
startup
init_filter: filter init done
relay_privinit: adding relay web
init_tables: created 0 tables
protocol 0: name default
hce_notify_done: 192.168.4.11 (recv_icmp: done)
        flags: 0x0004
host 192.168.4.11, check icmp (0ms), state unknown -> up, \
                                                availability 100.00%
        type: pfe_dispatch_imsg: state 1 for host 5 192.168.4.11
tcp
hce_notify_done: 192.168.4.12 (recv_icmp: done)
relay_init: max open files 1024
host 192.168.4.12, check icmp (0ms), state unknown -> up, \
                                                availability 100.00%
relay_init: max open files 1024
relay_init: max open files 1024
relay_init: max open files 1024
relay_init: max open files 1024
adding 3 hosts from table pruebas:80
pfe_dispatch_imsg: state 1 for host 4 192.168.4.12
adding 3 hosts from table pruebas:80
adding 3 hosts from table pruebas:80
adding 3 hosts from table pruebas:80
adding 3 hosts from table pruebas:80
relay_launch: running relay web
hce_notify_done: 192.168.4.13 (recv_icmp: done)
relay_launch: running relay web
relay_launch: running relay web
relay_launch: running relay web
relay_launch: running relay web
host 192.168.4.13, check icmp (0ms), state unknown -> up, \
                                                availability 100.00%
pfe_dispatch_imsg: state 1 for host 3 192.168.4.13
hce_notify_done: 192.168.4.11 (recv_icmp: done)
hce_notify_done: 192.168.4.12 (recv_icmp: done)
hce_notify_done: 192.168.4.13 (recv_icmp: done)
disable_host: disabled host 4
hce_notify_done: 192.168.4.11 (recv_icmp: done)
hce_notify_done: 192.168.4.13 (recv_icmp: done)
host 192.168.4.12, check icmp (0ms), state up -> down, \
                                                availability 0.00%
hce_notify_done: 192.168.4.11 (recv_icmp: done)
hce_notify_done: 192.168.4.13 (recv_icmp: done)
enable_host: enabled host 4
hce_notify_done: 192.168.4.11 (recv_icmp: done)
hce_notify_done: 192.168.4.12 (recv_icmp: done)
host 192.168.4.12, check icmp (0ms), state unknown -> up,  \
                                                availability 33.33%
pfe_dispatch_imsg: host 4 => 0
hce_notify_done: 192.168.4.13 (recv_icmp: done)
fatal: pfe_dispatch_imsg: desynchronized
host check engine exiting
check_child: lost child: pf update engine exited
socket relay engine exiting
socket relay engine exiting
socket relay engine exiting
socket relay engine exiting
socket relay engine exiting
terminating
-----------------------------------------------------------------------

and the relayctl in parallel:
-----------------------------------------------------------------------
[EMAIL PROTECTED]:~]# relayctl show summary
Id      Type     Name              Avlblty Status
0       relay    web                       active
1       table    pruebas:80                active (3 hosts up)
5       host     192.168.4.11      100.00% up
4       host     192.168.4.12      100.00% up
3       host     192.168.4.13      100.00% up
[EMAIL PROTECTED]:~]# relayctl host disable 4
command succeeded
[EMAIL PROTECTED]:~]# relayctl show summary
Id      Type     Name              Avlblty Status
0       relay    web                       active
1       table    pruebas:80                active (2 hosts up)
5       host     192.168.4.11      100.00% up
4       host     192.168.4.12              disabled
3       host     192.168.4.13      100.00% up
[EMAIL PROTECTED]:~]# relayctl host disable 4
command succeeded
[EMAIL PROTECTED]:~]# relayctl show summary
Id      Type     Name              Avlblty Status0
0       relay    web                       active
1       table    pruebas:80                active (2 hosts up)
5       host     192.168.4.11      100.00% up
4       host     192.168.4.12              disabled
3       host     192.168.4.13      100.00% up
[EMAIL PROTECTED]:~]# relayctl host enable 4
command succeeded
[EMAIL PROTECTED]:~]# relayctl show summary
Id      Type     Name              Avlblty Status
0       relay    web                       active
1       table    pruebas:80                active (2 hosts up)
5       host     192.168.4.11      100.00% up
4       host     192.168.4.12              unknown
3       host     192.168.4.13      100.00% up
[EMAIL PROTECTED]:~]# relayctl show summary
Id      Type     Name              Avlblty Status
0       relay    web                       active
1       table    pruebas:80                active (2 hosts up)
5       host     192.168.4.11      100.00% up
4       host     192.168.4.12              unknown
3       host     192.168.4.13      100.00% up
[EMAIL PROTECTED]:~]# relayctl show summary
relayctl: connect: /var/run/relayd.sock: No such file or directory
ext_addr="192.168.3.210"
prueba1="192.168.4.11"
prueba2="192.168.4.12"
prueba3="192.168.4.13"

table <pruebas> { $prueba1 $prueba2 $prueba3 }

relay "web" {
        listen on $ext_addr port 80
        forward to <pruebas> port 80 check icmp mode roundrobin
}
int_if="bnx0"
ext_if="bnx1"
rdr-anchor "relayd/*"
pass all
inet 192.168.4.1 255.255.255.0 192.168.4.255 vhid 1 carpdev bnx0 \
                                        pass prueba advbase 1 advskew 1
inet 192.168.3.210 255.255.255.0 192.168.3.255 vhid 2 carpdev bnx1 \
                                        pass prueba
inet 192.168.4.2 255.255.255.0 NONE
inet 192.168.3.211 255.255.255.0 NONE
up syncdev bnx0
[EMAIL PROTECTED]:~]# dmesg
OpenBSD 4.3 (GENERIC) #698: Wed Mar 12 11:07:05 MDT 2008
    [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Xeon(R) CPU E5430 @ 2.66GHz ("GenuineIntel" 686-class) \
                                                        2.67 GHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV, \
        PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF, \
        SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16,xTPR
real mem  = 3484319744 (3322MB)
avail mem = 3380543488 (3223MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 02/05/08, BIOS32 rev. 0 @ \
        0xffe90, SMBIOS rev. 2.5 @ 0xcfb9c000 (66 entries)
bios0: vendor Dell Inc. version "2.2.6" date 02/05/2008
bios0: Dell Inc. PowerEdge 2950
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP APIC SPCR HPET MCFG WD__ SLIC ERST HEST \
         BERT EINJ TCPA
acpi0: wakeup devices PCI0(S5)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 4 (PEX2)
acpiprt2 at acpi0: bus 5 (UPST)
acpiprt3 at acpi0: bus 6 (DWN1)
acpiprt4 at acpi0: bus 8 (DWN2)
acpiprt5 at acpi0: bus 1 (PEX3)
acpiprt6 at acpi0: bus 0 (PE2P)
acpiprt7 at acpi0: bus 10 (PEX4)
acpiprt8 at acpi0: bus 12 (PEX6)
acpiprt9 at acpi0: bus 13 (PXHA)
acpiprt10 at acpi0: bus 14 (PXHB)
acpiprt11 at acpi0: bus 2 (SBEX)
acpiprt12 at acpi0: bus 16 (COMP)
acpicpu0 at acpi0: C3
bios0: ROM list: 0xc0000/0x9000! 0xc9000/0x1000 0xca000/0x1e00 \
        0xcc000/0x5e00 0xec000/0x4000!
ipmi at mainbus0 not configured
cpu0 at mainbus0
cpu0: Enhanced SpeedStep disabled by BIOS
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 5000X Host" rev 0x12
ppb0 at pci0 dev 2 function 0 "Intel 5000 PCIE" rev 0x12
pci1 at ppb0 bus 4
ppb1 at pci1 dev 0 function 0 "Intel 6321ESB PCIE" rev 0x01
pci2 at ppb1 bus 5
ppb2 at pci2 dev 0 function 0 "Intel 6321ESB PCIE" rev 0x01
pci3 at ppb2 bus 6
ppb3 at pci3 dev 0 function 0 "ServerWorks PCIE-PCIX" rev 0xc3
pci4 at ppb3 bus 7
bnx0 at pci4 dev 0 function 0 "Broadcom BCM5708" rev 0x12: irq 6
ppb4 at pci2 dev 1 function 0 "Intel 6321ESB PCIE" rev 0x01
pci5 at ppb4 bus 8
ppb5 at pci1 dev 0 function 3 "Intel 6321ESB PCIE-PCIX" rev 0x01
pci6 at ppb5 bus 9
ppb6 at pci0 dev 3 function 0 "Intel 5000 PCIE" rev 0x12
pci7 at ppb6 bus 1
mfi0 at pci7 dev 0 function 0 "Symbios Logic SAS1078" rev 0x04: \
        irq 6, Dell PERC 6/i integrated
mfi0: logical drives 1, version 6.0.2-0002, 256MB RAM
scsibus0 at mfi0: 1 targets
sd0 at scsibus0 targ 0 lun 0: <DELL, PERC 6/i, 1.11> SCSI3 0/direct \
        fixed
sd0: 475648MB, 60636 cyl, 255 head, 63 sec, 512 bytes/sec, 974127104 \
        sec total
ppb7 at pci0 dev 4 function 0 "Intel 5000 PCIE x8" rev 0x12
pci8 at ppb7 bus 10
ppb8 at pci0 dev 5 function 0 "Intel 5000 PCIE" rev 0x12
pci9 at ppb8 bus 11
ppb9 at pci0 dev 6 function 0 "Intel 5000 PCIE x8" rev 0x12
pci10 at ppb9 bus 12
ppb10 at pci10 dev 0 function 0 "Intel PCIE-PCIE" rev 0x09
pci11 at ppb10 bus 13
ppb11 at pci10 dev 0 function 2 "Intel PCIE-PCIE" rev 0x09
pci12 at ppb11 bus 14
ppb12 at pci0 dev 7 function 0 "Intel 5000 PCIE" rev 0x12
pci13 at ppb12 bus 15
pchb1 at pci0 dev 16 function 0 "Intel 5000 Error Reporting" rev 0x12
pchb2 at pci0 dev 16 function 1 "Intel 5000 Error Reporting" rev 0x12
pchb3 at pci0 dev 16 function 2 "Intel 5000 Error Reporting" rev 0x12
pchb4 at pci0 dev 17 function 0 "Intel 5000 Reserved" rev 0x12
pchb5 at pci0 dev 19 function 0 "Intel 5000 Reserved" rev 0x12
pchb6 at pci0 dev 21 function 0 "Intel 5000 FBD" rev 0x12
pchb7 at pci0 dev 22 function 0 "Intel 5000 FBD" rev 0x12
ppb13 at pci0 dev 28 function 0 "Intel 6321ESB PCIE" rev 0x09
pci14 at ppb13 bus 2
ppb14 at pci14 dev 0 function 0 "ServerWorks PCIE-PCIX" rev 0xc3
pci15 at ppb14 bus 3
bnx1 at pci15 dev 0 function 0 "Broadcom BCM5708" rev 0x12: irq 6
uhci0 at pci0 dev 29 function 0 "Intel 6321ESB USB" rev 0x09: irq 11
uhci1 at pci0 dev 29 function 1 "Intel 6321ESB USB" rev 0x09: irq 10
uhci2 at pci0 dev 29 function 2 "Intel 6321ESB USB" rev 0x09: irq 11
uhci3 at pci0 dev 29 function 3 "Intel 6321ESB USB" rev 0x09: irq 10
ehci0 at pci0 dev 29 function 7 "Intel 6321ESB USB" rev 0x09: irq 11
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb15 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0xd9
pci16 at ppb15 bus 16
vga1 at pci16 dev 13 function 0 "ATI ES1000" rev 0x02
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
ichpcib0 at pci0 dev 31 function 0 "Intel 6321ESB LPC" rev 0x09: \
        PM disabled
pciide0 at pci0 dev 31 function 1 "Intel 6321ESB IDE" rev 0x09: DMA, \
        channel 0 configured to compatibility, channel 1 configured \
        to compatibility
atapiscsi0 at pciide0 channel 0 drive 0
scsibus1 at atapiscsi0: 2 targets
cd0 at scsibus1 targ 0 lun 0: <TEAC, DVD-ROM DV28EV, D.AE> SCSI0 \
        5/cdrom removable
cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 ignored (disabled)
usb1 at uhci0: USB revision 1.0
uhub1 at usb1 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb3 at uhci2: USB revision 1.0
uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb4 at uhci3: USB revision 1.0
uhub4 at usb4 "Intel UHCI root hub" rev 1.00/1.00 addr 1
isa0 at ichpcib0
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
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
biomask fde5 netmask fde5 ttymask ffe7
mtrr: Pentium Pro MTRR support
uhub5 at uhub0 port 5 "Cypress Semiconductor USB2 Hub" rev 2.00/0.0b \
        addr 2
softraid0 at root
root on sd0a swap on sd0b dump on sd0b
bnx1: address 00:1e:4f:37:94:0f
brgphy0 at bnx1 phy 1: BCM5708C 10/100/1000baseT PHY, rev. 6
bnx0: address 00:1e:4f:37:94:11
brgphy1 at bnx0 phy 1: BCM5708C 10/100/1000baseT PHY, rev. 6
-----------------------------------------------------------------------

Reply via email to