after i trace code, i think all rdr rule can not be worked with proxy.
bascause i can not link proxy function after keyword "RDR".
i am not sure whether the above is correct.?
But in most case of the natd,ALG ( Application Level Gate )
must can be using two direction ("virtual to global" or "global to
virtual" ).
but Proxy is stronger than ALG (Proxy have state checking).
So i modify RDR Code, when i add RDR rule,i inforce to link the
proxy.change appr_new to log this proxy is created by rdr or map rule
i also do change the appr_cehck function. let it can be using in this
mechanism.
but all proxy functions must be rewritten.
----- Original Message -----
From: Jim Sandoz <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, October 29, 2002 12:58 AM
Subject: Re: Ftp server can not work behind the ipf (ipnat)
>
> clearly you have read the ftp RFC's and know that
> just rdr'ing port 21 is not enough to implement
> passive ftp?
>
> jim
>
>
>
>
> [EMAIL PROTECTED] wrote:
>
> > i try to porting ipf into the SOHO adsl router. but ipnat is abnormal.in
> > the virtual side i
> >
> > have a ftp server, but i can not using passive mode to access server.i
> > also try in the FreeBSD 4.5.but i can NOT work. who can help me..
> >
> > interface(vr0,global,172.16.12.21) <-> ipnat <->
> > interface(vr1,virtal,10.10.10.1)
> >
> > FTP Server is in the vr1, 10.10.10.2
> >
> > my rule :
> >
> > map vr0 10.10.10.0/24 -> 172.16.12.21/32 proxy port ftp ftp/tcp
> > map vr0 10.10.10.0/24 -> 172.16.12.21/32 portmap tcp/udp 40000:50000
> > map vr0 10.10.10.0/24 -> 172.16.12.21/32
> >
> > rdr vr0 0.0.0.0/0 port 21 -> 10.10.10.2 port 21
> >
> >
> >
> > Thx.......
> >
> >
> >
> > Barret lee,
> >
> > Taipei,Taiwan
> >
>
>