In article <fbTvd.57$(E-Mail Removed)>,
B H <(E-Mail Removed)> wrote:
:I've had some ftp-problems with my Linux-box (fedora core 3) when
:connecting to a Windows ftp server at my isp which requires active
:mode. The ftp session freezez after loging when I try to do e.g. a LIST
:command.
:I have had some problems identifying the source of the error, but last
:night I shut off the local firewall by using "iptables stop" command.
:After this I could ftp without problems.
:
:My Linux-box is behind a router with firewall. The router is doing local

HCP. Maybe this could be the source of my problem? I have another
:Windows XP box on the same LAN, and it can ftp to the same server
:without problems (both pc's are set to active mode so this is not the

roblem).
:So there must be some problems with my iptables settings. Any experts

ut there that can shed some lights on the possible problem? See below.
[SNIPPED]
FTP is a complex protocol that involves opening a separate connection
for the data transfer. An FTP client running in active mode instructs
the server to open a data connection back to a port number selected by
the client. If you're not running a connection tracking module that
knows how to peek inside the FTP control packets and identify that port,
the server's connection attempt will be rejected by your firewall.
Your options are:
a) tell your FTP client to use passive mode, which causes the
client, not the server, to open the data connection,
or b) load the kernel's ip_conntrack_ftp module so that the server's
data connection can be recognized as RELATED.
I highly recommend that you take a look at Oskar Andreasson's excellent
_Iptables_Tutorial_, which is available in several forms from
http://iptables-tutorial.frozentux.net/
--
Bob Nichols AT comcast.net I am "rnichols42"