IPfilter
[Top] [All Lists]

Invalid PORT command - FTP/IPNAT

To: ipfilter@coombs.anu.edu.au
Subject: Invalid PORT command - FTP/IPNAT
From: "Corey Johnston" <coreyj@gmail.com>
Date: Mon, 19 Mar 2007 21:41:06 +1100
Delivered-to: sp-com-lists@consult.net
Delivered-to: ipfilter-list@securepoint.com
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=i6joTEeYGBrPL6dOmxDH1IAgY7r2sepydT9X+FIqj29HO7JpsYTad216qLXkFLt1eRqWLSlAHCdAeE4rlpp3jnfr3HGaYlz7ZJ4V1vOpRn4oOxL5Dldamp+h8Oa05/SO/AiCNGwa14jEOw3JyLBMS8Qam3bYopZEzyX5tolH1eA=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=YL/0BKT4oLMJYbyXYkmwGMTegFyfSThtN0vPK4rzJXkx+T63XsVDHOXFagsmsE/1pug1RsIwfUjziAuhPJ6GQ4pPc8wZ8qRLQ7YqhigWBJ2Po4x1L5rRlrr0GMGHzVytmeVWd//8OwGBngMv2NVtJzU4ggaAueY1PymW90sIDX4=
Sender: owner-ipfilter@coombs.anu.edu.au
Just wondering if anybody can shed some light on an error I'm getting
trying to initiate an (active) ftp session from behind a NAT firewall.

I've got two IPFilter firewalls (both 4.1.17, both on Solaris) and
only one has a problem with FTPing.

The difference is that one firewall has a slightly more complicated
ruleset than the other, and rather than NATing all addresses with the
firewall's external IP (only), one firewall NATs a subset of the
outbound addresses to an IP other than the firewalls IP (same subnet).

In both cases, all other protocols other than FTP work fine under this
configuration:

Firewall one: FTP works
map nge1 10.0.0.0/8 -> 0/32 proxy port ftp ftp/tcp
map nge1 from 10.0.0.0/8 to 0.0.0.0/0 -> 0/32 portmap tcp/udp auto
map nge1 from 10.0.0.0/8 to 0.0.0.0/0 -> 0/32


Firewall two: FTP broken
map bge1 from 0.0.0.0/0 to a.b.c.d/32 port = 21 -> w.x.y.z/32 proxy
port ftp ftp/tcp
map bge1 from 0.0.0.0/0 to a.b.c.d/32 -> w.x.y.z/32 portmap tcp/udp auto
map bge1 from 0.0.0.0/0 to a.b.c.d/32 -> w.x.y.z/32

On the second firewall, the rules are slightly different as I need to
map only a subset of connections, and they need to map to an address
which isn't 0/32.

But as everything other than FTP seems to work, it seems like I'm
doing something wrong with FTP, or there's a bug somewhere.

Any ideas would be appreciated!

corey

<Prev in Thread] Current Thread [Next in Thread>