PDA

View Full Version : pure-ftpd stopped working


Nicke
1st July 2009, 15:29
Hello,

I cant FTP to my server anymore.
I dont know where to look.

PASS ********
530 Login incorrect.

No matter what i do.

It also seems like pure-ftpd listens to only one of my two ip's.

In which conf or log-files should i look?

Thanks!

falko
2nd July 2009, 15:22
What's the output of netstat -tap and iptables -L? Did you try both active and passive transfers in your FTP client?

Nicke
2nd July 2009, 15:32
What's the output of netstat -tap and iptables -L? Did you try both active and passive transfers in your FTP client?

The server responds with 530 Login incorrect. So my ports is open.

Netstat.
tcp 0 0 *:ftp *:* LISTEN

iptables.
fail2ban-ssh tcp -- anywhere anywhere multiport dports ssh
ACCEPT all -- anywhere anywhere
ACCEPT tcp -- anywhere anywhere tcp flags:ACK/ACK
ACCEPT all -- anywhere anywhere state ESTABLISHED
ACCEPT all -- anywhere anywhere state RELATED
ACCEPT udp -- anywhere anywhere udp spt:domain dpts:1024:65535
ACCEPT icmp -- anywhere anywhere icmp echo-reply
ACCEPT icmp -- anywhere anywhere icmp destination-unreachable
ACCEPT icmp -- anywhere anywhere icmp source-quench
ACCEPT icmp -- anywhere anywhere icmp time-exceeded
ACCEPT icmp -- anywhere anywhere icmp parameter-problem
ACCEPT tcp -- anywhere anywhere tcp dpt:ssh
ACCEPT tcp -- anywhere anywhere tcp dpt:auth
ACCEPT tcp -- anywhere anywhere tcp dpt:ftp-data
ACCEPT tcp -- anywhere anywhere tcp dpt:ftp
ACCEPT tcp -- anywhere anywhere tcp dpt:smtp
ACCEPT tcp -- anywhere anywhere tcp dpt:domain
ACCEPT tcp -- anywhere anywhere tcp dpt:www
ACCEPT tcp -- anywhere anywhere tcp dpt:pop3
ACCEPT tcp -- anywhere anywhere tcp dpt:imap2
ACCEPT tcp -- anywhere anywhere tcp dpt:https
ACCEPT tcp -- anywhere anywhere tcp dpt:mysql
ACCEPT tcp -- anywhere anywhere tcp dpt:http-alt
ACCEPT tcp -- anywhere anywhere tcp dpt:webmin
ACCEPT udp -- anywhere anywhere udp dpt:mysql
ACCEPT udp -- anywhere anywhere udp dpt:domain
ACCEPT icmp -- anywhere anywhere icmp echo-request
DROP tcp -- anywhere anywhere tcp dpts:nfs:2050
DROP tcp -- anywhere anywhere tcp dpts:x11:6063
DROP tcp -- anywhere anywhere tcp dpts:afs3-fileserver:7010
ACCEPT tcp -- anywhere anywhere tcp dpts:1024:65535

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

Chain fail2ban-ssh (1 references)
target prot opt source destination
RETURN all -- anywhere anywhere


The response:
220 ProFTPD 1.3.1 Server (Debian) [::ffff:xxx.xxx.xxx.xxx]
USER xxxxx
331 Password required for xxxxx
PASS ********
530 Login incorrect.

Nicke
3rd July 2009, 19:13
Any suggestion?

falko
3rd July 2009, 19:23
Did you try both active and passive transfers in your FTP client?

Nicke
3rd July 2009, 19:34
Did you try both active and passive transfers in your FTP client?

Yes.

It used to work. Just stopped working.
The FTP should not respond with Login incorrect regardless of passive or active.

gkovacs
3rd July 2009, 23:33
Just out of curiosity, in your original post you mention pure-ftpd, but later paste in a response screen from proftpd. I'm not suggesting anything, but this sure seems strange...

Nicke
4th July 2009, 00:08
Just out of curiosity, in your original post you mention pure-ftpd, but later paste in a response screen from proftpd. I'm not suggesting anything, but this sure seems strange...

Strange! You're right! I will look in to that!

Edit:
root@server1:~# ps aux | grep ftp
root 10212 0.0 0.0 6152 792 ? Ss Jul01 0:00 pure-ftpd (SERVER)
root 12056 0.0 0.0 1964 548 pts/0 S+ 23:10 0:00 grep ftp
root@server1:~#

I'm so stupid. Used the wrong IP...
I have two ips. And i tried both... but both was wrong. ;) Sorry for taking your time.