Re: can't transfer files via ftp
Ops, my english is so bad? Sorry, I'm brazilian. =P
The FTP connection is, at first time, made at port 20 of the UDP
protocol. After this all traffic pass through port 21 TCP (server) and
an unprivileged (1024 to 65535) TCP port.
Resuming, allow trafic at port 20 of UDP protocol and port 21 of TCP protocol:
iptables -t filter -A FORWARD -p tcp --dport 21 -j ACCEPT
iptables -t filter -A FORWARD -p udp --dport 20 -j ACCEPT
See RFC959 for details: http://www.ietf.org/rfc/rfc0959.txt
--
Maxwillian Miorim - LPIC1 (LPID 85928)
miorimmax@gmail.com
Kit Total-Nerd-Tabajara: Slackware 10.2 e OpenBSD 3.8
Reply to: