Proftpd in passive mode

Discussion in 'Server Operation' started by Captain, Apr 15, 2010.

  1. Captain

    Captain Member

    Hello!

    I know that this thread is on of a million about proftpd and passive mode,
    but i dont know what to do.
    I have opened PassivePort from 60000 to 60005. And my masquarade have public IP, because I have router and my server have local IP. In router I enter port forwarding (60000-60005).
    It is my /etc/proftpd.conf:

    Code:
    # Includes DSO modules
    Include /etc/proftpd/modules.conf
    
    UseIPv6                         off
    IdentLookups                    off
    
    ServerName                      "FTP server"
    ServerType                      standalone
    DeferWelcome                    off
    
    MultilineRFC2228                on
    DefaultServer                   on
    ShowSymlinks                    on
    
    TimeoutNoTransfer               600
    TimeoutStalled                  600
    TimeoutIdle                     1200
    
    DisplayLogin                    welcome.msg
    DisplayChdir                    .message true
    ListOptions                     "-l"
    
    DenyFilter                      \*.*/
    UseReverseDNS                   off
    # Use this to jail all users in their homes
    
    <Global>
    DefaultRoot                     ~
    IdentLookups                    off
    ServerIdent on "FTP Server ready."
    </Global>
    
    Port                            21
    
    PassivePorts                  60000 60005
    
    MasqueradeAddress               195.216.178.214
    
    
    <IfModule mod_dynmasq.c>
    # DynMasqRefresh 28800
    </IfModule>
    
    MaxInstances                    30
    
    # Set the user and group that the server normally runs at.
    User                            proftpd
    Group                           nogroup
    
    Umask                           022  022
    # Normally, we want files to be overwriteable.
    AllowOverwrite                  on
    
    TransferLog /var/log/proftpd/xferlog
    SystemLog   /var/log/proftpd/proftpd.log
    
    <IfModule mod_quotatab.c>
    QuotaEngine off
    </IfModule>
    
    <IfModule mod_ratio.c>
    Ratios off
    </IfModule>
    
    <IfModule mod_delay.c>
    DelayEngine on
    </IfModule>
    <IfModule mod_ctrls.c>
    ControlsEngine        off
    ControlsMaxClients    2
    ControlsLog           /var/log/proftpd/controls.log
    ControlsInterval      5
    ControlsSocket        /var/run/proftpd/proftpd.sock
    </IfModule>
    
    <IfModule mod_ctrls_admin.c>
    AdminControlsEngine off
    </IfModule>
    
    ############MANUAL
    DefaultRoot ~
    ServerIdent on "FTP Server ready."
    DefaultAddress 192.168.123.116
    
    Include /etc/proftpd_ispconfig.conf
    
    In active mode all works, but when I enter passive mode all stops on Command: MLSD
    FileZilla log:
    Code:
    Status:	Resolving address of www.domain.com
    Status:	Connecting to 210.210.210.210:21...
    Status:	Connection established, waiting for welcome message...
    Response:	220 FTP Server ready.
    Command:	USER test
    Response:	331 Password required for test
    Command:	PASS ***********
    Response:	230 User test logged in
    Command:	SYST
    Response:	215 UNIX Type: L8
    Command:	FEAT
    Response:	211-Features:
    Response:	 MDTM
    Response:	 MFMT
    Response:	 UTF8
    Response:	 MFF modify;UNIX.group;UNIX.mode;
    Response:	 MLST modify*;perm*;size*;type*;unique*;UNIX.group*;UNIX.mode*;UNIX.owner*;
    Response:	 REST STREAM
    Response:	 LANG en-US.UTF-8*
    Response:	 SIZE
    Response:	211 End
    Command:	OPTS UTF8 ON
    Response:	200 UTF8 set to on
    Status:	Connected
    Status:	Retrieving directory listing...
    Command:	PWD
    Response:	257 "/" is the current directory
    Command:	TYPE I
    Response:	200 Type set to I
    Command:	PASV
    Response:	227 Entering Passive Mode (192,168,123,116,175,28).
    Status:	Server sent passive reply with unroutable address. Using server address instead.
    Command:	MLSD
    
    Please help to solved this problem.

    Big thnks.
     

Share This Page