www.ProFTPD.de
13. März 2007, 18:24:12 *
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: proftpd 2 Netzwerkinterfaces?  (Gelesen 99 mal)
0 Mitglieder und 1 Gast betrachten dieses Thema.
ACID25
ProFTPD
*
Offline Offline

Beiträge: 1


Profil anzeigen
« am: 09. Januar 2007, 14:50:57 »

Hallo

ich habe hier einen Server mit 2 NIC´s die wie folgt ausschauen
Code:
cat /etc/sysconfig/network-scripts/ifcfg-eth0
# Intel Corp.|82547GI Gigabit Ethernet Controller
DEVICE=eth0
BOOTPROTO=none
BROADCAST=80.88.194.255
HWADDR=00:30:48:88:35:1G
IPADDR=80.88.194.53
NETMASK=255.255.254.0
NETWORK=80.88.194.0
ONBOOT=yes
TYPE=Ethernet
USERCTL=no
PEERDNS=no
GATEWAY=80.88.194.1
IPV6INIT=no
und die zweite Karte ist so konfiguriert
Code:
cat /etc/sysconfig/network-scripts/ifcfg-eth1
# Intel Corp.|82547GI Gigabit Ethernet Controller
DEVICE=eth1
BOOTPROTO=none
BROADCAST=80.88.201.255
HWADDR=00:30:48:88:35:1H
IPADDR=80.88.201.248
NETMASK=255.255.255.192
NETWORK=80.88.201.192
ONBOOT=yes
TYPE=Ethernet
USERCTL=no
PEERDNS=no
#GATEWAY=80.88.194.1
IPV6INIT=no
Das Problem ist folgendes, wenn ich eth1 aktivieren geht kein ftp mehr im 201 netz. ich kann mich nicht mehr per ftp verbinden
es endet immer im  timeouts. Muss ich evtl. einen virtuellen host in der proftd.conf eintragen?
Die proftpd.conf schaut so aus
Code:
at /etc/proftpd.conf
#
# To have more informations about Proftpd configuration
# look at : http://www.proftpd.org/
#

# 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                      "ProFTPD"
ServerType  inetd
ServerType  inetd
DefaultServer                   on
<Global>
DefaultRoot     ~               psacln
AllowOverwrite          on
</Global>
DefaultTransferMode     binary
UseFtpUsers                     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

# 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

#SocketBindTight on
#Port 0
#<VirtualHost 80.88.194.53>
#  Port 21
#</VirtualHost>
#
#<VirtualHost 80.88.201.248>
#  Port 21
#</VirtualHost>


#Following part of this config file were generate by PSA automatically
#Any changes in this part will be overwritten by next manipulation
#with Anonymous FTP feature in PSA control panel.

#Include directive should point to place where FTP Virtual Hosts configurations
#preserved

ScoreboardFile /var/run/proftpd/scoreboard

# Primary log file mest be outside of system logrotate province
TransferLog /usr/local/psa/var/log/xferlog
#Change default group for new files and directories in vhosts dir to psacln
<Directory /home/httpd/vhosts>
        GroupOwner      psacln
</Directory>
# Enable PAM authentication
AuthPAM on
AuthPAMConfig proftpd
IdentLookups off
UseReverseDNS off
AuthGroupFile   /etc/group
Include /etc/proftpd.include
PassivePorts 15000 20000
Wäre nett wenn mir jemand dabei helfen könnte das ftp auf beiden interfaces funzt  Huch

MfG
ACID25
Gespeichert
stonki
Administrator
ProFTPD
*****
Offline Offline

Beiträge: 1853


15318939
Profil anzeigen WWW E-Mail
« Antwort #1 am: 09. Januar 2007, 16:00:20 »

ändere den Servertyp mal auf standalone und teste dann noch mal (inetd natürlich ebenfalls anpassen). Grundsätzliche sehe ich keinen Fehler und ich habe 8 IPs auf einem meiner Webserver....
Gespeichert

www.stonki.de:    the more I see, the more I know.......
www.proftpd.de:   Deutsche ProFTPD Dokumentation
www.krename.net:  Der Batch Renamer für KDE
www.kbarcode.net: Die Barcode Solution für KDE
VolGas
Moderator
ProFTPD
*****
Online Online

Beiträge: 770



Profil anzeigen
« Antwort #2 am: 19. Januar 2007, 08:42:47 »

Hallo,

Stonki hat recht.
Auch wir haben mehrere IP's auf einem Rechner und haben mit ein und dem selben ProFTPD für jede IP
ein etwas anderes Setting. Ich habe unser Setting zu einer in den meisten Fällen nutzbaren Beispielkonfiguration
umgeschreiben und ->hier der Allgemeinheit zur Verfügung gestellt.

Ich habe mir viel Mühe gegeben, daß man Strukturen und Zusammenhänge klar erkennen und auseinander
halten kann. Vielleicht hilft Dir dieses Beispiel, Deine eigene Konfiguration so umzuschreiben, daß sie mit
Deinen beiden Netzwerkkarten und mit mehreren IP's ebenfalls funktioniert.

mfg.
  VolGas
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.054 Sekunden mit 18 Zugriffen.