Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Dec 2003 08:26:37 -0500
From:      "fbsd_user" <>
To:        "al vanyushenkov" <>, <>
Subject:   RE: ftp access
Message-ID:  <>
In-Reply-To: <>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
The FTP protocol has to modes, active  and passive. In active mode
the remote FTP server will request an inbound connection for the
data connection and you have no rule to allow it in. In passive mode
the requesting FTP session issues the data connection which your
rules allow. To fix the problem and still keep your tight firewall,
all you have to do is tell the FTP client program you are using to
default to passive mode and them everything will work without any
changes to your ipfw rules.

-----Original Message-----
[]On Behalf Of al vanyushenkov
Sent: Tuesday, December 30, 2003 4:27 AM
Subject: ftp access

HI all!

I use FreeBSD 4.8 with ipfw2

I have ipfw rules

allow udp from me to any 21 keep-state out via rl0
allow tcp from me to any 21 setup keep-state out via rl0
deny all from any to any

rl0 is my internet interface.

When i tried to use ftp i connected, ls successfully,
but when i tried to get or put files i got records in ipfw.log
deny tcp x.x.x.x:20 y.y.y.y:z

where x.x.x.x is remote ip address
y.y.y.y is my ip address

Does anybody know what rules should i add to allow tcp connections
from me
and deny all connections from outside to me.

vanyushenkov alexey

_______________________________________________ mailing list
To unsubscribe, send any mail to

Want to link to this message? Use this URL: <>