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
- the transition is initiated by the client to port 21;
- the server answers from port 21 to port >1023;
- the data is transmitted from the server from the port 20;
- the client answers to port 20
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:
- net-misc/wget
- net-ftp/ftp
Others:
- net-ftp/axyftp
- net-ftp/cmdftp
- net-ftp/easyftp
- net-ftp/ftpcube
- net-ftp/gftp
- net-ftp/kftpgrabber
- net-ftp/lftp
- net-ftp/ncftp
- net-ftp/pftpfxp
- net-ftp/tnftp
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
Last modified: Fri, 25 Apr 2008 08:46:00 +1000 Hits: 8,250
Created by NickStallman.net, Luxury Homes Australia
Real estate agents should list their apartments, townhouses and units in Australia.
