Hi Firewall experts,

When I try to get 

ftp://us-1.updates.f-prot.com/pub/fp-def.zip

with wget on my NetBSD 1.6/i386 system with ipfilter,
ftp data connection from the remote port 20 gets blocked
by the firewall.

I have tried some other ftps but they do not get blocked
and ipnat -l shows the mappings correct.

Can somebody please examine what the problem with this
URI if any.

Where do I find docs regarding how ftp and other NAT proxies work.
I couldn't get it in the man page or the howto/faq etc

Thanks,

Ram Chandar
--


ipf: IP Filter: v3.4.27 (336)
Kernel: IP Filter: v3.4.27

This is what I have in my /etc/ppp/ip-up

echo "map $1 $4/32 -> $4/32 proxy port ftp ftp/tcp" | /usr/sbin/ipnat -f -


soitlum: {55} ipnat -l
List of active MAP/Redirect filters:
map ppp0 61.11.249.13/32 -> 61.11.249.13/32 proxy port ftp ftp/tcp

List of active sessions:
MAP 61.11.249.13     65409 <- -> 61.11.249.13     65409 [204.118.23.103 21]
        proxy ftp/6 use 1 flags 0
                proto 6 flags 0 bytes 1946 pkts 28 data YES size 376
        FTP Proxy:
                passok: 1
        Client:
                seq 8e63ddc2 len 17 junk 0 cmds 9
                buf [RETR fp-def.zip\015\012255,123\015\012\015\012\000]
        Server:
                seq c7a4f1af len 0 junk 0 cmds 8
                buf [200 PORT command successful.\015\012\012estrictions 
apply.\015\012 server ready.\015\012331 Anonymous login ok, send your 
complete email address as your password.\015\012rot.com/pub/\015\012 
\015\000]

13/11/2003 16:39:28.912328 ppp0 @0:7 b 204.118.23.103,20 -> 61.11.249.13,65403 
PR tcp len 20 60 -S IN
13/11/2003 16:39:31.933693 ppp0 @0:7 b 204.118.23.103,20 -> 61.11.249.13,65403 
PR tcp len 20 60 -S IN
13/11/2003 16:39:38.128358 ppp0 @0:7 b 204.118.23.103,20 -> 61.11.249.13,65403 
PR tcp len 20 60 -S IN
13/11/2003 16:39:49.966417 ppp0 @0:7 b 204.118.23.103,20 -> 61.11.249.13,65403 
PR tcp len 20 60 -S IN

Reply via email to