Gast
Gast
|
 |
« am: 16. Oktober 2003, 11:12:24 » |
|
hallo,
ich habe einen Proftp Server in der Version 1.2.8 installiert auf Red Hat. Wenn ich mich mit dem FTP-Server verbinden will erhalten ich folgenden Fehler:
500 Sorry, no server available to handle request on IP-Adresse
welches Problem könnte denn hier bestehen?
Danke für euren tollen Sopport!!
|
|
|
Gespeichert
|
|
|
|
Wörsty
|
 |
« Antwort #1 am: 16. Oktober 2003, 11:18:51 » |
|
Tja. Gute Frage. Wie sieht die proftpd.conf aus? Nutzt du virtuelle Hosts? Hast du die MasqueradeAddress mein.ser.ver Direktive drin? :?!
|
|
|
Gespeichert
|
RedHat 8.0 (2.4er Kernel) proftpd 1.2.10 -mod_sql_mysql -mow_wrap -mod_exec -mod_ifsession[/size]
|
|
|
Gast
Gast
|
 |
« Antwort #2 am: 16. Oktober 2003, 11:28:34 » |
|
aslo bis jetzt benutze ich keinen virtuellen Hosts. MasqueradeAddress mein.ser.ver benutze ich auch nicht.
hier meine conf:
ServerName "ProFTPD Default Installation"
# Port 21 is the standard FTP port. Port 21
#---------mod_sql_modul---------------# SQLAuthenticate users* groups* SQLConnectInfo datenbank@ip user passwd methode SQLAuthTypes Backend Plaintext Crypt SQLUserInfo usertable username uid gid homedir shell SQLGroupInfo groupname gid members SQLDefaultHomedir /ftp
# Umask 022 is a good standard umask to prevent new dirs and files # from being group and world writable. Umask 022
# To prevent DoS attacks, set the maximum number of child processes # to 30. If you need to allow more than 30 concurrent connections # at once, simply increase this value. Note that this ONLY works # in standalone mode, in inetd mode you should use an inetd server # that allows you to limit maximum number of processes per service # (such as xinetd). MaxInstances 30 # Set the user and group under which the server will run.
# To cause every FTP user to be "jailed" (chrooted) into their home # directory, uncomment this line. #DefaultRoot ~
# Normally, we want files to be overwriteable.
# A basic anonymous configuration, no upload directories. If you do not # want anonymous users, simply delete this entire <Anonymous> section. <Directory /ftp> User ftp Group ftp
# We want clients to be able to login with "anonymous" as well as "ftp" UserAlias anonymous ftp
# Limit the maximum number of anonymous logins MaxClients 10
# We want 'welcome.msg' displayed at login, and '.message' displayed # in each newly chdired directory. DisplayLogin welcome.msg DisplayFirstChdir .message
# Limit WRITE everywhere in the anonymous chroot <Limit WRITE> DenyAll </Limit> DeleteAbortedStores on </Anonymous> AllowForeignAddress on RootLogin off RequireValidShell off <Directory> </Directory> ServerType standalone DefaultServer on
|
|
|
Gespeichert
|
|
|
|
Wörsty
|
 |
« Antwort #3 am: 16. Oktober 2003, 11:52:03 » |
|
Na dann probier mal mit: MasqueradeAddress mein.ser.ver Neustart nicht vergessen. Biste hinter einem Router?
|
|
|
Gespeichert
|
RedHat 8.0 (2.4er Kernel) proftpd 1.2.10 -mod_sql_mysql -mow_wrap -mod_exec -mod_ifsession[/size]
|
|
|
stonki
|
 |
« Antwort #4 am: 16. Oktober 2003, 12:04:48 » |
|
Das mag daran liegen, dass Deine Config syntax und logisch falsch ist. zum einen: gewöhne Dir an, die Default Werte nach Oben zu packen, also Servertype etc, aber das meine ich garnicht:
# A basic anonymous configuration, no upload directories. If you do not # want anonymous users, simply delete this entire <Anonymous> section. <Directory /ftp> User ftp Group ftp
Directory ???? ... </Anonymous>
hier wird nun aber anonymous geschlossen ... <Directory> </Directory>
aha... Soweit ProFTPD denkt is noch immer einmal directory offen.... cu stonki
|
|
|
Gespeichert
|
|
|
|
Gast
Gast
|
 |
« Antwort #5 am: 16. Oktober 2003, 12:09:43 » |
|
funktioniert auch nicht. wenn ich mich mit ftp loacalhost verbinde funktioniert es nur nicht über die IP-Adresse.
|
|
|
Gespeichert
|
|
|
|
Wörsty
|
 |
« Antwort #6 am: 16. Oktober 2003, 12:12:45 » |
|
funktioniert auch nicht. wenn ich mich mit ftp loacalhost verbinde funktioniert es nur nicht über die IP-Adresse. Auch nicht mit MasqueradeAddress 012.345.678.900? :debug:
|
|
|
Gespeichert
|
RedHat 8.0 (2.4er Kernel) proftpd 1.2.10 -mod_sql_mysql -mow_wrap -mod_exec -mod_ifsession[/size]
|
|
|
Gast
Gast
|
 |
« Antwort #7 am: 16. Oktober 2003, 12:17:16 » |
|
der hat von alleine angefangen alles ans Ende zu schreiben!!
Könntet ihr vielleicht ein komplette Standard conf mit SQL - Auth posten?
das wäre voll nett. Danke!!
|
|
|
Gespeichert
|
|
|
|
stonki
|
 |
« Antwort #8 am: 16. Oktober 2003, 12:26:43 » |
|
der hat von alleine angefangen alles ans Ende zu schreiben!!
Könntet ihr vielleicht ein komplette Standard conf mit SQL - Auth posten?
das wäre voll nett. Danke!! a) wer ist der ? b) Hast Du die config nach meinen Bemerkungen angepasst c) schreib Dir doch die config selber d) wird bei Dir überhaupt die richtige config genommen ?
|
|
|
Gespeichert
|
|
|
|
Wörsty
|
 |
« Antwort #9 am: 16. Oktober 2003, 12:38:07 » |
|
5. Warum überhaupt? :roll: :RTFM :FAQ: :look) :debug: :thx)
|
|
|
Gespeichert
|
RedHat 8.0 (2.4er Kernel) proftpd 1.2.10 -mod_sql_mysql -mow_wrap -mod_exec -mod_ifsession[/size]
|
|
|
Gast
Gast
|
 |
« Antwort #10 am: 16. Oktober 2003, 14:10:05 » |
|
meine conf sieht jetzt so aus.
ServerName "ProFTPD Default Installation" ServerType standalone DefaultServer on
# Port 21 is the standard FTP port. Port 21
# Umask 022 is a good standard umask to prevent new dirs and files # from being group and world writable. Umask 022 <Global>
#---------mod_sql_modul---------------# SQLConnectInfo datenbank@ip user passwd percall SQLAuthTypes Backend Plaintext SQLUserInfo usertable passwd username uid gid homedir shell SQLDefaultHomedir "/"
RequireValidShell off
SQLGroupInfo grouptable groupname gid members SQLAuthenticate users groups
# close our <Global> block. </Global>
# To prevent DoS attacks, set the maximum number of child processes # to 30. If you need to allow more than 30 concurrent connections # at once, simply increase this value. Note that this ONLY works # in standalone mode, in inetd mode you should use an inetd server # that allows you to limit maximum number of processes per service # (such as xinetd). MaxInstances 30
# Set the user and group under which the server will run. User loginuser #Group nogroup
# Normally, we want files to be overwriteable. <Directory /> AllowOverwrite on </Directory>
# A basic anonymous configuration, no upload directories. If you # don't want to support anonymous access, simply remove this # <Anonymous ..> ... </Anonymous> block.
<Anonymous ~ftp> User ftp Group ftp
# We want clients to be able to login with "anonymous" as well as "ftp" #UserAlias anonymous ftp
# Limit the maximum number of anonymous logins MaxClients 10
# We want 'welcome.msg' displayed at login, and '.message' displayed # in each newly chdired directory. DisplayLogin welcome.msg DisplayFirstChdir .message
# Limit WRITE everywhere in the anonymous chroot <Limit WRITE> DenyAll </Limit> </Anonymous>
# To cause every FTP user to be "jailed" (chrooted) into their home # directory, uncomment this line. #DefaultRoot ~
# A basic anonymous configuration, no upload directories. If you do not # want anonymous users, simply delete this entire <Anonymous> section. AllowForeignAddress off RootLogin off ftp läuft jetzt auch aber es kommt jetzt cannot login waiting to retry.. sowohl mit linux system user als auch mit Datenbank usern! warum kann ich mich nicht anmelden?
|
|
|
Gespeichert
|
|
|
|
stonki
|
 |
« Antwort #11 am: 16. Oktober 2003, 14:14:58 » |
|
022 <Global> </Global>
ftp läuft jetzt auch aber es kommt jetzt cannot login waiting to retry.. sowohl mit linux system user als auch mit Datenbank usern! warum kann ich mich nicht anmelden? a) schmeisse mal die beiden Global Zeilen raus. b) Nun ProFTPD im Debug Mode starten und schauen was geht (proftpd -n -d5) cu stonki
|
|
|
Gespeichert
|
|
|
|
Gast
Gast
|
 |
« Antwort #12 am: 16. Oktober 2003, 14:26:39 » |
|
das passiert und weiter nichts. :?!
[root@bordkomm1 proftpd.conf]# proftpd -n -d5 - parsing '/etc/proftpd.conf/proftpd.conf' configuration - <Directory />: adding section for resolved path '/' bordkomm1 - bordkomm1 - Config for ProFTPD Default Installation: bordkomm1 - ~ftp/ bordkomm1 - Limit bordkomm1 - DenyAll bordkomm1 - UserName bordkomm1 - GroupName bordkomm1 - MaxClients bordkomm1 - DisplayLogin bordkomm1 - DisplayFirstChdir bordkomm1 - Umask bordkomm1 - SQLConnectInfo bordkomm1 - SQLAuthTypes bordkomm1 - RequireValidShell bordkomm1 - SQLAuthenticate bordkomm1 - AllowForeignAddress bordkomm1 - RootLogin bordkomm1 - / bordkomm1 - AllowOverwrite bordkomm1 - Umask bordkomm1 - SQLConnectInfo bordkomm1 - SQLAuthTypes bordkomm1 - RequireValidShell bordkomm1 - SQLAuthenticate bordkomm1 - AllowForeignAddress bordkomm1 - RootLogin bordkomm1 - DefaultServer bordkomm1 - Umask bordkomm1 - SQLConnectInfo bordkomm1 - SQLAuthTypes bordkomm1 - SQLUserTable bordkomm1 - SQLUsernameField bordkomm1 - SQLPasswordField bordkomm1 - SQLUidField bordkomm1 - SQLGidField bordkomm1 - SQLHomedirField bordkomm1 - SQLShellField bordkomm1 - SQLDefaultHomedir bordkomm1 - RequireValidShell bordkomm1 - SQLGroupTable bordkomm1 - SQLGroupnameField bordkomm1 - SQLGroupGIDField bordkomm1 - SQLGroupMembersField bordkomm1 - SQLAuthenticate bordkomm1 - UserID bordkomm1 - UserName bordkomm1 - AllowForeignAddress bordkomm1 - RootLogin bordkomm1 - Failed binding to 0.0.0.0, port 21: Address already in use bordkomm1 - Check the ServerType directive to ensure you are configured correctly.
|
|
|
Gespeichert
|
|
|
|
Wörsty
|
 |
« Antwort #13 am: 16. Oktober 2003, 14:30:08 » |
|
vorher proftpd beenden!
|
|
|
Gespeichert
|
RedHat 8.0 (2.4er Kernel) proftpd 1.2.10 -mod_sql_mysql -mow_wrap -mod_exec -mod_ifsession[/size]
|
|
|
Gast
Gast
|
 |
« Antwort #14 am: 16. Oktober 2003, 14:37:37 » |
|
das wird im debug modus angezeigt:
bordkomm1 - ProFTPD 1.2.8 (stable) (built Don Okt 16 10:17:07 CEST 2003) standalo ne mode STARTUP bordkomm1 (14.203.1.139[14.203.1.139]) - connected - local : 14.203.1.220:21 bordkomm1 (14.203.1.139[14.203.1.139]) - connected - remote : 14.203.1.139:3356 bordkomm1 (14.203.1.139[14.203.1.139]) - FTP session opened. bordkomm1 (14.203.1.139[14.203.1.139]) - dispatching PRE_CMD command 'USER loginuser' to mod_core
bordkomm1 (14.203.1.139[14.203.1.139]) - dispatching PRE_CMD command 'USER loginuser' to mod_core
bordkomm1 (14.203.1.139[14.203.1.139]) - dispatching PRE_CMD command 'USER loginuser' to mod_auth
bordkomm1 (14.203.1.139[14.203.1.139]) - dispatching CMD command 'USER loginuser'to mod_auth
bordkomm1 (14.203.1.139[14.203.1.139]) - ProFTPD terminating (signal 11) bordkomm1 (14.203.1.139[14.203.1.139]) - FTP session closed. :?:
|
|
|
Gespeichert
|
|
|
|
|