View previous topic :: View next topic |
Author |
Message |
Karhot87 Tux's lil' helper


Joined: 26 Apr 2007 Posts: 137 Location: Poggio Murella (GR) ma studio a Roma
|
Posted: Wed Jan 16, 2008 10:17 pm Post subject: Configurazione ftp |
|
|
Ciao a tutti, sto cercando di configurare un server ftp con proftpd. Il problema è che uso un router per connettermi ad internet, Questo è il mio file di configurazione :
Code: | # 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 anonymous access.
ServerName "ftp Jacky"
ServerType standalone
DefaultServer on
RequireValidShell off
AuthPAM off
AuthPAMConfig ftp
# Port 21 is the standard FTP port.
Port 21
#User FTP
#Group FTP
MasqueradeAddress 151.32.40.223
# Indirizzo IP esterno da utilizzare
PassivePorts 4000 4011
# Range di porte da utilizzare
# 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 the maximum number of processes per service
# (such as xinetd).
MaxInstances 30
# Set the user and group under which the server will run.
User proftpd
Group proftpd
# Normally, we want files to be overwriteable.
<Directory />
AllowOverwrite on
</Directory>
# A basic anonymous configuration, with no upload directories.
<Anonymous ~ftp>
User ftp
Group ftp
# We want clients to be able to login with "anonymous" as well as "ftp".
UserAlias anonymous ftp
# 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
DisplayChdir .message
# Limit WRITE everywhere in the anonymous chroot.
<Limit WRITE>
DenyAll
</Limit>
</Anonymous>
|
non capisco cosa devo mettere in PassivePorts.[/code] |
|
Back to top |
|
 |
lavish Bodhisattva

Joined: 13 Sep 2004 Posts: 4296
|
Posted: Thu Jan 17, 2008 1:16 am Post subject: |
|
|
Moved from Forum italiano (Italian) to Forum di discussione italiano. _________________ minimalblue.com | secgroup.github.io/ |
|
Back to top |
|
 |
dark_knight Tux's lil' helper


Joined: 22 Apr 2006 Posts: 112
|
Posted: Mon Jan 28, 2008 12:10 am Post subject: Re: Configurazione ftp |
|
|
In modalità passiva, il server FTP, quando deve trasferire dei dati, concorda con il client (con la connessione di controllo sulla porta 21) una porta su cui mettersi in ascolto ed attende che il client si connetta ad essa. Non appena il client si connette a quella porta, il trasferimento dei dati ha inizio.
1) Quella direttiva molto probabilmente indica al server in quale range può aprire la porta per la connessione dati, in modalità passiva.
2) Se il server FTP deve essere accessibile anche dietro al router, se stai facendo NAT devi fare il forward anche di quelle porte (devi anche permettere il passaggio dei dati, se c'è un firewall). _________________ You can say that you are a true Gentoo-addicted when you type emerge --update --deep --newuse happiness. |
|
Back to top |
|
 |
Karhot87 Tux's lil' helper


Joined: 26 Apr 2007 Posts: 137 Location: Poggio Murella (GR) ma studio a Roma
|
Posted: Sat Feb 09, 2008 4:38 pm Post subject: |
|
|
Quote: | Se il server FTP deve essere accessibile anche dietro al router, se stai facendo NAT devi fare il forward anche di quelle porte (devi anche permettere il passaggio dei dati, se c'è un firewall). |
Si deve essere accessibile anche dietro al router. Nel file di configurazione ho messo
Code: |
# Indirizzo IP esterno da utilizzare
MasqueradeAddress 151.32.42.10
# Range di porte da utilizzare
PassivePorts 4000 4011
|
e nel router ho configurato il reindirizzamento delle porte cosi:
Code: | Protocollo TCP
Port Start 4000
Port End 4000
Port Map Start 4000
Port Start End 4000
Protocollo TCP
Port Start 4011
Port End 4011
Port Map Start 4011
Port Start End 4011
Protocollo TCP,UDP
Port Start 21
Port End 21
Port Map Start 21
Port Start End 21 |
pero sempre il solito problema in locale tutto ok da remoto nulla...
Dov'è che sbaglio??[/quote] |
|
Back to top |
|
 |
|