Mailing List Archive

FTP problem ...
Hello everybody,

I have setup my first iptables firewall that protects my LAN.

From a "masqueraded" machine, I can make a FTP to the FW box.

But when I try to FTP to a machine from in the Internet using SNAT,
I have the following errors :

...
230 : user john logged in.
ftp> ls
500 : illegal PORT command
425 : can't build data connection : Connection refused

I would appreciate any help.

Many thanks.

Sam
Re: FTP problem ... [ In reply to ]
"modprobe ip_nat_ftp" has solved my problem.

Sam

Samuel Tran wrote:

> Hello everybody,
>
> I have setup my first iptables firewall that protects my LAN.
>
> From a "masqueraded" machine, I can make a FTP to the FW box.
>
> But when I try to FTP to a machine from in the Internet using SNAT,
> I have the following errors :
>
> ...
> 230 : user john logged in.
> ftp> ls
> 500 : illegal PORT command
> 425 : can't build data connection : Connection refused
>
> I would appreciate any help.
>
> Many thanks.
>
> Sam
Re: FTP problem ... [ In reply to ]
Do you just try the passive command ?

Jean-Philippe

Samuel Tran wrote:
>
> Hello everybody,
>
> I have setup my first iptables firewall that protects my LAN.
>
> From a "masqueraded" machine, I can make a FTP to the FW box.
>
> But when I try to FTP to a machine from in the Internet using SNAT,
> I have the following errors :
>
> ...
> 230 : user john logged in.
> ftp> ls
> 500 : illegal PORT command
> 425 : can't build data connection : Connection refused
>
> I would appreciate any help.
>
> Many thanks.
>
> Sam
Re: FTP problem ... [ In reply to ]
If I remember correctly, ip_nat_ftp or ip_conntrack etc has been found to
contains a bug! search the archives for details

-B

On Mon, 6 Aug 2001, Jean-Philippe Le [iso-8859-1] Hénaff wrote:

> Do you just try the passive command ?
>
> Jean-Philippe
>
> Samuel Tran wrote:
> >
> > Hello everybody,
> >
> > I have setup my first iptables firewall that protects my LAN.
> >
> > From a "masqueraded" machine, I can make a FTP to the FW box.
> >
> > But when I try to FTP to a machine from in the Internet using SNAT,
> > I have the following errors :
> >
> > ...
> > 230 : user john logged in.
> > ftp> ls
> > 500 : illegal PORT command
> > 425 : can't build data connection : Connection refused
> >
> > I would appreciate any help.
> >
> > Many thanks.
> >
> > Sam
>
>