+ -
当前位置:首页 → 问答吧 → 关于proftpd+mysql的问题

关于proftpd+mysql的问题

时间:2004-03-17

来源:互联网

在使用过程中,使用如下方法:
ftp 127.0.0.1
正常,什么问题都没有
可是如果使用
ftp 218.*.*.*(我自己的ip地址)
速度非常慢,不能忍受。
使用nmap扫描的话出现如下错误:
limiting closed port rst resporst from 396 to 200 packets per second
并且ssh的登陆也是非常慢。总是超时。
想问一下有谁遇到过这样的问题吗 ?
请指教一二。

作者: Eg_zm   发布时间: 2004-03-17

谢谢了!

作者: Eg_zm   发布时间: 2004-03-17

能将内核配置, 上网方式说清楚些吗?

作者: rainren   发布时间: 2004-03-18

内核配置如下:
##################################3
machine i386
cpu I686_CPU
ident MYKERNEL
maxusers 0
debug symbols

options MATH_EMULATE #Support for x87 emulation
options INET #InterNETworking
options INET6 #IPv6 communications protocols
options FFS #Berkeley Fast Filesystem
options FFS_ROOT #FFS usable as root device [keep this!]
options SOFTUPDATES #Enable FFS soft updates support
options UFS_DIRHASH #Improve performance on big directories
options COMPAT_43 #Compatible with BSD 4.3 [KEEP THIS!]
options UCONSOLE #Allow users to grab the console
options USERCONFIG #boot -c editor
options VISUAL_USERCONFIG #visual boot -c editor
options KTRACE #ktrace(1) support
options SYSVSHM #SYSV-style shared memory
options SYSVMSG #SYSV-style message queues
options SYSVSEM #SYSV-style semaphores
options P1003_1B #Posix P1003_1B real-time extensions
options _KPOSIX_PRIORITY_SCHEDULING
options ICMP_BANDLIM #Rate limit bad replies
options KBD_INSTALL_CDEV # install a CDEV entry in /dev
options AHC_REG_PRETTY_PRINT # Print register bitfields in debug
# output. Adds ~128k to driver.
options AHD_REG_PRETTY_PRINT # Print register bitfields in debug
# output. Adds ~215k to driver.

device isa
device eisa
device pci

device ata0 at isa? port IO_WD1 irq 14
device ata1 at isa? port IO_WD2 irq 15
device ata
device atadisk # ATA disk drives
device atapicd # ATAPI CDROM drives
device atapist # ATAPI tape drives
options ATA_STATIC_ID #Static device numbering


# atkbdc0 controls both the keyboard and the PS/2 mouse
device atkbdc0 at isa? port IO_KBD
device atkbd0 at atkbdc? irq 1 flags 0x1
device psm0 at atkbdc? irq 12

device vga0 at isa?

# splash screen/screen saver
pseudo-device splash

# syscons is the default console driver, resembling an SCO console
device sc0 at isa? flags 0x100

device agp # support several AGP chipsets

# Floating point support - do not disable.
device npx0 at nexus? port IO_NPX irq 13

# Power management support (see LINT for more options)
device apm0 at nexus? disable flags 0x20 # Advanced Power Management
# PCCARD (PCMCIA) support
device card
device pcic0 at isa? irq 0 port 0x3e0 iomem 0xd0000
device pcic1 at isa? irq 0 port 0x3e2 iomem 0xd4000 disable

# Serial (COM) ports
device sio0 at isa? port IO_COM1 flags 0x10 irq 4
device sio1 at isa? port IO_COM2 irq 3
device sio2 at isa? disable port IO_COM3 irq 5
device sio3 at isa? disable port IO_COM4 irq 9

# Parallel port
device ppc0 at isa? irq 7
device ppbus # Parallel port bus (required)
#device lpt # Printer
device plip # TCP/IP over parallel
device ppi # Parallel port interface device
#device vpo # Requires scbus and da



device miibus # MII bus support
device dc # DEC/Intel 21143 and various workalikes
device rl # RealTek 8129/8139

# Pseudo devices - the number indicates how many units to allocate.
pseudo-device loop # Network loopback
pseudo-device ether # Ethernet support
pseudo-device sl 1 # Kernel SLIP
pseudo-device ppp 1 # Kernel PPP
pseudo-device tun # Packet tunnel.
pseudo-device pty # Pseudo-ttys (telnet etc)
pseudo-device md # Memory "disks"
pseudo-device gif # IPv6 and IPv4 tunneling
pseudo-device faith 1 # IPv6-to-IPv4 relaying (translation)

# The `bpf' pseudo-device enables the Berkeley Packet Filter.
# Be aware of the administrative consequences of enabling this!
pseudo-device bpf #Berkeley packet filter

# USB support
device uhci # UHCI PCI->USB interface
device ohci # OHCI PCI->USB interface
device usb # USB Bus (required)
device ugen # Generic
device uhid # "Human Interface Devices"
device ukbd # Keyboard
device ulpt # Printer
#device umass # Disks/Mass storage - Requires scbus and da
device ums # Mouse
device uscanner # Scanners
device urio # Diamond Rio MP3 Player
# FireWire support
device firewire # FireWire bus code
#device sbp # SCSI over FireWire (Requires scbus and da)
device fwe # Ethernet over FireWire (non-standard!)

options IPFILTER
options IPFILTER_LOG
options IPSEC
options IPSEC_ESP
options USER_LDT

作者: Eg_zm   发布时间: 2004-03-18

因为我测试的时候,就是我的本机ftp本机ip,或者使用和我在同一个交换机上面的机器来测试。
ftp ,ssh直接联结:127.0.0.1没有一点问题,就是使用 本机真实ip,就慢的要命。

作者: Eg_zm   发布时间: 2004-03-18

could be a DNS 's trouble, specially take care with "reverse DNS"...

作者: werix   发布时间: 2004-03-20

看了一下内核配置文件, 最好重新配置, 如:
eisa
ppp这等没用的东西都可以注释掉, 我觉得内核应该定制的跟你的机器配置一样才行, 我的内核配置有时多一点东西网卡就不能驱动了, 所以最好还是先把内核配置好先!

作者: rainren   发布时间: 2004-03-20

我加入了反向解析之后就没有问题了,这几天刚辞职,忙着找工作,就没有来,各位兄弟,抱歉了。

作者: Eg_zm   发布时间: 2004-03-22