
6. File Transfer Protocol (FTP)
Nota: prima di leggere il capitolo che segue è necessario acquisire una
certa familiarità con il
File System
del WebGate, descritto al capitolo
File System. E’ possibile accedere al file system in lettura tramite HTTP.
E’ tuttavia necessario l’FTP per memorizzare i file nel WebGate. L’FTP
è un modo semplice per gestire i file. I client FTP moderni si integrano
perfettamente con i sistemi operativi a finestre, semplificando così il
trasferimento di file. Allo stesso tempo forniscono un’ampia descrizione
degli errori qualora qualcosa non funzioni correttamente.
6.1 I client FTP
Consigliamo di utilizzare il programma freeware SmartFTPTM
(http://www.smartftp.com).
E’ possibile tuttavia utilizzare pressoché qualsiasi client FTP, anche se
alcuni sono sconsigliati (come ad esempio Microsoft© Internet
Explorer®).
I client FTP in genere necessitano solamente di una piccola, e a volte
di nessuna, configurazione per comunicare con il WebGate.
Vanno comunque rispettate le seguenti regole:
• Il client non va impostato in “Passive Mode“ (PASV);
• Il numero massimo di “thread” da utilizzare per lo scarico deve essere
impostato a 1;
• Se si passa attraverso un Firewall o un Proxy Server, assicurarsi che
il protocollo FTP non sia bloccato. Il blocco dell’FTP è spesso
impostato per “sicurezza” come default nei Firewall. In caso di
difficoltà di connessione, contattate il vostro amministratore di
sistema.
6.2 Protezione file con “Accesso in scrittura”
Ciascun file memorizzato nel WebGate ha una protezione all’accesso
“in scrittura”, distinta dalla protezione all’accesso “in lettura”, che ne
evita la cancellazione o la modifica, involontaria o intenzionale, da
parte di utenti non autorizzati.
La protezione file con Accesso in Scrittura inibisce le funzioni di
“scrittura” o di “eliminazione” in FTP
.
La protezione dei file in scrittura è molto semplice: ogni file che si
carica sul WebGate avrà un proprio “livello di accesso in scrittura”
uguale al livello di accesso del login FTP utilizzato per la connessione.
Solo gli utenti con un livello di accesso uguale o superiore a questo,
potranno eliminare o sovrascrivere i file. Ad esempio, se ci si collega
con il client FTP utilizzando un livello di accesso da “supervisor”, solo i
supervisor e gli administrator saranno in grado di modificare i file
caricati durante questa sessione.
E’ importante notare che, per lo stesso file, la protezione di accesso in
scrittura può essere ‘superiore’ rispetto alla protezione di accesso in
lettura: ad esempio, se vi collegate con il client FTP usando un livello di
accesso da “supervisor” e memorizzate un file nella cartella principale,
tutti saranno in grado di leggere i file, ma solo i supervisor e gli
administrator saranno in grado di modificarli.
6.3 Nota aggiuntiva
Non caricate nel WebGate un file se il nome contiene degli spazi. Se il
nome del file originale nel PC host contiene uno spazio, questo viene
troncato quando è copiato nel WebGate. In alcuni casi, si può avere
invece un messaggio di errore.
6. File Transfer Protocol (FTP)
Note: before reading the following chapter you must be accustomed
with the WebGate
File System
, described in File System.
File system read access is provided through HTTP. However FTP is
required to store files into WebGate.
FTP is a user friendly way to deal with files. Modern FTP clients fully
integrates with windows based operating systems, greatly simplifying
file transfers. Moreover they provide an extensive error description
when something doesn’t work properly.
6.1 The FTP client
We suggest to use the freeware program SmartFTPTM
(http://www.smartftp.com).
However, nearly any FTP client can be used, but some one is
discouraged (for example, Microsoft© Internet Explorer®).
FTP clients generally needs a little configuration to communicate with
WebGate, or nothing at all.
However, the following rules must be kept in mind:
• The client must not be set to “Passive Mode“ (PASV)
• The maximum number of threads to use for download must be set
to 1.
• f you are passing through a Firewall or a Proxy Server, make sure
FTP protocol is not blocked, since this is a common “security” limit
imposed by the firewalls’ default settings. If you are having troubles
with the connection contact your system administrator.
6.2 “Write Access” file protection
Every file stored into WebGate is provided with a “write” access
protection, distinguished from the “read” access protection, to avoid
involuntary or malicious file deletion or modification by unauthorized
users.
Write Access file protection acts denying “write” or “delete”
capabilities through FTP.
File write protection is quite straightforward: every file you upload to the
WebGate will get a “write access level” same as your current FTP login
access level used for the connection. Only users with an access level
equal or greater than this will be allowed to erase or overwrite it.
For example, if you logged in with the FTP client using a “supervisor”
access level, only supervisors and administrators will be able to
change the files you uploaded during this section.
For instance please note that, for the same file, write access protection
can be “stronger” than read access protection: for example, if you
logged in with the FTP client using a “supervisor” access level and you
stored a file into the root directory, everybody will be able to read the
file, but only supervisors and administrators will be allowed to change
that file.
6.3 Additional Note
Do not upload to the WebGate a file if the name contains spaces. If the
original file name in the host PC contains a space, the name is
truncated when copied into WebGate or an error is returned.
19
Manuale WebGate - cod. +030220230 rel. 1.0 - 16.09.2003