Search:  
Gentoo Wiki

Ftp

This article is a Stub. You can help Gentoo-Wiki by expanding it.


Contents

Definition

FTP stands for File Transfer Protocol.

FTP server usually stock number of file available to user from a remote connection. They might allow uploading of files.

Active FTP

Passive FTP

Passive FTP (or PASV) does not use port 20, communications between server and client occur to/from port 21 of the server and the data is transmitted to/from port >1023.

FTP Clients

Must-have:

Others:

FTP Servers

See Category:FTPD.

IPTables

A decent Iptables configuration on the client side:

File: Iptables.conf
 # FTP
 -A INPUT        -p tcp  --sport 21      -m state --state ESTABLISHED            -j ACCEPT
 -A OUTPUT       -p tcp  --dport 21      -m state --state NEW,ESTABLISHED        -j ACCEPT
 # active
 -A INPUT        -p tcp  --sport 20 --dport 1024: -m state --state ESTABLISHED,RELATED           -j ACCEPT
 -A OUTPUT       -p tcp  --dport 20 --sport 1024: -m state --state ESTABLISHED                   -j ACCEPT
 # passive
 -A INPUT        -p tcp  --sport 1024: --dport 1024: -m state --state ESTABLISHED                -j ACCEPT
 -A OUTPUT       -p tcp  --sport 1024: --dport 1024: -m state --state ESTABLISHED,RELATED        -j ACCEPT 
{{{2}}}

Links

Active FTP vs. Passive FTP, a Definitive Explanation

Retrieved from "http://www.gentoo-wiki.info/Ftp"

Last modified: Thu, 24 Apr 2008 22:46:00 +0000 Hits: 6,239