On Tue, 21 Oct 2003, Lenk, Guido wrote:

> 
> 
> > -----Urspr�ngliche Nachricht-----
> > Von: Paul Armstrong [mailto:[EMAIL PROTECTED] 
> > Gesendet: Freitag, 17. Oktober 2003 14:30
> > An: Lenk, Guido
> > Cc: [EMAIL PROTECTED]
> > Betreff: Re: newbie: outgoing ftp - how?
> 
> > > i have:
> > > pass out quick on EXTIF proto tcp from any to any port = 20 
> > flags S keep state
> > > pass out quick on EXITF proto tcp from any to any port = 21 
> > flags S keep state
> >  
> > No, you really want:
> > pass out quick on EXTIF proto tcp from any to any port = 21 
> > flags S keep state
> 
> I don't see any difference!
>

There is some obvious differences but not knowing how your system is setup
a variation on the suggestion provided to you might be

pass in quick on INTIF proto tcp from any to any port = 21 flags S keep
state

> > 
> > You allso need the following ipnat rule (assuming your net is 
> > 192.168.6.0/24):
> > map EXTIF 192.168.6.0/24 -> 0/32 proxy port ftp ftp/tcp
> 
> doesn't work. Do i have to do that nating on inner and outer Filter?
>

Assuming I have interpreted the next section correctly, you have public
ip-addresses on your internal systems and natting isn't required hence the
following nat rule may be what you are after.

map EXTIF 0/0 -> 0/0 proxy port ftp ftp/tcp

This will have the effect of activating the FTP proxy with the outgoing
ip-address being that of the system initiating the FTP connection. There
is no requirement to have a rule to permit port 20 for active FTP from the
server as the FTP proxy caters for this. The above rule is what one would
use on a transparent i.e. ip-less firewall.

>
> > > If you're doing NAT for a network, you'll probably also want:
> > map EXTIF 192.168.6.0/24 -> 0/32 portmap tcp/udp 10000:65000  
> > map EXTIF 192.168.6.0/24 -> 0/32  
> 
> you mean real NAT? no they all have their own right ip.
> 

Output from ipnat -l would be helpful. We don't know what you are seeing
in the way of natted connections on your outgoing interface.

Cheers,

Larry.

Reply via email to