Excalibur Xcalibur wrote:
Hi,
I'm using proftpd as server on my fedora box and it's damn slow.
Users take forever to download/upload things on the server. But when I
share my folder as a Samba share, it's almost instantaneous
downloads/uploads for users. Any clues to make my FTP blazing fast?
Could SELINUX be one of the problems?
--
Excalibur
proftp can be (is by default?) configured to verify a valid IP before
allowing a log in.
If your reverse DNS is slow, then ftp logins and ssh connections can
take up to two minutes or so.
Microsoft based protocols don't do much IP based security validation,
based upon the OLD SMB protocols (ripped off from DEC and ISO standards).
Check your reverse DNS response times -- I bet they are whack.
You can use the host utility to test RDNS queries easily, or dig.
$ host 74.220.202.11
11.202.220.74.in-addr.arpa domain name pointer host11.hostmonster.com.
$ dig esourcehome.com
; <<>> DiG 9.4.1 <<>> esourcehome.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 9058
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;esourcehome.com. IN A
;; ANSWER SECTION:
esourcehome.com. 4439 IN A 74.220.202.11
;; Query time: 3 msec
;; SERVER: 192.168.1.1#53(192.168.1.1)
;; WHEN: Wed Jul 25 17:32:44 2007
;; MSG SIZE rcvd: 49
If these queries take more than a second or so, your are having DNS issues.
Good Luck!