Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
FTP "Can't open data connection"
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
Zhen85
n00b
n00b


Joined: 03 May 2005
Posts: 14

PostPosted: Tue Nov 13, 2007 3:07 am    Post subject: FTP "Can't open data connection" Reply with quote

Hi All:
I've been using a Gentoo box as a router for a while now, and I've noticed that I can't access some FTP sites.
I get an error saying "Can't open data connection". I tried searching for this error on this forum but couldn't find anything.
Basically, these ftp sites would be accessible from work, but not from home where I'm behind my gentoo router.
FTP is enabled in the kernel, and everything else seems to work.

Is there anything I'm missing?

I know I'm not providing a lot of info here, but thats simple because I don't know what to look for.

Any help is appreciated.

Thanks

Zhen
Back to top
View user's profile Send private message
Keruskerfuerst
Advocate
Advocate


Joined: 01 Feb 2006
Posts: 2289
Location: near Augsburg, Germany

PostPosted: Tue Nov 13, 2007 9:23 am    Post subject: Reply with quote

I have the same problem with some sides.

For FTP port 21 should be sufficient to be opened, but data connection is lost in this case sometimes.


Last edited by Keruskerfuerst on Tue Nov 13, 2007 10:14 am; edited 1 time in total
Back to top
View user's profile Send private message
WintermuteX
n00b
n00b


Joined: 29 Apr 2006
Posts: 48
Location: Germany

PostPosted: Tue Nov 13, 2007 10:03 am    Post subject: Reply with quote

did you compile the connection tracking (conntrack) module in the kernel?
Back to top
View user's profile Send private message
elestedt
Guru
Guru


Joined: 13 Mar 2005
Posts: 383

PostPosted: Tue Nov 13, 2007 1:00 pm    Post subject: Re: FTP "Can't open data connection" Reply with quote

Zhen85 wrote:
Hi All:
I've been using a Gentoo box as a router for a while now, and I've noticed that I can't access some FTP sites.
I get an error saying "Can't open data connection". I tried searching for this error on this forum but couldn't find anything.
Basically, these ftp sites would be accessible from work, but not from home where I'm behind my gentoo router.
FTP is enabled in the kernel, and everything else seems to work.

Is there anything I'm missing?

I know I'm not providing a lot of info here, but thats simple because I don't know what to look for.

Any help is appreciated.

Thanks

Zhen


If you're behind a router and the remote side is behind a router - without any port forwarding except for port 21 - then you will not be able to connect. Either you or the FTPd have to be in active mode (i.e accept incoming data connections) for you to be able to establish a data connection with the server.
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