LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   proftpd: unable to open incoming connection: Transport endpoint is not connected? (https://www.linuxquestions.org/questions/linux-server-73/proftpd-unable-to-open-incoming-connection-transport-endpoint-is-not-connected-862495/)

quanta 02-13-2011 08:38 PM

proftpd: unable to open incoming connection: Transport endpoint is not connected?
 
Hi,

Sometime, I got the error messages as I mentioned in the subject:
Quote:

Feb 14 07:46:48 x proftpd[27487]: x - Fatal: unable to open incoming connection: Transport endpoint is not connected
I'm sure there are some clients connect to server at that time. What does this mean exactly? Why did it happen?

Below is my configuration file:
Code:

ServerName                        "ProFTPD server"
ServerIdent                        on "FTP Server ready."
ServerAdmin                        root@localhost
DefaultServer                        on

VRootEngine                        on
DefaultRoot                        ~ !adm
VRootAlias                        etc/security/pam_env.conf /etc/security/pam_env.conf

AuthPAMConfig                        proftpd
AuthOrder                        mod_auth_pam.c* mod_auth_unix.c

UseReverseDNS                        off

User                                nobody
Group                                nobody

MaxInstances                        20

UseSendfile                        off

LogFormat default "٪h ٪l ٪u ٪t \"٪r\" ٪s ٪b"
LogFormat auth "٪v [٪P] ٪h ٪t \"٪r\" ٪s"
LogFormat write "٪h ٪l ٪u ٪t \"٪r\" ٪s ٪b"

TransferLog /var/log/proftpd/proftpd.xferlog
ExtendedLog /var/log/proftpd/proftpd.access_log WRITE,READ write
ExtendedLog /var/log/proftpd/proftpd.auth_log AUTH auth


<IfDefine TLS>
  TLSEngine                        on
  TLSRequired                        on
  TLSRSACertificateFile                /etc/pki/tls/certs/proftpd.pem
  TLSRSACertificateKeyFile        /etc/pki/tls/certs/proftpd.pem
  TLSCipherSuite                ALL:!ADH:!DES
  TLSOptions                        NoCertRequest
  TLSVerifyClient                off
  TLSLog                        /var/log/proftpd/tls.log
</IfDefine>

<IfDefine DYNAMIC_BAN_LISTS>
  LoadModule                        mod_ban.c
  BanEngine                        on
  BanLog                        /var/log/proftpd/ban.log
  BanTable                        /var/run/proftpd/ban.tab
  BanOnEvent                        MaxLoginAttempts 2/00:10:00 01:00:00
  BanControlsACLs                all allow user ftpadm
</IfDefine>

<Global>
  Umask                                022
  IdentLookups                        off
  AllowOverwrite                yes
  <Limit ALL SITE_CHMOD>
    AllowAll
  </Limit>
</Global>

<IfDefine ANONYMOUS_FTP>
  <Anonymous ~ftp>
    User                        ftp
    Group                        ftp
    AccessGrantMsg                "Anonymous login ok, restrictions apply."
    UserAlias                        anonymous ftp
    MaxClients                        10 "Sorry, max %m users -- try again later"

    DisplayLogin                /welcome.msg
    DisplayChdir                .message
    DisplayReadme                README*

    DirFakeUser                        on ftp
    DirFakeGroup                on ftp

    <Limit WRITE SITE_CHMOD>
      DenyAll
    </Limit>

    <Directory uploads/*>
      AllowOverwrite                no
      <Limit READ>
        DenyAll
      </Limit>

      <Limit STOR>
        AllowAll
      </Limit>
    </Directory>

    WtmpLog                        off

  ExtendedLog                        /var/log/proftpd/access.log WRITE,READ default
  ExtendedLog                        /var/log/proftpd/auth.log AUTH auth
  </Anonymous>
</IfDefine>


bathory 02-14-2011 12:41 AM

Hi,

At a first place you don't have a ServerType directive in proftpd.conf.
Also you miss the leading slash in the path of VRootAlias (/etc/security/pam_env.conf /etc/security/pam_env.conf)
And check the logs in /var/log to see if you find anything.

Regards

quanta 02-14-2011 05:13 AM

Quote:

Originally Posted by bathory (Post 4257608)
Hi,

At a first place you don't have a ServerType directive in proftpd.conf.

Although the docs on ProFTPD homepage said the ServerType directive is mandatory but I think there's no need to set in the configuration file. By default on CentOS, ProFTPD run in standalone mode.
Quote:

Originally Posted by bathory (Post 4257608)
Also you miss the leading slash in the path of VRootAlias (/etc/security/pam_env.conf /etc/security/pam_env.conf)

That line is default in my configuration file.
Quote:

Originally Posted by bathory (Post 4257608)
And check the logs in /var/log to see if you find anything.

There are no more details in auth_log, xferlog, ...

bathory 02-14-2011 07:15 AM

Yeah, by default proftpd is running standalone in centos, because it's started through the service command. You can however add the ServerType directive.
Regarding the VRootAlias, I guess you have an /etc/.. directory under the chroot dir.
As for the error, without logs it could be a script kiddie probing your ftp server.

Regards


All times are GMT -5. The time now is 03:11 AM.