FTP Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsSystem AdministrationFTP Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 5th, 2012, 09:26 AM
pyr0commie pyr0commie is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2012
Posts: 12 pyr0commie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 46 m 56 sec
Reputation Power: 0
Question Cannot access my FTP server

I'm having a strange problem with accessing my FTP server. I have a computer on my home network running bftpd on Arch Linux. If I use a command line client to access the site, it works perfectly. However, when I try to use the browser on my Windows box it can't connect. This is really strange because it worked when I first set it up and I haven't changed anything since then.

I know the browser tries to use passive mode, so I have configured it to use any port from 1400-1440. I have forwarded these ports, allowed the connections from the iptables firewall AND my router's firewall and still no luck.

I'd be grateful for any help.

Reply With Quote
  #2  
Old August 5th, 2012, 12:49 PM
pyr0commie pyr0commie is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2012
Posts: 12 pyr0commie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 46 m 56 sec
Reputation Power: 0
So a remote FTP tester says that the connection times out, whether I use my hostname or my IP address. I know for a fact that there are no routing issues because I can access my web server with no problems.

Netstat says that my server is listening on port 21, as it should be.

I can access my site from a command-line client but only using active mode. The server is configured to use ports 40000 to 40040 for passive data connections - I have allowed these ports using iptables and allowed them through my router's firewall.

This is so strange, I had no problems before. Might my ISP be blocking the connections? Or maybe I accidently enabled a firewall that I didn't know about.

Reply With Quote
  #3  
Old August 6th, 2012, 08:35 AM
pyr0commie pyr0commie is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2012
Posts: 12 pyr0commie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 46 m 56 sec
Reputation Power: 0
update

So I loaded the iptables module ip_conntrack_ftp, still no luck
although I admit I don't know what that actually does

When I connect from my Windows box using the command-line, the connection times out when I issue the DIR command.

When I connect from the same machine, it doesn't matter whether I use the local IP address, the external IP address, localhost or my external hostname, it all works as it should.

So I am thinking this is something to do with the 227 code, because it returns the IP address (but only the internal one which is wrong).

Enabling pasv_promiscuous does nothing, which is just as well as it's a massive security hole.

Reply With Quote
  #4  
Old August 6th, 2012, 08:46 AM
pyr0commie pyr0commie is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2012
Posts: 12 pyr0commie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 46 m 56 sec
Reputation Power: 0
update

double post

Last edited by pyr0commie : August 6th, 2012 at 08:46 AM. Reason: double post

Reply With Quote
  #5  
Old August 28th, 2012, 02:08 PM
pyr0commie pyr0commie is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2012
Posts: 12 pyr0commie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 46 m 56 sec
Reputation Power: 0
This has been solved now and I have no idea what I did...

oh well.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationFTP Help > Cannot access my FTP server

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap