Current time: 12-24-2024, 05:58 AM Hello There, Guest! (LoginRegister)


Thread Closed 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[ERLEDIGT]proftp und inetd
Author Message
sunghost Offline
Junior Member
*

Posts: 190
Joined: Jun 2009
Reputation: 0
Post: #1
[ERLEDIGT]proftp und inetd
Hallo,
ich habe ein frisch installiertes ispCP auf Lenny (64bit) Leider musste ich feststellen, dass proftp so "out of the box" nicht läuft. Nach vielem suchen und lesen konnte ich das Prob. einkreisen und den inetd Dienst der auf Port 21 läuft festmachen. Meine Frage nun : Was soll ich machen, den Dienst auf einen anderen Port legen, deinstallieren oder irgendwas anderes? Evtl. kann mir da jemand der sich mit Debian auskennt etwas informieren.
Thx
(This post was last modified: 10-23-2009 09:40 PM by ZooL.)
10-21-2009 10:21 PM
Find all posts by this user
TheCry Away
Member
***

Posts: 851
Joined: Oct 2008
Reputation: 21
Post: #2
RE: proftp und inetd
Wie hast Du denn ProFTP eingestellt?
Hast Du Dich überhaupt an die Anleitung gehalten
Code:
7. Bei der „Proftpd Configuration“ wähle als Type „Standalone“.
Ich denke nicht das Du diesen Punkt so eingestellt hast.
10-21-2009 10:28 PM
Find all posts by this user
sunghost Offline
Junior Member
*

Posts: 190
Joined: Jun 2009
Reputation: 0
Post: #3
RE: proftp und inetd
Hi,
ja Standalone habe ich verwendet.
10-21-2009 10:36 PM
Find all posts by this user
TheCry Away
Member
***

Posts: 851
Joined: Oct 2008
Reputation: 21
Post: #4
RE: proftp und inetd
Poste mal Deine proftpd.conf
10-21-2009 10:45 PM
Find all posts by this user
sunghost Offline
Junior Member
*

Posts: 190
Joined: Jun 2009
Reputation: 0
Post: #5
RE: proftp und inetd
Ich hatte hier gelesen, dass das Mysql Modul aktiviert sein muss, richtig?
Quote:Include /etc/proftpd/modules.conf

# Set off to disable IPv6 support which is annoying on IPv4 only boxes.
UseIPv6 off

ServerName "vserver01.domäne.de"
ServerType standalone
DeferWelcome off

MultilineRFC2228 on
DefaultServer on
ShowSymlinks on

AllowOverwrite on
UseReverseDNS off
IdentLookups off
AllowStoreRestart on
AllowForeignAddress on

LogFormat traff "%b %u"

TimeoutLogin 120
TimeoutNoTransfer 600
TimeoutStalled 600
TimeoutIdle 1200

DisplayLogin welcome.msg
DisplayChdir message

ListOptions "-l"
#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

# In some cases you have to specify passive ports range to by-pass
# firewall limitations. Ephemeral ports can be used for that, but
# feel free to use a more narrow range.
#PassivePorts 49152 65534

# 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 that the server normally runs at.
User nobody
Group nogroup

# Normally, we want files to be overwriteable.
<Directory /*>
# Umask 022 is a good standard umask to prevent new files and dirs
# (second parm) from being group and world writable.
Umask 022 022
# Normally, we want files to be overwriteable.
AllowOverwrite on
HideNoAccess on
</Directory>

<Limit ALL>
IgnoreHidden on
</Limit>

# Be warned: use of this directive impacts CPU average load!
#
# Uncomment this if you like to see progress and transfer rate with ftpwho
# in downloads. That is not needed for uploads rates.
# UseSendFile off

<Global>
RootLogin off
TransferLog /var/log/proftpd/xferlog
ExtendedLog /var/log/proftpd/ftp_traff.log read,write traff
PathDenyFilter "\.quota$"
</Global>

# Loading required modules
<IfModule !mod_sql.c>
LoadModule mod_sql.c
</IfModule>
<IfModule !mod_sql_mysql.c>
LoadModule mod_sql_mysql.c
</IfModule>
<IfModule !mod_quotatab.c>
LoadModule mod_quotatab.c
</IfModule>
<IfModule !mod_quotatab_sql.c>
LoadModule mod_quotatab_sql.c
</IfModule>


#
# SSL via TLS
#
#<IfModule mod_tls.c>
# TLSEngine off # on for use of TLS
# TLSLog /var/log/proftpd/ftp_ssl.log # where to log to
# TLSProtocol SSLv23 # SSLv23 or TLSv1
# TLSOptions NoCertRequest # either to request the certificate or not
# TLSRSACertificateFile /etc/proftpd/ssl.crt # SSL certfile
# TLSRSACertificateKeyFile /etc/proftpd/ssl.key # SSL keyfile
# TLSVerifyClient off # client verification
#</IfModule>

#
# ISPCP Quota management;
#
<IfModule mod_quotatab.c>
QuotaEngine on
QuotaShowQuotas on
QuotaDisplayUnits Mb

SQLNamedQuery get-quota-limit SELECT "name, quota_type, per_session, limit_type, bytes_in_avail, bytes_out_avail, bytes_xfer_avail, files_in_avail, files_out_avail, files_xfer_avail FROM quotalimits WHERE name = '%{0}' AND quota_type = '%{1}'"
SQLNamedQuery get-quota-tally SELECT "name, quota_type, bytes_in_used, bytes_out_used, bytes_xfer_used, files_in_used, files_out_used, files_xfer_used FROM quotatallies WHERE name = '%{0}' AND quota_type = '%{1}'"
SQLNamedQuery update-quota-tally UPDATE "bytes_in_used = bytes_in_used + %{0}, bytes_out_used = bytes_out_used + %{1}, bytes_xfer_used = bytes_xfer_used + %{2}, files_in_used = files_in_used + %{3}, files_out_used = files_out_used + %{4}, files_xfer_used = files_xfer_used + %{5} WHERE name = '%{6}' AND quota_type = '%{7}'" quotatallies
SQLNamedQuery insert-quota-tally INSERT "%{0}, %{1}, %{2}, %{3}, %{4}, %{5}, %{6}, %{7}" quotatallies

QuotaLock /var/run/proftpd/tally.lock
QuotaLimitTable sql:/get-quota-limit
QuotaTallyTable sql:/get-quota-tally/update-quota-tally/insert-quota-tally
</IfModule>

<IfModule mod_ratio.c>
Ratios on
</IfModule>

# Delay engine reduces impact of the so-called Timing Attack described in
# http://security.lss.hr/index.php?page=de...2004-10-02
# It is on by default.
<IfModule mod_delay.c>
DelayEngine on
</IfModule>

<IfModule mod_ctrls.c>
ControlsEngine on
ControlsMaxClients 2
ControlsLog /var/log/proftpd/controls.log
ControlsInterval 5
ControlsSocket /var/run/proftpd/proftpd.sock
</IfModule>

<IfModule mod_ctrls_admin.c>
AdminControlsEngine on
</IfModule>

# ispCP SQL Managment
SQLBackend mysql
SQLAuthTypes Crypt
SQLAuthenticate on
SQLConnectInfo ispcp@localhost vftpMySQL *ZooLwarhier*
SQLUserInfo ftp_users userid passwd uid gid homedir shell
SQLGroupInfo ftp_group groupname gid members
SQLMinUserUID 2000
SQLMinUserGID 2000

# A basic anonymous configuration, no upload directories.

# <Anonymous ~ftp>
# User ftp
# Group nogroup
# # We want clients to be able to login with "anonymous" as well as "ftp"
# UserAlias anonymous ftp
# # Cosmetic changes, all files belongs to ftp user
# DirFakeUser on ftp
# DirFakeGroup on ftp
#
# RequireValidShell off
#
# # 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
# <Directory *>
# <Limit WRITE>
# DenyAll
# </Limit>
# </Directory>
#
# # Uncomment this if you're brave.
# # <Directory incoming>
# # # Umask 022 is a good standard umask to prevent new files and dirs
# # # (second parm) from being group and world writable.
# # Umask 022 022
# # <Limit READ WRITE>
# # DenyAll
# # </Limit>
# # <Limit STOR>
# # AllowAll
# # </Limit>
# # </Directory>
#
# </Anonymous>
Include /etc/proftpd/ispcp/*
(This post was last modified: 10-23-2009 09:34 PM by ZooL.)
10-21-2009 10:55 PM
Find all posts by this user
TheCry Away
Member
***

Posts: 851
Joined: Oct 2008
Reputation: 21
Post: #6
RE: proftp und inetd
Ja das Modul muss aktviert sein, da ProFTP die Zugänge aus der datenbank ausliest.
An sich sieht die Config gut aus...

Was sprechen denn die LogFiles?
Hast Du mal proftpd neu gestartet und die Logs ausgelesen?
10-21-2009 11:24 PM
Find all posts by this user
sunghost Offline
Junior Member
*

Posts: 190
Joined: Jun 2009
Reputation: 0
Post: #7
RE: proftp und inetd
Warum ist es denn nicht default aktiviert, wenn es doch gebraucht wird?
Ich habe es testweise mal aktiviert, nachdem ich den Hinweis hier im Forum gefunden hatte. Dann startet es aber nicht mehr:
Quote:roftpd/etc/init.d/proftpd: line 88: 18671 Speicherzugriffsfehler start-stop-daemon --start --quiet --pidfile "$PIDFILE" --oknodo --exec $DAEMON -- $OPTIONS
Hier habe ich den Hinweis gesehen, dass ich inetd deinstallieren soll:
http://isp-control.net/documentation/dok...figuration
allerdings weiß ich nicht was das für Auswirkungen hat und ob es sinnvoll ist.

syslog:
Quote:Failed binding to 0.0.0.0, port 21: Die Adresse wird bereits verwendet
Check the ServerType directive to ensure you are configured correctly.
10-21-2009 11:41 PM
Find all posts by this user
TheCry Away
Member
***

Posts: 851
Joined: Oct 2008
Reputation: 21
Post: #8
RE: proftp und inetd
Speicherzugriffsfehler... Mhhhh... Ich habe da nur dunkel was in Erinnerung und bitte darum das mich jemand berichtigt, falls ich das jetzt falsch schreibe...
Du hast einen VServer, richtig?
Ich vermute ganz stark da hakt es bei Dir!
10-22-2009 12:41 AM
Find all posts by this user
sunghost Offline
Junior Member
*

Posts: 190
Joined: Jun 2009
Reputation: 0
Post: #9
RE: proftp und inetd
ja ist nen vServer mit eigenem Kernel
10-22-2009 01:01 AM
Find all posts by this user
gOOvER Offline
Banned

Posts: 3,561
Joined: Jul 2007
Post: #10
RE: proftp und inetd
Dann deaktivier doch einfach den inet ftp dienst in der inetd.conf oder so.

Standartmässig ist das aber deaktiviert Wink
10-22-2009 02:04 AM
Visit this user's website Find all posts by this user
Thread Closed 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)