Hi all, I have a problem with ftp-proxy on a OpenBSD 3.9-GENERIC (release) gateway - sometimes it suddenly dies for no apparent reason. I have enabled the highest debug level but the log tells me nothing. Any help is appreciated.
ftp-proxy is started through rc.conf: ftpproxy_flags="-a external-ip -t 7200 -D 7" In pf.conf it is used like this: [...] # 6. TRANSLATION [...] # 6.x FTP THROUGH FTP-PROXY nat-anchor "ftp-proxy/*" rdr-anchor "ftp-proxy/*" rdr on $internal_if proto tcp from any to ! <lans> port 21 -> \ 127.0.0.1 port 8021 [...] # 7. PACKET FILTERING [...] # 7.y FTP-PROXY ANCHOR anchor "ftp-proxy/*" I have attached: - ftp-proxy-fix: Small, stupid script that are run from cron to restart ftp-proxy when it has died. - ftp-proxy-fix-mail: A mail sent by the ftp-proxy-fix script when it was run on the 4th of July at 17:05:01 +0200 (CEST) (due to ftp-proxy not running). - messages: Excerpt from the syslog around that time. - dmesg: Just a plain dmesg from last boot. I haven't been doing any kernel fiddling or system upgrading yet. It is a fresh install from a 3.9 cd set. -Martin Date: Tue, 4 Jul 2006 17:05:01 +0200 (CEST) From: Charlie Root <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: ftp-proxy-fix This is the /root/ftp-proxy-fix script at gw.domain-x. ftp-proxy does NOT run at the moment! Since I am your friend, I will start it for you now. Have a nice day. #!/bin/ksh PS_OUTPUT=`ps ax | grep '/usr/sbin/ftp-proxy' | grep -v grep` if [ "$PS_OUTPUT" = "" ]; then echo -e 'This is the /root/ftp-proxy-fix script at gw.obelnet.dk.\n\n' \ 'ftp-proxy does NOT run at the moment! Since I am your friend, I will\n' \ 'start it for you now.\n\nHave a nice day.' | mail -s 'ftp-proxy-fix' \ [EMAIL PROTECTED] /usr/sbin/ftp-proxy -a 130.225.243.84 -t 7200 -D 7 fi Jul 4 16:31:48 gw ftp-proxy[14182]: #14688 client command too long or not clean Jul 4 16:32:32 gw ftp-proxy[14182]: #14689 client command too long or not clean Jul 4 16:33:15 gw ftp-proxy[14182]: #14690 client command too long or not clean Jul 4 16:40:47 gw ftp-proxy[14182]: #14691 server timeout Jul 4 16:41:18 gw ftp-proxy[14182]: #14692 server timeout Jul 4 16:41:48 gw ftp-proxy[14182]: #14693 server timeout Jul 4 16:42:18 gw ftp-proxy[14182]: #14695 server timeout Jul 4 16:42:48 gw ftp-proxy[14182]: #14696 server timeout Jul 4 17:05:01 gw ftp-proxy: using 130.225.243.84 to connect to servers Jul 4 17:05:01 gw ftp-proxy[8287]: listening on 127.0.0.1 port 8021 Jul 4 17:10:11 gw ftp-proxy[8287]: #1 client command too long or not clean Jul 4 17:12:07 gw ftp-proxy[8287]: #2 client command too long or not clean OpenBSD 3.9 (GENERIC) #617: Thu Mar 2 02:26:48 MST 2006 [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC cpu0: Intel(R) Pentium(R) 4 CPU 3.00GHz ("GenuineIntel" 686-class) 3.01 GHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,CNXT-ID real mem = 1072996352 (1047848K) avail mem = 972369920 (949580K) using 4278 buffers containing 53751808 bytes (52492K) of memory mainbus0 (root) bios0 at mainbus0: AT/286+(00) BIOS, date 10/01/04, BIOS32 rev. 0 @ 0xf0010 apm0 at bios0: Power Management spec V1.2 apm0: AC on, battery charge unknown apm0: flags 30102 dobusy 0 doidle 1 pcibios0 at bios0: rev 2.1 @ 0xf0000/0x10000 pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf5de0/256 (14 entries) pcibios0: PCI Interrupt Router at 000:31:0 ("Intel 82801EB/ER LPC" rev 0x00) pcibios0: PCI bus #2 is the last bus bios0: ROM list: 0xc0000/0x10000 cpu0 at mainbus0 pci0 at mainbus0 bus 0: configuration mode 1 (no bios) pchb0 at pci0 dev 0 function 0 "Intel 82865G/PE/P CPU-I/0-1" rev 0x02 ppb0 at pci0 dev 1 function 0 "Intel 82865G/PE/P CPU-AGP" rev 0x02 pci1 at ppb0 bus 1 vga1 at pci1 dev 0 function 0 "ATI Radeon VE QY" rev 0x00 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) uhci0 at pci0 dev 29 function 0 "Intel 82801EB/ER USB" rev 0x02: irq 10 usb0 at uhci0: USB revision 1.0 uhub0 at usb0 uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhci1 at pci0 dev 29 function 1 "Intel 82801EB/ER USB" rev 0x02: irq 3 usb1 at uhci1: USB revision 1.0 uhub1 at usb1 uhub1: Intel UHCI root hub, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered uhci2 at pci0 dev 29 function 2 "Intel 82801EB/ER USB" rev 0x02: irq 5 usb2 at uhci2: USB revision 1.0 uhub2 at usb2 uhub2: Intel UHCI root hub, rev 1.00/1.00, addr 1 uhub2: 2 ports with 2 removable, self powered uhci3 at pci0 dev 29 function 3 "Intel 82801EB/ER USB" rev 0x02: irq 10 usb3 at uhci3: USB revision 1.0 uhub3 at usb3 uhub3: Intel UHCI root hub, rev 1.00/1.00, addr 1 uhub3: 2 ports with 2 removable, self powered ehci0 at pci0 dev 29 function 7 "Intel 82801EB/ER USB2" rev 0x02: irq 11 usb4 at ehci0: USB revision 2.0 uhub4 at usb4 uhub4: Intel EHCI root hub, rev 2.00/1.00, addr 1 uhub4: 8 ports with 8 removable, self powered ppb1 at pci0 dev 30 function 0 "Intel 82801BA AGP" rev 0xc2 pci2 at ppb1 bus 2 skc0 at pci2 dev 5 function 0 "Marvell Yukon 88E8001/8003/8010" rev 0x13, Marvell Yukon Lite rev. A3 (0x7): irq 7 sk0 at skc0 port A, address xx:xx:xx:xx:xx:xx eephy0 at sk0 phy 0: Marvell 88E1011 Gigabit PHY, rev. 5 xl0 at pci2 dev 12 function 0 "3Com 3c905B 100Base-TX" rev 0x30: irq 4, address xx:xx:xx:xx:xx:xx exphy0 at xl0 phy 24: 3Com internal media interface xl1 at pci2 dev 13 function 0 "3Com 3c905B 100Base-TX" rev 0x30: irq 6, address xx:xx:xx:xx:xx:xx exphy1 at xl1 phy 24: 3Com internal media interface ichpcib0 at pci0 dev 31 function 0 "Intel 82801EB/ER LPC" rev 0x02 pciide0 at pci0 dev 31 function 1 "Intel 82801EB/ER IDE" rev 0x02: DMA, channel 0 configured to compatibility, channel 1 configured to compatibility wd0 at pciide0 channel 0 drive 0: <Maxtor 6E040L0> wd0: 16-sector PIO, LBA, 39205MB, 80293248 sectors wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5 wd1 at pciide0 channel 1 drive 0: <Maxtor 6E040L0> wd1: 16-sector PIO, LBA, 39205MB, 80293248 sectors atapiscsi0 at pciide0 channel 1 drive 1 scsibus0 at atapiscsi0: 2 targets cd0 at scsibus0 targ 0 lun 0: <JLMS, XJ-HD165H, CH11> SCSI0 5/cdrom removable wd1(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 5 cd0(pciide0:1:1): using PIO mode 4, Ultra-DMA mode 2 ichiic0 at pci0 dev 31 function 3 "Intel 82801EB/ER SMBus" rev 0x02: irq 10 iic0 at ichiic0 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 lm0 at isa0 port 0x290/8: W83627THF npx0 at isa0 port 0xf0/16: using exception 16 biomask ff2d netmask fffd ttymask ffff pctr: user-level cycle counter enabled dkcsum: wd0 matches BIOS drive 0x80 wd1: no disk label dkcsum: wd1 matches BIOS drive 0x81 root on wd0a rootdev=0x0 rrootdev=0x300 rawdev=0x302