Subject: ipnat and ipf newbie q
To: None <netbsd-help@netbsd.org>
From: None <nero@www.in-design.com>
List: netbsd-help
Date: 09/15/1999 11:50:15
Hello all;

	I am trying to run ipnat and ipf on a small network. The config is as
follows:

gateway machine has one NIC card and it has one real address that routes through
a adsl modem and a 192.0.0.0 network number that works as the gateway for the
other machines on the network. 

/etc/ipf.conf :
pass    in      proto   tcp/udp all
pass    out     proto   tcp/udp all

/etc/ipnat.conf :
map le0 192.0.0.1/28 -> 0.0.0.0/32 portmap tcp/udp 0:65535
map le0 192.0.0.1/28 -> 0.0.0.0/32
map le0 192.0.0.1/28 -> 0.0.0.0/32 proxy port 21 ftp/tcp


everything works great except ftp, which logs in, and even gets the Welcomemessage but when listing or anything else getsa Illegal PORT command from
the ftp server. I cannot figure out why this is happening.

The gateway machine is running as 192.0.0.254
And all the local machines are running at 192.0.0.1 to 192.0.0.16

in the /log/var/messages I see :
Sep 15 10:37:34 ba-014 identd[1563]: Connection from ftp.linuxppc.org
Sep 15 10:37:34 ba-014 identd[1563]: from: 216.65.40.178 ( ftp.linuxppc.org ) for: 2048, 21
Sep 15 10:37:34 ba-014 identd[1563]: Returned: 2048 , 21 : NO-USER



If anyone can help me with what to do with this, I would greatly appreciate it.
Thanks
Tamer