Results 1 to 3 of 3

Thread: FTP Server Refused passive mode - Using VSFTPD

  1. #1
    Junior Member nixlover's Avatar
    Join Date
    Oct 2012
    Location
    INDIA
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Question FTP Server Refused passive mode - Using VSFTPD

    Hi All,
    I have EC2 Micro Instance which has FTP server (VSFTPD) installed. I ftp it from server itself, it works fine! That means service is ON and working fine.
    but if I try to get FTP from any other client (via internet) it logs-in and works fine over 21 port(for commands) but as client request for the data it says, - "421 Service not available, remote server has closed connection Passive mode refused."
    If I put "passive" command in ftp after login, It says:"passive mode is off" and then works fine in active mode!!
    I m confused that why passive mode is not working??
    Although firewall is off in both sides, Other security tools are also disable.

    ---- vsftpd.conf---

    anonymous_enable=NO
    local_enable=YES
    write_enable=YES
    local_umask=022
    dirmessage_enable=YES
    tcp_wrappers=YES
    pasv_promiscuous=YES
    port_enable=YES
    pasv_enable=YES
    pasv_max_port=11200
    pasv_min_port=11100
    ---------------------------------------
    Need your help!!!

    Thanks In Advance!

  2. #2
    Senior Member Rahul.Patil's Avatar
    Join Date
    Feb 2012
    Location
    Mumbai india
    Posts
    447
    Thanks
    10
    Thanked 46 Times in 43 Posts
    Rep Power
    6

    Default

    Hi,

    By default VSFTPD in passive mode, you just need to allow NEW ESTABLISH RELATED connection state on your firewall.
    see below iptables rules examples:
    Code:
    -A INPUT -p tcp -m tcp --dport 21 -m state --state NEW,ESTABLISHED -j ACCEPT 
    -A INPUT -p tcp -m tcp --sport 1024:65535 --dport 20 -m state --state ESTABLISHED -j ACCEPT 
    -A INPUT -p tcp -m tcp --sport 1024:65535 --dport 1024:65535 -m state --state RELATED,ESTABLISHED -j ACCEPT
    Rahul Patil <http://www.linuxian.com>

  3. #3
    Never say die nixcraft's Avatar
    Join Date
    Jan 2005
    Location
    BIOS
    Posts
    4,374
    Thanks
    17
    Thanked 754 Times in 496 Posts
    Rep Power
    10
    All [Solved] threads are closed by mods / admin to avoid spam issues. See Howto mark a thread as [Solved]


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Problem with ftp server on Fedora14 (vsftpd)
    By bsoo in forum CentOS / RHEL / Fedora
    Replies: 2
    Last Post: 29th December 2011, 08:33 AM
  2. [Solved] Vsftpd 425 Security BAD IP connecting under Ubuntu Linux server
    By Skaramanger in forum Ubuntu / Debian
    Replies: 1
    Last Post: 27th October 2011, 03:08 PM
  3. Linux ChrootDir vsftpd and OpenSSH FTP Server
    By karprav in forum Networking, Firewalls and Security
    Replies: 3
    Last Post: 20th August 2010, 11:49 PM
  4. [Solved] Need help with RHEL vsftpd server
    By MtMan in forum Linux software
    Replies: 9
    Last Post: 1st July 2009, 08:12 AM
  5. Simple active-passive clustering
    By james bond in forum CentOS / RHEL / Fedora
    Replies: 1
    Last Post: 30th October 2008, 07:40 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41