Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Configurazione ftp
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano
View previous topic :: View next topic  
Author Message
Karhot87
Tux's lil' helper
Tux's lil' helper


Joined: 26 Apr 2007
Posts: 137
Location: Poggio Murella (GR) ma studio a Roma

PostPosted: Wed Jan 16, 2008 10:17 pm    Post subject: Configurazione ftp Reply with quote

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
View user's profile Send private message
lavish
Bodhisattva
Bodhisattva


Joined: 13 Sep 2004
Posts: 4296

PostPosted: Thu Jan 17, 2008 1:16 am    Post subject: Reply with quote

Moved from Forum italiano (Italian) to Forum di discussione italiano.
_________________
minimalblue.com | secgroup.github.io/
Back to top
View user's profile Send private message
dark_knight
Tux's lil' helper
Tux's lil' helper


Joined: 22 Apr 2006
Posts: 112

PostPosted: Mon Jan 28, 2008 12:10 am    Post subject: Re: Configurazione ftp Reply with quote

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
View user's profile Send private message
Karhot87
Tux's lil' helper
Tux's lil' helper


Joined: 26 Apr 2007
Posts: 137
Location: Poggio Murella (GR) ma studio a Roma

PostPosted: Sat Feb 09, 2008 4:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum