Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Need some help from a netfilter guy on FTP PASV problems
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
faz
n00b
n00b


Joined: 02 Nov 2002
Posts: 73
Location: the Netherlands

PostPosted: Tue Apr 22, 2003 6:23 am    Post subject: Need some help from a netfilter guy on FTP PASV problems Reply with quote

Hi all,

I have a kind of strange problem when FTP-ing to a certain FTP server from my client. I'm going thru a netfilter firewall who is also MASQ-ing. I know FTP thru netfilter is a challenge :wink: .

Doing FTP on this server, the access to the server slows down to a crawl. I've been investigating it and it seems to me the server gives a none standard (but legal) response to the PASV command. It's response is:

Code:
227 Passive mode OK ({numbers})


It then wait's a long time and continues. Is does this every time.


If i look at the responses of "normal" working FTP servers I get:

Code:
227 Entering Passive Mode ({numbers})


and it continues.

There seems to be a patch for this called ftp-pasv-fix.patch, but I can't find it. It's not in the netfilter patch-o-rama, nor in CVS anymore. The fix seems to be old. I found references of it being combined with other patches, etc, but I can't find the patch itself nor information wether it's already in the iptables package.

I've tried with version 1.2.7a and 1.2.8 of iptables, both show the same behavior. I don't know wether this fix is in any of these versions.

Oh, off course I loaded both the ip_nat_ftp and ip_conntrack_ftp modules. What I do find a bit strange is that lsmod reports them as being "unused".

Does anyone know of this patch and it's status?
Is this my problem in the first place and, if not, what else could it be?

Any help on this would be GREAT.[/code]
Back to top
View user's profile Send private message
Koon
Retired Dev
Retired Dev


Joined: 10 Dec 2002
Posts: 518

PostPosted: Tue Apr 22, 2003 8:36 am    Post subject: Reply with quote

The delay looks like a IP-resolution problem... Try adding the client IP/name in the /etc/hosts file just to see if it reduces the delay...

-K
Back to top
View user's profile Send private message
faz
n00b
n00b


Joined: 02 Nov 2002
Posts: 73
Location: the Netherlands

PostPosted: Tue Apr 22, 2003 8:45 am    Post subject: Reply with quote

No, that's not it.

But I came a bit further now. I've manged to disable passive mode with KBear, and now it works much faster, so it's definitely the PASV statement that's causing the delay.

Is there a way to work in non-passive mode with konqueror?
Back to top
View user's profile Send private message
Koon
Retired Dev
Retired Dev


Joined: 10 Dec 2002
Posts: 518

PostPosted: Tue Apr 22, 2003 8:53 am    Post subject: Reply with quote

Can't help you, I use Gnome.

-K
Back to top
View user's profile Send private message
faz
n00b
n00b


Joined: 02 Nov 2002
Posts: 73
Location: the Netherlands

PostPosted: Tue Apr 22, 2003 8:57 am    Post subject: Reply with quote

Hmmm, i don't think it has anything to do about Gnome or KDE...
Back to top
View user's profile Send private message
faz
n00b
n00b


Joined: 02 Nov 2002
Posts: 73
Location: the Netherlands

PostPosted: Tue Apr 22, 2003 9:04 am    Post subject: Reply with quote

Hmmm, i don't think it has anything to do about Gnome or KDE...
Back to top
View user's profile Send private message
Koon
Retired Dev
Retired Dev


Joined: 10 Dec 2002
Posts: 518

PostPosted: Tue Apr 22, 2003 9:11 am    Post subject: Reply with quote

I was just replying to your question on Konqueror (how to disable PASV in Konq)... Can't help, I don't use it.
As to your problem, I don't have any clue, I am not a patch expert ;)

-K
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum