pure-ftpd "connection reset"

Discussion in 'Installation/Configuration' started by Thomas Jensen, Apr 8, 2009.

  1. Thomas Jensen

    Thomas Jensen New Member

    Hi!

    I've just setup ISPconfig 3. Everything is reporting correct, and pure-FTPd is running and listening.
    But; When i connect ( no matter which client program ), i get the "connection reset" error.

    /var/log/messages
    Apr 8 11:30:01 server1 pure-ftpd: (?@localhost.localdomain) [INFO] New connection from localhost.localdomain
    Apr 8 11:30:01 server1 pure-ftpd: (?@localhost.localdomain) [INFO] Logout.


    Thanks.
     
    Last edited: Apr 8, 2009
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    These message are not from your logins, they are from the ispconfig status monitor which checks if your ftp daemon is running.

    1) is the ispconfig firewall enabled?
    2) Please post the output of:

    iptables -L
     
  3. Thomas Jensen

    Thomas Jensen New Member

    1) I think, i don't know how to check, but i can add firewall records in ISPconfig.

    2)

    Chain INPUT (policy ACCEPT)
    target prot opt source destination
    fail2ban-ssh tcp -- anywhere anywhere multiport dports ssh

    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
     
  4. falko

    falko Super Moderator ISPConfig Developer

    Ok, the firewall is off. Did you try both active and passive transfers in your FTP client? What's the output of
    Code:
    netstat -tap
    ?
     
  5. Thomas Jensen

    Thomas Jensen New Member

    I tried both passive and active, but now i've found out that it might be a local problem. It's only a problem from my home network. The weird thing is that it's the only server i have problems with.

    netstat -tap:

    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
    tcp 0 0 localhost.localdo:10025 *:* LISTEN 22152/master
    tcp 0 0 *:mysql *:* LISTEN 23540/mysqld
    tcp 0 0 *:sunrpc *:* LISTEN 1987/portmap
    tcp 0 0 *:webmin *:* LISTEN 2982/perl
    tcp 0 0 localhost.localdoma:947 *:* LISTEN 2891/famd
    tcp 0 0 *:ftp *:* LISTEN 18935/pure-ftpd (SE
    tcp 0 0 server1.clankamp:domain *:* LISTEN 24448/mydns
    tcp 0 0 localhost.locald:domain *:* LISTEN 24448/mydns
    tcp 0 0 *:ssh *:* LISTEN 22333/sshd
    tcp 0 0 *:telnet *:* LISTEN 22401/inetd
    tcp 0 0 *:smtp *:* LISTEN 22152/master
    tcp 0 0 localhost.localdom:smtp localhost.localdo:54771 SYN_RECV -
    tcp 1 0 localhost.localdom:smtp localhost.localdo:40675 CLOSE_WAIT -
    tcp 1 0 localhost.localdom:smtp localhost.localdo:40675 CLOSE_WAIT -

    ... repeated many times...

    tcp6 0 0 [::]:imaps [::]:* LISTEN 24361/couriertcpd
    tcp6 0 0 [::]:pop3s [::]:* LISTEN 24389/couriertcpd
    tcp6 0 0 [::]:pop3 [::]:* LISTEN 24372/couriertcpd
    tcp6 0 0 [::]:imap2 [::]:* LISTEN 24344/couriertcpd
    tcp6 0 0 [::]:http-alt [::]:* LISTEN 15105/apache2
    tcp6 0 0 [::]:www [::]:* LISTEN 15105/apache2
    tcp6 0 0 [::]:ftp [::]:* LISTEN 18935/pure-ftpd (SE
    tcp6 0 0 ip6-localhost:domain [::]:* LISTEN 24448/mydns
    tcp6 0 0 [::]:ssh [::]:* LISTEN 22333/sshd
    tcp6 0 0 [::]:https [::]:* LISTEN 15105/apache2
    tcp6 0 0 server1.clankamp.:imap2 0x4dd5e135.adsl.c:29475 ESTABLISHED 30105/imapd
     
  6. falko

    falko Super Moderator ISPConfig Developer

    Do you maybe have a personal firewall on your client computer?
     
  7. Thomas Jensen

    Thomas Jensen New Member

    Tried on several computers, with no result. also tried with a different router.
     
  8. falko

    falko Super Moderator ISPConfig Developer

    When you connect from the local network, do you use the server's local IP address, or its public hostname or public IP?
     
  9. Thomas Jensen

    Thomas Jensen New Member

    Tried both public hostname and public IP
     
  10. falko

    falko Super Moderator ISPConfig Developer

    Ok, then I guess that your router somehow doesn't support loopbacks.

    Does it work when you use the local IP?
     
  11. Thomas Jensen

    Thomas Jensen New Member

    I think you were right, i switched router, and now it isn't a problem any more!
    Thanks a lot, it's very kind of you Falko, to help newbies like me :)
     

Share This Page