www.ProFTPD.de
13. März 2007, 21:42:37 *
Willkommen Gast. Bitte einloggen oder registrieren.
Haben Sie Ihre Aktivierungs E-Mail übersehen?

Einloggen mit Benutzername, Passwort und Sitzungslänge
News: SMF - Neu installiert!
 
   Übersicht   Hilfe Suche Login Registrieren  
Seiten: [1]   Nach unten
  Drucken  
Autor Thema: Proftp auf IP binden  (Gelesen 174 mal)
0 Mitglieder und 1 Gast betrachten dieses Thema.
nasi_be
ProFTPD
*
Offline Offline

Beiträge: 5


Profil anzeigen
« am: 15. Februar 2006, 14:59:20 »

Hallo zusammen,

ich versuche Proftp auf eine von zwei möglichen IP-Adressen zu binden.
Aber leider sind bei einem Portscan immer beide IPs offen
(192.168.2.2:621 und 192.168.2.3:621)

Hier meine Config:
Code:

ServerName         "Debian"
ServerType standalone
DeferWelcome         off

# DefaultAddress                  192.168.2.3

SocketBindTight                 on
Bind                            192.168.2.3
DefaultServer                   off

MultilineRFC2228 on
# DefaultServer         on
ShowSymlinks         on

TimeoutNoTransfer 600
TimeoutStalled 600
TimeoutIdle 1200

DisplayLogin                    welcome.msg
DisplayFirstChdir               .message
ListOptions                   "-l"

DenyFilter         \*.*/

UseReverseDNS off
IdentLookups off

# Port 21 is the standard FTP port.
Port            621

# 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
MaxClientsPerHost 3
MaxClientsPerUser 3
MaxHostsPerUser 1

# Set the user and group that the server normally runs at.
User            nobody
Group            nogroup

# 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

<Global>
DefaultChdir /home/ftpdaten
DefaultRoot /home/ftpdaten
</Global>

<VirtualHost 192.168.2.3>
Bind 192.168.2.3
Port 621
</VirtualHost>

# TLS
<IfModule mod_tls.c>
TLSEngine on
TLSLog /var/log/proftpd/proftpd_tls.log
TLSProtocol TLSv1
TLSRequired on
TLSVerifyClient off
TLSRSACertificateFile /etc/ftpcert/ftphost.cert
TLSRSACertificateKeyFile /etc/ftpcert/ftphost.key
</IfModule>


Auch wenn ich DefaultAddress aktiviere und VirtualHost deaktiviere ändert es nichts.
Was mache ich falsch?

Gruß
Thomas
Gespeichert
VolGas
Moderator
ProFTPD
*****
Offline Offline

Beiträge: 771



Profil anzeigen
« Antwort #1 am: 15. Februar 2006, 17:28:26 »

Hallo,

der "Bind"-Befehl hat schon sehr viel Verwirrung gestiftet und wird deswegen
wohl demnächst auch verschwinden. "SocketBindTight on" ist goldrichtig,
"DefaultAddress xxx.xxx.xxx.xxx" für den "Hauptserver" und dann ggf. nur noch
"<Virtualhost xxx.xxx.xxx.xxx>" - alles ganz ohne Bind.

Bei uns funktioniert dies so einwandfrei.

mfg.
  VolGas
Gespeichert
VolGas
Moderator
ProFTPD
*****
Offline Offline

Beiträge: 771



Profil anzeigen
« Antwort #2 am: 15. Februar 2006, 17:33:38 »

Nachtrag:

Ich würde Dir noch empfehlen "RequireValidShell   no" mit in die .conf zu nehmen...
Das hat zwar mit Deinem Problem nichts zu tun, ist mir aber aufgefallen, daß dies noch fehlt.

mfg.
  VolGas
Gespeichert
nasi_be
ProFTPD
*
Offline Offline

Beiträge: 5


Profil anzeigen
« Antwort #3 am: 15. Februar 2006, 22:00:54 »

Danke, jetzt hat es funktioniert...

Gruß
Thomas
Gespeichert
Seiten: [1]   Nach oben
  Drucken  
 
Gehe zu:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Prüfe XHTML 1.0 Prüfe CSS
Seite erstellt in 0.055 Sekunden mit 19 Zugriffen.