Hi.

I've spent the last four months trying to erradicate
my problem. The problem was initiating a ftp client
transfer. Searching the web gave some hints to my
problem, but no solution.

The ipfilter-firewall is doing NAT on the outside
interface.

What I initially did was to add these lines to
/etc/ipnat.conf:

map ep0 0/0 -> 193.212.28.158/32
map ep0 0/0 -> 0/32 proxy port 21 ftp/tcp

which would give me NAT and supposedly active ftp
client access to the internet. It gave me NAT (HTTP,
ssh etc.) but no ftp. I could permit all hosts access
by allowing all ports above 1024 to solve it, but
security-wise this is a very bad QADS (quick and dirty
solution).

The proper solution was to swap the two lines, active
ftp client sessions now works like a charm.

The proper /etc/ipnat.conf:

map ep0 0/0 -> 0/32 proxy port 21 ftp/tcp
map ep0 0/0 -> 193.212.28.158/32

I do beleive I'm not the only one who had this
problem. So it's an idea to add it to the FAQ that
'Running an FTP Client' behind a NAT'ed
ipfilter-firewall requires the above mentioned lines
in this specific order.

Regards
Claus Guttesen

Beskyt din computer mod virus og misbrug! L�s mere i Yahoo! Sikkerhedscenter p� 
www.yahoo.dk/sikkerhedscenter

Reply via email to