relayd crashing after "header append" added

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

relayd crashing after "header append" added

Keith-125
Hi, I recently added a "header append "$REMOTE_ADDR" to
"X-Forwarded-For" to my relayd.conf file and since adding that line the
relayd service has died a number of times.
I tried adding the "no splice" option and I think relayd stayed up for
longer but it died again last night. Relayd seesm to stay up for a
random about of time before stopping, from a few hours to a few days.
Does anyone know what might be causing this to happen and if there's a
workaround ?


Mar 19 19:14:15 NodeC relayd[23062]: hce exiting, pid 23062
Mar 19 19:14:15 NodeC relayd[12415]: pfe exiting, pid 12415
Mar 19 19:14:15 NodeC relayd[30965]: relay exiting, pid 30965
Mar 19 19:14:15 NodeC relayd[30994]: relay exiting, pid 30994
Mar 19 19:14:15 NodeC relayd[19179]: relay exiting, pid 19179
Mar 19 19:14:15 NodeC relayd[19774]: relay exiting, pid 19774
Mar 19 19:14:15 NodeC relayd[26432]: parent terminating, pid 26432


table <web_hosts>    { xxx.xxx.xxx.35, xxx.xxx.xxx.36 }
interval 60
timeout 8000
prefork 5
#log updates

protocol "tcp_service" { tcp { nodelay, socket buffer 65536 backlog 100 } }

http protocol "http_service" { tcp { nodelay, sack, socket buffer 65536,
no splice, backlog 1000 }
# header append "$REMOTE_ADDR" to "X-Forwarded-For"
  return error
}

redirect "http_Main" {
   listen on yyy.yyy.yyy.62 port  80 interface vlanXX
   listen on yyy.yyy.yyy.63 port  80 interface vlanXX
   match tag http_Main
   forward to <web_hosts>  port  82 check http "/" code 200
}
redirect "https_Main" {
   listen on yyy.yyy.yyy.62 port 443 interface vlanXX
   match tag https_Main
   forward to <web_hosts>  port 443 check tcp
}
redirect "https_Only" {
   listen on yyy.yyy.yyy.63 port 443 interface vlanXX
   match tag https_Only
   forward to <web_hosts>  port 445 check tcp
}
relay "http_forwarder" {
   listen on 127.0.0.1 port 8080
   protocol "http_service"
   forward to <web_hosts> port 82 mode loadbalance check http "/" code 200
}
relay "SSL_Generic" {
   listen on 127.0.0.1 port 8441
   protocol "tcp_service"
   forward to <web_hosts> port  443 mode loadbalance check tcp
}
relay "SSL_Only" {
   listen on 127.0.0.1 port 8444
   protocol "tcp_service"
   forward to <web_hosts> port 445 mode loadbalance check tcp
}
################# Out Bound Services #####################################
relay "some_mssql_forwarder" {
         listen on 127.0.0.1 port 8143
         protocol "tcp_service"
         forward to 10.240.8.185 port 1433


Thanks
Keith

Reply | Threaded
Open this post in threaded view
|

Re: relayd crashing after "header append" added

Sebastian Benoit
Keith([hidden email]) on 2014.03.20 15:45:47 +0000:
> Does anyone know what might be causing this to happen and if there's a
> workaround ?

possibly, but your report is lacking a dmesg.

Reply | Threaded
Open this post in threaded view
|

Re: relayd crashing after "header append" added

Keith-125
Sorry forgot at include my dmesg.......

OpenBSD 5.4 (GENERIC.MP) #41: Tue Jul 30 15:30:02 MDT 2013
[hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 4268331008 (4070MB)
avail mem = 4146982912 (3954MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xbf79c000 (66 entries)
bios0: vendor Dell Inc. version "1.11.0" date 09/18/2012
bios0: Dell Inc. PowerEdge R310
acpi0 at bios0: rev 2
acpi0: sleep states S0 S4 S5
acpi0: tables DSDT FACP APIC SPCR HPET DM__ MCFG WDAT SLIC ERST HEST
BERT EINJ TCPA SSDT
acpi0: wakeup devices PCI0(S5) USBA(S0) USBB(S0)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Xeon(R) CPU X3430 @ 2.40GHz, 2394.28 MHz
cpu0:
FPU,VME,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,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,LONG,LAHF,PERF,ITSC
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
cpu0: apic clock running at 132MHz
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Xeon(R) CPU X3430 @ 2.40GHz, 2393.99 MHz
cpu1:
FPU,VME,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,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,LONG,LAHF,PERF,ITSC
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 4 (application processor)
cpu2: Intel(R) Xeon(R) CPU X3430 @ 2.40GHz, 2393.99 MHz
cpu2:
FPU,VME,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,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,LONG,LAHF,PERF,ITSC
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 0, core 2, package 0
cpu3 at mainbus0: apid 6 (application processor)
cpu3: Intel(R) Xeon(R) CPU X3430 @ 2.40GHz, 2393.99 MHz
cpu3:
FPU,VME,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,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,LONG,LAHF,PERF,ITSC
cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 0, core 3, package 0
ioapic0 at mainbus0: apid 0 pa 0xfec00000, version 20, 24 pins
acpihpet0 at acpi0: 14318179 Hz
acpimcfg0 at acpi0 addr 0xe0000000, bus 0-255
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 4 (LYD0)
acpiprt2 at acpi0: bus 5 (LYD2)
acpiprt3 at acpi0: bus -1 (HVD0)
acpiprt4 at acpi0: bus -1 (HVD2)
acpiprt5 at acpi0: bus 3 (PEX0)
acpiprt6 at acpi0: bus -1 (PEX2)
acpiprt7 at acpi0: bus -1 (PEX3)
acpiprt8 at acpi0: bus 2 (PEX4)
acpiprt9 at acpi0: bus 1 (COMP)
acpicpu0 at acpi0: C3, C1, PSS
acpicpu1 at acpi0: C3, C1, PSS
acpicpu2 at acpi0: C3, C1, PSS
acpicpu3 at acpi0: C3, C1, PSS
ipmi at mainbus0 not configured
cpu0: Enhanced SpeedStep 2394 MHz: speeds: 2395, 2394, 2261, 2128, 1995,
1862, 1729, 1596, 1463, 1330, 1197 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Core DMI" rev 0x11
ppb0 at pci0 dev 3 function 0 "Intel Core PCIE" rev 0x11: msi
pci1 at ppb0 bus 4
bnx0 at pci1 dev 0 function 0 "Broadcom BCM5709" rev 0x20: apic 0 int 16
bnx1 at pci1 dev 0 function 1 "Broadcom BCM5709" rev 0x20: apic 0 int 17
ppb1 at pci0 dev 5 function 0 "Intel Core PCIE" rev 0x11: msi
pci2 at ppb1 bus 5
"Intel Core Management" rev 0x11 at pci0 dev 8 function 0 not configured
"Intel Core Scratch" rev 0x11 at pci0 dev 8 function 1 not configured
"Intel Core Control" rev 0x11 at pci0 dev 8 function 2 not configured
"Intel Core Misc" rev 0x11 at pci0 dev 8 function 3 not configured
"Intel Core QPI Link" rev 0x11 at pci0 dev 16 function 0 not configured
"Intel Core QPI Routing" rev 0x11 at pci0 dev 16 function 1 not configured
ehci0 at pci0 dev 26 function 0 "Intel 3400 USB" rev 0x05: apic 0 int 22
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb2 at pci0 dev 28 function 0 "Intel 3400 PCIE" rev 0x05
pci3 at ppb2 bus 3
ppb3 at pci0 dev 28 function 4 "Intel 3400 PCIE" rev 0x05
pci4 at ppb3 bus 2
bnx2 at pci4 dev 0 function 0 "Broadcom BCM5716" rev 0x20: apic 0 int 16
bnx3 at pci4 dev 0 function 1 "Broadcom BCM5716" rev 0x20: apic 0 int 17
ehci1 at pci0 dev 29 function 0 "Intel 3400 USB" rev 0x05: apic 0 int 22
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb4 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0xa5
pci5 at ppb4 bus 1
vga1 at pci5 dev 3 function 0 "Matrox MGA G200eW" rev 0x0a
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
pcib0 at pci0 dev 31 function 0 "Intel 3420 LPC" rev 0x05
pciide0 at pci0 dev 31 function 2 "Intel 3400 SATA" rev 0x05: DMA,
channel 0 configured to native-PCI, channel 1 configured to native-PCI
pciide0: using apic 0 int 20 for native-PCI interrupt
wd0 at pciide0 channel 0 drive 0: <WDC WD2502ABYS-18B7A0>
wd0: 16-sector PIO, LBA48, 238418MB, 488281250 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 6
pciide1 at pci0 dev 31 function 5 "Intel 3400 SATA" rev 0x05: DMA,
channel 0 wired to native-PCI, channel 1 wired to native-PCI
pciide1: using apic 0 int 21 for native-PCI interrupt
atapiscsi0 at pciide1 channel 0 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <TEAC, DVD-ROM DV-28SW, R.2A> ATAPI
5/cdrom removable
cd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 5
isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5
kbc: cmd word write error
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
mtrr: Pentium Pro MTRR support
uhub2 at uhub0 port 1 "Intel Rate Matching Hub" rev 2.00/0.00 addr 2
uhub3 at uhub2 port 1 "Standard Microsystems product 0x2514" rev
2.00/0.00 addr 3
uhub4 at uhub1 port 1 "Intel Rate Matching Hub" rev 2.00/0.00 addr 2
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
root on wd0a (0f67dd1db00a9bce.a) swap on wd0b dump on wd0b
bnx0: address 00:0a:f7:3a:44:c4
brgphy0 at bnx0 phy 1: BCM5709 10/100/1000baseT PHY, rev. 8
bnx1: address 00:0a:f7:3a:44:c6
brgphy1 at bnx1 phy 1: BCM5709 10/100/1000baseT PHY, rev. 8
bnx2: address 78:2b:cb:00:ec:ed
brgphy2 at bnx2 phy 1: BCM5709 10/100/1000baseT PHY, rev. 8
bnx3: address 78:2b:cb:00:ec:ee
brgphy3 at bnx3 phy 1: BCM5709 10/100/1000baseT PHY, rev. 8
carp1: state transition: BACKUP -> MASTER
carp2: state transition: BACKUP -> MASTER


On 20/03/14 16:12, Sebastian Benoit wrote:
> Keith([hidden email]) on 2014.03.20 15:45:47 +0000:
>> Does anyone know what might be causing this to happen and if there's a
>> workaround ?
> possibly, but your report is lacking a dmesg.