Re: relayd crashing after "header append" added

2014-03-20 Thread Keith

Sorry forgot at include my dmesg...

OpenBSD 5.4 (GENERIC.MP) #41: Tue Jul 30 15:30:02 MDT 2013
dera...@amd64.openbsd.org:/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 0xfee0: 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 0xfec0, version 20, 24 pins
acpihpet0 at acpi0: 14318179 Hz
acpimcfg0 at acpi0 addr 0xe000, 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 nat

Re: relayd crashing after "header append" added

2014-03-20 Thread Sebastian Benoit
Keith(ke...@scott-land.net) on 2014.03.20 15:45:47 +:
> Does anyone know what might be causing this to happen and if there's a 
> workaround ?

possibly, but your report is lacking a dmesg.



relayd crashing after "header append" added

2014-03-20 Thread Keith
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 { 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   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   port 443 check tcp
}
redirect "https_Only" {
   listen on yyy.yyy.yyy.63 port 443 interface vlanXX
   match tag https_Only
   forward to   port 445 check tcp
}
relay "http_forwarder" {
   listen on 127.0.0.1 port 8080
   protocol "http_service"
   forward to  port 82 mode loadbalance check http "/" code 200
}
relay "SSL_Generic" {
   listen on 127.0.0.1 port 8441
   protocol "tcp_service"
   forward to  port  443 mode loadbalance check tcp
}
relay "SSL_Only" {
   listen on 127.0.0.1 port 8444
   protocol "tcp_service"
   forward to  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