PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : proftpd + Virtual hosts



Enzymir
17.01.11, 10:30
Hallo zusammen,

wäre super, wenn mir jemand diese Frage beantworten könnte.
Muss jeder Virtual Host beim proftpd einen eigenen Port haben? Oder reicht eine eigene IP aus?

Mein FTP hat 2 NIC´s in unterschiedlichen Netzen.
1. 192.168.0.2
2. 10.10.10.2

Wenn man sich auf die 192.168.0.2 verbindet, soll eben der virtual hosts greifen, ansonsten nicht. Der Port soll gleich bleiben.

Anbei meine Config, mit der virtual hosts nicht funktioniert. :/

Wenn jemand den Fehler findet, bzw mir dabei helfen könnte wär echt super! :)



# This is a basic ProFTPD configuration file (rename it to
# 'proftpd.conf' for actual use. It establishes a single server
# and a single anonymous login. It assumes that you have a user/group
# "nobody" and "ftp" for normal operation and anon.

ServerName "test ftp"
ServerType standalone
ServerIdent on "Servers identifying string"
DeferWelcome on
MultilineRFC2228 on

# Port 21 is the standard FTP port.
Port 21

DisplayLogin .welcome # Textfile to display on login
DisplayConnect /ftp/.connect # Textfile to display on connection
DisplayFirstChdir .firstchdir # Textfile to display on first changedir

# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask 022

MaxInstances 100
UseReverseDNS off
IdentLookups off

MaxClientsPerHost 10 "Only %m connections per host allowed"
MaxClients 50 "Only %m total simultanious logins allowed"
MaxHostsPerUser 10

# Set the user and group under which the server will run.
User nobody
Group nogroup

ScoreboardFile /var/log/scoreboard

# Some logging formats
LogFormat default "%h %l %u %t \"%r\" %s %b"
LogFormat auth "%v [%P] %h %t \"%r\" %s"
LogFormat write "%h %l %u %t \"%r\" %s %b"

# Define log-files to use
TransferLog /opt/proftp-1.3.0/log/proftpd.xferlog
ExtendedLog /opt/proftp-1.3.0/log/proftpd.access_log WRITE,READ write
ExtendedLog /opt/proftp-1.3.0/log/proftpd.auth_log AUTH auth
ExtendedLog /opt/proftp-1.3.0/log/proftpd.paranoid_log ALL default

AllowStoreRestart on
AllowRetrieveRestart on
RequireValidShell off

<Directory /ftp>
AllowOverwrite yes
HideNoAccess off

</Directory>

<Directory /ftp/iuser1>
AllowOverwrite off
HideNoAccess yes


</Directory>

<Directory /ftp/user2>
AllowOverwrite off
HideNoAccess yes
</Directory>

<Directory /ftp/user3>
AllowOverwrite off
HideNoAccess yes
</Directory>

<Directory /ftp/user4>
AllowOverwrite off
HideNoAccess yes
</Directory>

DefaultRoot ~

AllowOverwrite on

# Bar use of SITE CHMOD by default
<Limit SITE_CHMOD>
DenyAll
</Limit>
<VirtualHost 192.168.0.2>
ServerName "Test"
</VirtualHost>
ServerName "Test"
DisplayLogin .welcome2 # Textfile to display on login
</VirtualHost>