net2ftp error

Discussion in 'Installation/Configuration' started by mikechacra, Mar 12, 2013.

  1. mikechacra

    mikechacra New Member

    hello :)

    when i try to cannot to my ftp account through net2ftp i get this error.


    An error has occured

    The FTP server port 21 may not be used.


    Well ftp is accessible and working well from browsers and ftp clients. just net2ftp is not !!

    any suggestions,

    many thanks
     
  2. falko

    falko Super Moderator

    What are the outputs of
    Code:
    netstat -tap
    and
    Code:
    iptables -L
    ?
     
  3. mikechacra

    mikechacra New Member

    Hey,

    Thanks for your reply.

    These are my netstat and iptables. I can login from net2ftp.com but locally it doesn't seem to work :S !


    Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
    tcp 0 0 localhost:10025 *:* LISTEN 22138/smtpd
    tcp 0 0 localhost:mysql *:* LISTEN 25536/mysqld
    tcp 0 0 *:pop3 *:* LISTEN 22120/pop3-login
    tcp 0 0 *:imap2 *:* LISTEN 11001/imap-login
    tcp 0 0 *:http-alt *:* LISTEN 2839/apache2
    tcp 0 0 *:http *:* LISTEN 2839/apache2
    tcp 0 0 *:tproxy *:* LISTEN 2839/apache2
    tcp 0 0 *:ssmtp *:* LISTEN 21787/smtpd
    tcp 0 0 *:ftp *:* LISTEN 20301/pure-ftpd (SE
    tcp 0 0 37.123.115.187:domain *:* LISTEN 26799/named
    tcp 0 0 s3.lebcloud.net:domain *:* LISTEN 26799/named
    tcp 0 0 localhost:domain *:* LISTEN 26799/named
    tcp 0 0 *:ssh *:* LISTEN 672/sshd
    tcp 0 0 localhost:953 *:* LISTEN 26799/named
    tcp 0 0 *:smtp *:* LISTEN 21822/smtpd
    tcp 0 0 *:https *:* LISTEN 2839/apache2
    tcp 0 0 *:imaps *:* LISTEN 11001/imap-login
    tcp 0 0 *:pop3s *:* LISTEN 22120/pop3-login
    tcp 0 0 localhost:9000 *:* LISTEN 28883/php-fpm.conf)
    tcp 0 0 localhost:10024 *:* LISTEN 20546/amavisd (ch13
    tcp 0 0 localhost:mysql localhost:38359 ESTABLISHED 25536/mysqld
    tcp 0 0 localhost:38368 localhost:mysql ESTABLISHED 21822/smtpd
    tcp 0 0 localhost:38375 localhost:mysql ESTABLISHED 21836/amavisd (ch1-
    tcp 0 0 localhost:mysql localhost:38370 ESTABLISHED 25536/mysqld
    tcp 0 0 localhost:10024 localhost:41831 TIME_WAIT -
    tcp 0 0 localhost:38369 localhost:mysql ESTABLISHED 21822/smtpd
    tcp 0 0 localhost:38016 localhost:mysql ESTABLISHED 20546/amavisd (ch13
    tcp 0 0 localhost:38370 localhost:mysql ESTABLISHED 21822/smtpd
    tcp 0 0 s3.lebcloud.net:http 176-241-128-84-dyn:2627 TIME_WAIT -
    tcp 0 0 localhost:mysql localhost:38362 ESTABLISHED 25536/mysqld
    tcp 0 0 localhost:38363 localhost:mysql ESTABLISHED 21788/proxymap
    tcp 0 0 s3.lebcloud.net:imaps rev-146.185.36-52:10535 ESTABLISHED 11001/imap-login
    tcp 0 0 localhost:45628 localhost:imap2 TIME_WAIT -
    tcp 0 0 localhost:mysql localhost:38375 ESTABLISHED 25536/mysqld
    tcp 0 0 s3.lebcloud.net:http 176-241-128-84-dyn:2633 TIME_WAIT -
    tcp 0 0 localhost:38359 localhost:mysql ESTABLISHED 21888/smtpd
    tcp 0 0 s3.lebcloud.net:http 176-241-128-84-dyn:2624 TIME_WAIT -
    tcp 0 0 37.123.115.187:http 178.135.154.41:59354 ESTABLISHED 20400/apache2
    tcp 0 0 s3.lebcloud.net:http 176-241-128-84-dyn:2626 TIME_WAIT -
    tcp 0 0 s3.lebcloud.net:http 176-241-128-84-dyn:2631 TIME_WAIT -
    tcp 0 0 localhost:38360 localhost:mysql ESTABLISHED 21888/smtpd
    tcp 0 0 localhost:38356 localhost:mysql ESTABLISHED 21788/proxymap
    tcp 0 0 s3.lebcloud.net:imaps rev-146.185.34-23:15789 ESTABLISHED 21529/imap-login
    tcp 0 0 s3.lebcloud.net:pop3 89.108.135.3:51657 TIME_WAIT -
    tcp 0 0 localhost:10025 localhost:38917 ESTABLISHED 22138/smtpd
    tcp 0 0 s3.lebcloud.net:http 176-241-128-84-dyn:2630 TIME_WAIT -
    tcp 0 0 s3.lebcloud.net:imaps rev-146.185.34-23:55919 ESTABLISHED 20073/imap-login
    tcp 0 0 localhost:mysql localhost:38369 ESTABLISHED 25536/mysqld
    tcp 0 0 localhost:mysql localhost:38368 ESTABLISHED 25536/mysqld
    tcp 0 0 localhost:45036 localhost:http-alt TIME_WAIT -
    tcp 0 0 localhost:mysql localhost:38356 ESTABLISHED 25536/mysqld
    tcp 0 0 37.123.115.187:http 178.135.154.41:59313 TIME_WAIT -
    tcp 0 0 localhost:mysql localhost:38358 ESTABLISHED 25536/mysqld
    tcp 0 0 localhost:mysql localhost:38363 ESTABLISHED 25536/mysqld
    tcp 0 0 localhost:mysql localhost:38373 ESTABLISHED 25536/mysqld
    tcp 0 0 s3.lebcloud.net:imaps rev-146.185.34-23:55886 ESTABLISHED 19814/imap-login
    tcp 0 0 37.123.115.187:http 178.135.154.41:59353 FIN_WAIT2 -
    tcp 0 0 localhost:mysql localhost:38361 ESTABLISHED 25536/mysqld
    tcp 0 0 localhost:38373 localhost:mysql ESTABLISHED 21811/trivial-rewri
    tcp 0 0 localhost:38917 localhost:10025 ESTABLISHED 21836/amavisd (ch1-
    tcp 0 0 s3.lebcloud.net:http 176-241-128-84-dyn:2632 TIME_WAIT -
    tcp 0 0 s3.lebcloud.net:imaps rev-146.185.34-23:10901 ESTABLISHED 20072/imap-login
    tcp 0 0 s3.lebcloud.net:imaps rev-146.185.34-23:10417 ESTABLISHED 21525/imap-login
    tcp 0 0 s3.lebcloud.net:pop3s 89.108.135.3:3225 ESTABLISHED 22120/pop3-login
    tcp 0 0 localhost:38362 localhost:mysql ESTABLISHED 21788/proxymap
    tcp 0 0 localhost:mysql localhost:38016 ESTABLISHED 25536/mysqld
    tcp 0 0 localhost:38358 localhost:mysql ESTABLISHED 21788/proxymap
    tcp 0 0 s3.lebcloud.net:imaps rev-146.185.34-23:51458 ESTABLISHED 19811/imap-login
    tcp 0 0 s3.lebcloud.net:http 176-241-128-84-dyn:2629 TIME_WAIT -
    tcp 0 0 localhost:mysql localhost:38357 ESTABLISHED 25536/mysqld
    tcp 0 0 localhost:45038 localhost:http-alt TIME_WAIT -
    tcp 0 197 s3.lebcloud.net:ssmtp 89.108.135.3:3237 ESTABLISHED 21888/smtpd
    tcp 0 0 localhost:38913 localhost:10025 TIME_WAIT -
    tcp 0 0 localhost:mysql localhost:38360 ESTABLISHED 25536/mysqld
    tcp 0 0 s3.lebcloud.net:imaps rev-146.185.36-52:12855 ESTABLISHED 11006/imap-login
    tcp 0 0 s3.lebcloud.net:http 176-241-128-84-dyn:2623 TIME_WAIT -
    tcp 0 0 s3.lebcloud.net:http 176-241-128-84-dyn:2625 TIME_WAIT -
    tcp 0 0 s3.lebcloud.net:http 176-241-128-84-dyn:2634 TIME_WAIT -
    tcp 0 0 localhost:38357 localhost:mysql ESTABLISHED 21806/trivial-rewri
    tcp 0 0 localhost:38361 localhost:mysql ESTABLISHED 21888/smtpd
    tcp 0 0 s3.lebcloud.net:http 176-241-128-84-dyn:2622 TIME_WAIT -
    tcp 0 5328 s3.lebcloud.net:ssh 89.17.99.75:56347 ESTABLISHED 21897/0

    -------------------
    IPTABLES

    ------------------
    Chain INPUT (policy ACCEPT)
    target prot opt source destination
    fail2ban-dovecot-pop3imap tcp -- anywhere anywhere multiport dports pop3,pop3s,imap2,imaps
    fail2ban-pureftpd tcp -- anywhere anywhere multiport dports ftp
    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-dovecot-pop3imap (1 references)
    target prot opt source destination
    RETURN all -- anywhere anywhere

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

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

    falko Super Moderator

    Looks ok. Must be a net2ftp issue.
     

Share This Page