www.ProFTPD.de

ProFTPD => ProFTPD - Deutsch => Thema gestartet von: Thommy am 28. Februar 2006, 16:14:15



Titel: Ja,ja mal wieder Failed binding to 0.0.0.0, port 21 Problem
Beitrag von: Thommy am 28. Februar 2006, 16:14:15
Ein freundliches "Hallo" an alle Leidengenossen.

Bevor wieder eine "Schnippische" Antwort kommt .................  :wink:
JA ich habe die Boardsuche benutzt und auch die hier Angebotenen Faq's gelesen.

Auch ich habe das
Code:

"Failed binding to 0.0.0.0, port 21: Address already in use" Problem.

Ich hab den FTP sowohl als Deamon (inetd) als auch als "Standalone" mit
entsprechender Löschung in der proftpd.conf laufen lassen --->>> Ohne Erfolg

Ich kann mich weder über Console, noch über einen in VHCS2 eingelegten FTP User einloggen.
Code:

#
#       VHCS proftpd config file
#
#

ServerName                      "Testserver"
ServerType                      standalone
#ServerType                      inetd
DeferWelcome                    off

ShowSymlinks                    on
MultilineRFC2228                on
DefaultServer                   on
ShowSymlinks                    on
AllowOverwrite                  on

LogFormat                       traff "%b %u"

TimeoutNoTransfer               600
TimeoutStalled                  600
TimeoutIdle                     1200

DisplayLogin                    welcome.msg
DisplayFirstChdir               .message

#LsDefaultOptions                "-l"

DenyFilter                      \*.*/

DefaultRoot                     ~

# Uncomment this if you are using NIS or LDAP to retrieve passwords:
#PersistentPasswd               off

# Port 21 is the standard FTP port.

Port                            21


Dazu folgende inetd.conf

Code:

# /etc/inetd.conf:  see inetd(8) for further informations.
#
# Internet server configuration database
#
#
# Lines starting with "#:LABEL:" or "#<off>#" should not
# be changed unless you know what you are doing!
#
# If you want to disable an entry so it isn't touched during
# package updates just comment it out with a single '#' character.
#
# Packages should modify this file by using update-inetd(8)
#
# <service_name> <sock_type> <proto> <flags> <user> <server_path> <args>
#
#:INTERNAL: Internal services
#echo           stream  tcp     nowait  root    internal
#echo           dgram   udp     wait    root    internal
#chargen        stream  tcp     nowait  root    internal
#chargen        dgram   udp     wait    root    internal
#discard        stream  tcp     nowait  root    internal
#discard        dgram   udp     wait    root    internal
#daytime        stream  tcp     nowait  root    internal
#daytime        dgram   udp     wait    root    internal
#time           stream  tcp     nowait  root    internal
#time           dgram   udp     wait    root    internal

#:STANDARD: These are standard services.
#ftp    stream  tcp     nowait  root    /usr/sbin/tcpd /usr/sbin/proftpd

#:BSD: Shell, login, exec and talk are BSD protocols.

#:MAIL: Mail, news and uucp services.

#:INFO: Info services


nach "killall proftp" und Anschließendem /etc/init.d/proftpd restart war der
der Port wieder aktiv:


Testserver:~# fuser -n tcp 21
21/tcp:              15723
nobody   15723     1  0 15:40 ?        00:00:00 proftpd: (accepting connections)
root     15739 15396  0 15:42 pts/0    00:00:00 grep 15723

Testserver:~# ftp localhost
Connected to Testserver.local.
421 Service not available, remote server has closed connection

Hier noch weitere Infos:

Code:

Testserver:~# proftpd -n -d9
 - mod_tls/2.0.7: using OpenSSL 0.9.7e 25 Oct 2004
 - parsing '/etc/proftpd.conf' configuration
 - FS: using system open()
 - FS: using system read()
 - dispatching directive 'ServerName' to module mod_core
 - dispatching directive 'ServerType' to module mod_core
 - dispatching directive 'DeferWelcome' to module mod_core
 - dispatching directive 'ShowSymlinks' to module mod_ls
 - dispatching directive 'MultilineRFC2228' to module mod_core
 - dispatching directive 'DefaultServer' to module mod_core
 - dispatching directive 'ShowSymlinks' to module mod_ls
 - dispatching directive 'AllowOverwrite' to module mod_xfer
 - dispatching directive 'LogFormat' to module mod_log
 - dispatching directive 'TimeoutNoTransfer' to module mod_xfer
 - dispatching directive 'TimeoutStalled' to module mod_xfer
 - dispatching directive 'TimeoutIdle' to module mod_core
 - dispatching directive 'DisplayLogin' to module mod_core
 - dispatching directive 'DisplayFirstChdir' to module mod_core
 - dispatching directive 'DenyFilter' to module mod_core
 - Compiling deny regex '\*.*/'.
 - Allocated deny regex at location 0x812e660.
 - dispatching directive 'DefaultRoot' to module mod_auth
 - dispatching directive 'Port' to module mod_core
 - FS: using system read()
 - dispatching directive 'MaxInstances' to module mod_core
 - dispatching directive 'User' to module mod_core
 - dispatching auth request "getpwnam" to module mod_radius
 - dispatching auth request "getpwnam" to module mod_sql
 - dispatching auth request "getpwnam" to module mod_auth_file
 - dispatching auth request "getpwnam" to module mod_auth_unix
 - dispatching directive 'Group' to module mod_core
 - dispatching auth request "getgrnam" to module mod_radius
 - dispatching auth request "getgrnam" to module mod_sql
 - dispatching auth request "getgrnam" to module mod_auth_file
 - dispatching auth request "getgrnam" to module mod_auth_unix
 - dispatching directive '<Directory>' to module mod_core
 - <Directory /*>: adding section for resolved path '/*'
 - dispatching directive 'Umask' to module mod_core
 - dispatching directive 'AllowOverwrite' to module mod_xfer
 - dispatching directive 'HideNoAccess' to module mod_core
 - dispatching directive '</Directory>' to module mod_core
 - dispatching directive '<Limit>' to module mod_core
 - dispatching directive 'IgnoreHidden' to module mod_core
 - dispatching directive '</Limit>' to module mod_core
 - dispatching directive '<Global>' to module mod_core
 - dispatching directive 'TransferLog' to module mod_core
 - dispatching directive 'ExtendedLog' to module mod_log
 - dispatching directive 'PathDenyFilter' to module mod_core
 - Compiling deny regex '.quota$'.
 - Allocated deny regex at location 0x8141220.
 - dispatching directive '</Global>' to module mod_core
 - dispatching directive '<IfModule>' to module mod_core
 - <IfModule>: found 'mod_delay.c' module
 - dispatching directive 'DelayEngine' to module mod_delay
 - dispatching directive '</IfModule>' to module mod_core
 - dispatching directive 'SQLAuthTypes' to module mod_sql
 - dispatching directive 'SQLAuthenticate' to module mod_sql
 - dispatching directive 'SQLConnectInfo' to module mod_sql
 - dispatching directive 'SQLUserInfo' to module mod_sql
 - dispatching directive 'SQLGroupInfo' to module mod_sql
 - dispatching directive 'SQLMinID' to module mod_sql
 - dispatching directive 'QuotaEngine' to module mod_quotatab
 - dispatching directive 'QuotaShowQuotas' to module mod_quotatab
 - dispatching directive 'QuotaDisplayUnits' to module mod_quotatab
 - FS: using system read()
 - dispatching directive 'SQLNamedQuery' to module mod_sql
 - dispatching directive 'SQLNamedQuery' to module mod_sql
 - dispatching directive 'SQLNamedQuery' to module mod_sql
 - dispatching directive 'SQLNamedQuery' to module mod_sql
 - dispatching directive 'QuotaLock' to module mod_quotatab
 - dispatching directive 'QuotaLimitTable' to module mod_quotatab
 - FS: using system read()
 - dispatching directive 'QuotaTallyTable' to module mod_quotatab
 - FS: using system read()
 - FS: using system close()
Testserver -
Testserver - Config for Testserver:
Testserver - Limit
Testserver -  IgnoreHidden
Testserver - /*
Testserver -  Umask
Testserver -  DirUmask
Testserver -  AllowOverwrite
Testserver -  HideNoAccess
Testserver -  ShowSymlinks
Testserver -  DisplayLogin
Testserver -  DisplayFirstChdir
Testserver -  DenyFilter
Testserver -  SQLAuthTypes
Testserver -  SQLAuthenticate
Testserver -  SQLConnectInfo
Testserver -  SQLMinID
Testserver -  SQLNamedQuery_get-quota-limit
Testserver -  SQLNamedQuery_get-quota-tally
Testserver -  SQLNamedQuery_update-quota-tally
Testserver -  SQLNamedQuery_insert-quota-tally
Testserver -  TransferLog
Testserver -  PathDenyFilter
Testserver - DeferWelcome
Testserver - ShowSymlinks
Testserver - DefaultServer
Testserver - ShowSymlinks
Testserver - AllowOverwrite
Testserver - TimeoutNoTransfer
Testserver - TimeoutStalled
Testserver - TimeoutIdle
Testserver - DisplayLogin
Testserver - DisplayFirstChdir
Testserver - DenyFilter
Testserver - DefaultRoot
Testserver - UserID
Testserver - UserName
Testserver - GroupID
Testserver - GroupName
Testserver - DelayEngine
Testserver - SQLAuthTypes
Testserver - SQLAuthenticate
Testserver - SQLConnectInfo
Testserver - SQLUserTable
Testserver - SQLUsernameField
Testserver - SQLPasswordField
Testserver - SQLUidField
Testserver - SQLGidField
Testserver - SQLHomedirField
Testserver - SQLShellField
Testserver - SQLGroupTable
Testserver - SQLGroupnameField
Testserver - SQLGroupGIDField
Testserver - SQLGroupMembersField
Testserver - SQLMinID
Testserver - QuotaEngine
Testserver - QuotaShowQuotas
Testserver - QuotaDisplayUnits
Testserver - SQLNamedQuery_get-quota-limit
Testserver - SQLNamedQuery_get-quota-tally
Testserver - SQLNamedQuery_update-quota-tally
Testserver - SQLNamedQuery_insert-quota-tally
Testserver - QuotaLock
Testserver - QuotaLimitTable
Testserver - QuotaTallyTable
Testserver - TransferLog
Testserver - ExtendedLog
Testserver - PathDenyFilter
Testserver - dispatching auth request "getgroups" to module mod_radius
Testserver - dispatching auth request "getgroups" to module mod_sql
Testserver - dispatching auth request "getgroups" to module mod_auth_file
Testserver - dispatching auth request "getgroups" to module mod_auth_unix
Testserver - SETUP PRIVS at ../../../src/main.c:2736
Testserver - ROOT PRIVS at ../../../src/main.c:1970
Testserver - RELINQUISH PRIVS at ../../../src/main.c:1977
Testserver - ROOT PRIVS at ../../../src/main.c:2325
Testserver - deleting existing scoreboard '/var/run/proftpd/proftpd.scoreboard'
Testserver - opening scoreboard '/var/run/proftpd/proftpd.scoreboard'
Testserver - RELINQUISH PRIVS at ../../../src/main.c:2351
Testserver - ROOT PRIVS at ../../../src/inet.c:322
Testserver - RELINQUISH PRIVS at ../../../src/inet.c:362
Testserver - Failed binding to 0.0.0.0, port 21: Address already in use
Testserver - Check the ServerType directive to ensure you are configured correctly.


PORT     STATE SERVICE
21/tcp   open  ftp
25/tcp   open  smtp
53/tcp   open  domain
80/tcp   open  http
110/tcp  open  pop3
143/tcp  open  imap
783/tcp  open  hp-alarm-mgr
953/tcp  open  rndc
993/tcp  open  imaps
995/tcp  open  pop3s
3306/tcp open  mysql
9876/tcp open  sd


Was mit noch Aufgefallen ist, bei mir existiert kein xfer.log !!

Ich hoffe es ist jetzt zu Faschingszeit noch jemand Fit um sich meinem Problem zu Widmen  :P

Gruß
Thommy


Titel: Ja,ja mal wieder Failed binding to 0.0.0.0, port 21 Problem
Beitrag von: stonki am 01. März 2006, 18:35:26
1) Kein FTP im Inet.d eintragen.
2) Servertype Standalone in die Proftpd.conf eintragen
3) fuser -n tcp 21
4) ggf. instanzen killen
5) Proftpd neu starten


Titel: Ja,ja mal wieder Failed binding to 0.0.0.0, port 21 Problem
Beitrag von: Thommy am 02. März 2006, 22:47:25
Zitat
1) Kein FTP im Inet.d eintragen.

#<off># ftp     stream  tcp     nowait  root    /usr/sbin/tcpd /usr/sbin/proftpd

Zitat
2) Servertype Standalone in die Proftpd.conf eintragen

#
#       VHCS proftpd config file
#
#
ServerName                      "Testserver"
ServerType                      standalone
DeferWelcome                    off

Zitat
3) fuser -n tcp 21
4) ggf. instanzen killen
5) Proftpd neu starten


Testserver:~# fuser -n tcp 21
21/tcp:               3119
Testserver:~# killall proftpd
Testserver:~# fuser -n tcp 21
Testserver:~# /etc/init.d/proftpd restart
Restarting ProFTPD ftp daemon..
..proftpd.
 done.
Testserver:~# fuser -n tcp 21
21/tcp:              17213
Testserver:~# ftp localhost
Connected to Testserver.local.
421 Service not available, remote server has closed connection
ftp>

Und jetzt ???
Ich dreh echt bald durch.

Thommy


Titel: Ja,ja mal wieder Failed binding to 0.0.0.0, port 21 Problem
Beitrag von: Thommy am 04. März 2006, 11:00:49
Any Body out There  :(

Thommy


Titel: Ja,ja mal wieder Failed binding to 0.0.0.0, port 21 Problem
Beitrag von: stonki am 06. März 2006, 07:08:11
Zitat von: "Thommy"
Any Body out There  :(

Thommy


Du hast da irgendwo einen trivialen fehler in Deiner System Config..... Schwer zu sagen, wo... XINETD läuft aber nicht, oder ?


Titel: Ja,ja mal wieder Failed binding to 0.0.0.0, port 21 Problem
Beitrag von: VolGas am 07. März 2006, 09:46:32
Hallo,

ich bin wieder da und würde auch vermuten, daß im System etwas nicht (richtig) konfiguriert wurde.
Ich hätte noch eine Idee, was man probieren könnte: probier mal dem ProFTPD explizit über
"DefaultAddress ..." mitzuteilen, welche IP-Adresse er verwenden soll.
Vielleicht klappt das...

mfg.
  VolGas