Klar gehts. Habe 3 laufen.
1 auf 21 und 1 auf 121 und und 1 auf 3333.
Such dir raus was du brauchst.
öhm darf ich fragen wie und wo ? bin leider anfänger
In der proftpd.conf vermutlich in /etc/
Wichtig ist
Port xxKompiliert mit ./configure --with-modules=mod_sql:mod_sql_mysql:mod_ifsession:mod_tls --with-includes=/usr/include --with-libraries=/usr/lib/mysql --sysconfdir=/www/conf/
proftpd.confServerType standalone
MaxInstances 30
MultilineRFC2228 On
RootLogin Off
UseReverseDNS Off
PersistentPasswd Off
AllowLogSymlinks Off
RequireValidShell Off
tcpNoDelay Off
tcpReceiveWindow 1492
tcpSendWindow 1492
PidFile /var/run/proftpd/proftpd.pid
ScoreboardFile /usr/local/var/proftpd/proftpd.scoreboard
User www
Group www
LogFormat defaultftp "%h %l %u %t %r %s %b"
LogFormat ftpqueue "%h %l %u %t %r %s %b"
RLimitCPU 30 50
#TLSEngine off
TLSLog /var/log/proftpd_tls.log
TLSProtocol TLSv1
# Are clients required to use FTP over TLS when talking to this server?
TLSRequired on
# Server's certificate
TLSRSACertificateFile /usr/share/ssl/certs/kb-zertifikat.crt
TLSRSACertificateKeyFile /usr/share/ssl/certs/kb-zertifikat.key
# CA the server trusts
TLSCACertificateFile /usr/share/ssl/certs/privkey.pem
# Authenticate clients that want to use FTP over TLS?
TLSVerifyClient on
<Global>
DefaultChdir ~
DefaultRoot ~
DefaultTransferMode binary
DeferWelcome Off
PassivePorts 49152 65534
UseGlobbing On
UseFtpUsers Off
</Global>
# Offener FTP-Server
AccessDenyMsg "Zugriff verweigert! (%u)"
AccessGrantMsg "Herzlich Willkommen %u!"
AllowFilter "^[a-zA-Z0-9]*"
AllowForeignAddress On
AllowOverwrite On
AllowRetrieveRestart On
AllowStoreRestart On
AuthAliasOnly Off
DeleteAbortedStores On
DirFakeGroup On ftp
DirFakeMode 700
DirFakeUser On ftp
DisplayConnect .DisplayConnect.msg
DisplayFirstChdir .DisplayFirstChdir.msg
DisplayGoAway .DisplayGoAway.msg
DisplayLogin .DisplayLogin.msg
DisplayQuit .DisplayQuit.msg
ExtendedLog /www/vhosts/administration/linux/logfiles/proftpd_anonftp.log ALL defaultftp
HiddenStor Off
#Group www
IdentLookups Off
Include /www/conf/proftpd_ext_anon.conf
ListOptions ""
LoginPasswordPrompt Off
#MasqueradeAddress 10.138.131.75
MaxClients 20 "FEHLER: Es sind bereits %m Benutzer verbunden!"
MaxClientsPerHost 20 "FEHLER: Es sind bereits %m Benutzer verbunden!"
MaxHostsPerUser 20 "FEHLER: Dieser Benutzer ist bereits von %m Rechnern verbunden!"
MaxLoginAttempts 2
PathDenyFilter "(\\.ftpaccess)|(\\.htaccess)|(\\.welcome.msg)|(\\.dirinfo.msg)|(\\.login.msg)"
Port 21
RequireValidShell Off
ServerAdmin christian.woestenfeld@nextiraone.de
ServerIdent On "NetxiraOne - FTP-Server"
ServerName "NetxiraOne - FTP-Server"
ShowSymlinks Off
SyslogLevel notice
Umask 0111 0000
#User www
SQLAuthenticate users* groups*
SQLAuthTypes Backend Empty
SQLConnectInfo ftp@localhost:3306 ftp ftp PERSESSION
SQLDefaultGID 502
SQLDefaultUID 502
SQLHomedirOnDemand On
SQLUserInfo benutzer loginname passwort NULL NULL concat('/www',verzeichnis) NULL
SQLGroupInfo gruppen name ID mitglieder
TimeoutIdle 3600
TimeoutLogin 30
TimeoutNoTransfer 3600
TimeoutStalled 3600
TimesGMT Off
<IfModule mod_ifsession.c>
<IfGroup "AND" !schreibrechte,!administratoren>
# Set this restrictons for all users which are not in group "schreibrechte" or "administratoren"
</IfModule>
<Directory ~>
#GroupOwner www
#UserOwner www
<Limit WRITE SITE_CHMOD DELE>
DenyAll
</Limit>
<Limit READ DIRS>
IgnoreHidden On
AllowAll
</Limit>
</Directory>
<Directory ~/uploads>
<Limit SITE_CHMOD DELE>
DenyAll
</Limit>
<Limit WRITE READ DIRS>
AllowAll
</Limit>
</Directory>
<IfModule mod_ifsession.c>
</IfGroup>
</IfModule>
<VirtualHost 10.138.131.75>
# Knowledgebase FTP-Warteschlange #
Include /www/conf/proftpd_ext_kb.conf
</VirtualHost>
<VirtualHost 10.138.131.76>
# Knowledgebase FTP-Warteschlange #
Include /www/conf/proftpd_tls_kb.conf
</VirtualHost>
und
proftpd_ext_kb.conf# proftpd-Konfiguration für die Knowledgebase FTP-Warteschlange
AccessDenyMsg "Zugriff verweigert! (%u)"
AccessGrantMsg "Herzlich Willkommen %u!"
AllowFilter "^[a-zA-Z0-9]*"
AllowForeignAddress On
AllowOverwrite Off
AllowRetrieveRestart On
AllowStoreRestart On
AuthAliasOnly Off
DeleteAbortedStores On
DirFakeGroup On ftp
DirFakeMode 700
DirFakeUser On ftp
DisplayConnect .DisplayConnect.msg
DisplayFirstChdir .DisplayFirstChdir.msg
DisplayGoAway .DisplayGoAway.msg
DisplayLogin .DisplayLogin.msg
DisplayQuit .DisplayQuit.msg
ExtendedLog /www/vhosts/administration/linux/logfiles/proftpd_ftpqueue.log ALL ftpqueue
#Group www
HiddenStor Off
IdentLookups Off
MaxClients 15 "FEHLER: Es sind bereits %m Benutzer verbunden!"
MaxClientsPerHost 10 "FEHLER: Sie (%u) sind bereits 10x verbunden!"
MaxHostsPerUser 20 "FEHLER: Dieser Benutzer ist bereits von %m Rechnern verbunden!"
LoginPasswordPrompt Off
MasqueradeAddress kb.de.nx1
MaxLoginAttempts 2
PathDenyFilter "(\\.ftpaccess)|(\\.htaccess)|(\\.DisplayConnect.msg)|(\\.DisplayFirstChdir.msg)|(\\.DisplayGoAway.msg)|(\\.DisplayLogin.msg)|(\\.DisplayGoAway.msg)|(\\.DisplayQuit.msg)"
Port 121
RequireValidShell Off
ServerAdmin christian.woestenfeld@nextiraone.de
ServerIdent On "NetxiraOne Knowledgebase - FTP-Warteschlange"
ServerName "Knowledgebase - Warteschlange"
ShowSymlinks On
SyslogLevel notice
SQLAuthenticate users*
SQLAuthTypes Backend
SQLConnectInfo ebd@localhost:3306 ftp ftp PERSESSION
SQLDefaultGID 502
SQLDefaultUID 502
SQLHomedirOnDemand On
SQLLog PASS updatecount
SQLLog PASS letzter_zugriff
SQLLog DELE delfile
SQLLog RETR getfile
SQLNamedQuery updatecount UPDATE "ftp_login_count=ftp_login_count+1 WHERE loginname='%u'" users
SQLNamedQuery letzter_zugriff UPDATE "last_ftp_login = now() where loginname = '%u'" users
SQLNamedQuery delfile UPDATE "deleted = 'ja' where loginname = '%u' and dateiname = '%f'" ftp_query
SQLNamedQuery getfile UPDATE "downloadcount = downloadcount + 1, last_download = now() where fullpath = '%f' and loginname = '%u'" ftp_query
SQLUserInfo users loginname passwort users_id NULL concat('/www/vhosts/ftp/121/',loginname) NULL
TimeoutLogin 30
TimeoutIdle 3600
TimeoutNoTransfer 3600
TimeoutStalled 3300
TimesGMT Off
TransferLog /var/log/xferlog
Umask 0111 0000
#User www
<Directory ~>
#GroupOwner www
#UserOwner www
<Limit WRITE SITE_CHMOD>
DenyAll
</Limit>
<Limit READ DIRS DELE>
IgnoreHidden On
AllowAll
</Limit>
</Directory>
und
proftpd_tls_kb.conf# proftpd-Konfiguration für die Knowledgebase SECURE FTP-Warteschlange
TLSLog /var/log/proftpd_tls.log
TLSEngine on
TLSRequired on
TLSVerifyClient on
AccessDenyMsg "Zugriff verweigert! (%u)"
AccessGrantMsg "Herzlich Willkommen %u!"
AllowFilter "^[a-zA-Z0-9]*"
AllowForeignAddress On
AllowOverwrite Off
AllowRetrieveRestart On
AllowStoreRestart On
AuthAliasOnly Off
DeleteAbortedStores On
DirFakeGroup On ftp
DirFakeMode 700
DirFakeUser On ftp
DisplayConnect .DisplayConnect.msg
DisplayFirstChdir .DisplayFirstChdir.msg
DisplayGoAway .DisplayGoAway.msg
DisplayLogin .DisplayLogin.msg
DisplayQuit .DisplayQuit.msg
ExtendedLog /www/vhosts/administration/linux/logfiles/proftpd_ftpqueue.log ALL ftpqueue
#Group www
HiddenStor Off
IdentLookups Off
MaxClients 15 "FEHLER: Es sind bereits %m Benutzer verbunden!"
MaxClientsPerHost 10 "FEHLER: Sie (%u) sind bereits 10x verbunden!"
MaxHostsPerUser 20 "FEHLER: Dieser Benutzer ist bereits von %m Rechnern verbunden!"
LoginPasswordPrompt Off
MasqueradeAddress kb.de.nx1
MaxLoginAttempts 2
PathDenyFilter "(\\.ftpaccess)|(\\.htaccess)|(\\.DisplayConnect.msg)|(\\.DisplayFirstChdir.msg)|(\\.DisplayGoAway.msg)|(\\.DisplayLogin.msg)|(\\.DisplayGoAway.msg)|(\\.DisplayQuit.msg)"
Port 3333
RequireValidShell Off
ServerAdmin christian.woestenfeld@nextiraone.de
ServerIdent On "NetxiraOne Knowledgebase - SSL FTP-Warteschlange"
ServerName "Knowledgebase - Warteschlange"
ShowSymlinks On
SyslogLevel notice
SQLAuthenticate users*
SQLAuthTypes Backend
SQLConnectInfo ebd@localhost:3306 ftp ftp PERSESSION
SQLDefaultGID 502
SQLDefaultUID 502
SQLHomedirOnDemand On
SQLLog PASS updatecount
SQLLog PASS letzter_zugriff
SQLLog DELE delfile
SQLLog RETR getfile
SQLNamedQuery updatecount UPDATE "ftp_login_count=ftp_login_count+1 WHERE loginname='%u'" users
SQLNamedQuery letzter_zugriff UPDATE "last_ftp_login = now() where loginname = '%u'" users
SQLNamedQuery delfile UPDATE "deleted = 'ja' where loginname = '%u' and dateiname = '%f'" ftp_query
SQLNamedQuery getfile UPDATE "downloadcount = downloadcount + 1, last_download = now() where fullpath = '%f' and loginname = '%u'" ftp_query
SQLUserInfo users loginname passwort users_id NULL concat('/www/vhosts/ftp/121/',loginname) NULL
TimeoutLogin 30
TimeoutIdle 600
TimeoutNoTransfer 600
TimeoutStalled 300
TimesGMT Off
TransferLog /var/log/xferlog
Umask 0111 0000
#User www
<Directory ~>
#GroupOwner www
#UserOwner www
<Limit WRITE SITE_CHMOD>
DenyAll
</Limit>
<Limit READ DIRS DELE>
IgnoreHidden On
AllowAll
</Limit>
</Directory>
Stonki: Man sind das viele Zeichen. Das wird teuer... $$$$ :twisted: