FTP Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
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 January 4th, 2004, 03:11 AM
yousaf931 yousaf931 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 1 yousaf931 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Tech help getting FTP files through a router

I need help receiving files through a router that I have on my computer.

I have 2 computers which are linked through a router and I have cable internet access. I recently put bulletproof FTP server on one of the computers and removed the firewall that was on it.

I opened up ports 20 and 21 according to the D-Link instructions that are on the D-link.com website. I have Dlink DI-604 router.

Someone is trying to FTP me files and I can't seem to receive them. He is getting a timeout.

Can someone give me instructions (preferably screenshots) that would guide me in the 1-2 steps I am missing in getting this setup?

Platform:
windows xp home
DLink DI-604

Thanks,

Reply With Quote
  #2  
Old January 5th, 2004, 08:37 AM
juniperr juniperr is offline
network dude
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Dec 2003
Posts: 1,679 juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level)juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level)juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level)juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level)juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level)juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level)juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 21 h 55 m 2 sec
Reputation Power: 85
enble forwarding on your router to the FTP server.

Reply With Quote
  #3  
Old January 22nd, 2004, 01:40 PM
CMan CMan is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 2 CMan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 17 m 57 sec
Reputation Power: 0
You need to setup your router to allow for PASV forwarding.
The ftp server actually uses 2 ports, the port 21 used for sending username and password information and a second port that sends the file information.

heres a site that can explain it in better detail link

I use GuildFTP for my server and have it set to allow only 1 conection on port 2100. This slightly reduces risk for attacks. When you have the ftp server listening on port 21 and passive port of * to *, you then need to tell your router to forward those ports in addition to the standard port 21.

Last edited by CMan : January 22nd, 2004 at 01:44 PM.

Reply With Quote
  #4  
Old October 2nd, 2004, 08:46 PM
alan_s alan_s is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 1 alan_s User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Setting up PASV

You need to set up PASV in ADDITION to port 21 and 22 to get ftp to work properly.
To set up PASV, configure your ftp server computer with a fixed IP address.
Let's assume you are using 192.168.0.90. Decide how many simultaneous ftp clients you need to support.
Using 50 as an example, you need to open the port range on your ftp server software to allow the PASV connections.
The configuration method varies depending on the ftp server you are using but the principle is the same.
Let's assume you are using ports 15000 to 15050 to allow the 50 connections.
These ports are not used by anything else, so they are safe to use.
Once the port range has been entered, restart your ftp server.
You need to make changes to your D-Link router now to open these ports in the firewall.
Again, this procedure may vary depending on the firmware revision and model of your D-Link router, but assuming you are using the DI604:
1. Open the router config web page.
2. Click on LAN, Advanced, Firewall to add a new rule.
3. Type FTP PASV as the name, and click Allow on the Action radio button.
4. Select * as the Source (need this to test, it can be changed to WAN later) and * (asterisk) as the IP Start Range.
5. Select * as the Destination (need this to test, it can be changed to LAN after testing).
6. Enter 192.168.0.90 as the Destination IP Start Range (your ftp srver computer's fixed IP address). Enter bothing in IP End Range.
7. Click * as the protocol, however you will likely only need TCP.
8. Enter the port range 15000 - 15050.
9. Set up your schedule.
10. Click Apply.

Test by opening IE and entering ftp://your-domain or wan ip address. Your site should come up. Try transferring and opening files.
Note that some ftp servers are smart enough to determine whether the request is coming from the LAN or the WAN, and if it is coming from the LAN, it bypasses the firewall.
If your ftp server does this then it will work, but it won't prove that the firewall config is working. You will need to test the ftp configuration by asking your friend to try to access it acros the internet.
Do a search of PASV ftp on the internet. There is a lot of material which describes how PASV ftp works and having an understanding of how it works will help you debug.
If you still have a problem, your ftp server may not be handling PASV properly. I have found that some servers do not. Also, note that PASV is handled differently by IE in Win98, Win2K and WinXP.
Even if it works with a WinXP client, it may not work with a Win98 or Mac client.
A very good ftp server with good documentation is Titan ftp server. There is an excellent document on their site which
describes how PASV ftp works at http://www.titanftp.com/support/titanftp/kb03001.pdf
I have tested Titan ftp server with Win98, W2K and XP and it is one of the few that works with all clients.

Reply With Quote
  #5  
Old October 2nd, 2004, 09:12 PM
websiteunited websiteunited is offline
No longer a Weby!
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2004
Posts: 549 websiteunited User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 h 51 m 31 sec
Reputation Power: 0
Hello,
As the last post said, the answer is simple.

All you have to do is to make sure those ports are forwarding directly to the computer in the network where the FTP server is located, which can be done in the routers control panel.
__________________
Kind Regards,
Kev ~ No longer a Weby

Reply With Quote
  #6  
Old October 27th, 2004, 10:17 PM
seesoe seesoe is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 2 seesoe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Exclamation

Quote:
Originally Posted by alan_s
You need to set up PASV in ADDITION to port 21 and 22 to get ftp to work properly.
To set up PASV, configure your ftp server computer with a fixed IP address.
Let's assume you are using 192.168.0.90. Decide how many simultaneous ftp clients you need to support.
Using 50 as an example, you need to open the port range on your ftp server software to allow the PASV connections.
The configuration method varies depending on the ftp server you are using but the principle is the same.
Let's assume you are using ports 15000 to 15050 to allow the 50 connections.
These ports are not used by anything else, so they are safe to use.
Once the port range has been entered, restart your ftp server.
You need to make changes to your D-Link router now to open these ports in the firewall.
Again, this procedure may vary depending on the firmware revision and model of your D-Link router, but assuming you are using the DI604:
1. Open the router config web page.
2. Click on LAN, Advanced, Firewall to add a new rule.
3. Type FTP PASV as the name, and click Allow on the Action radio button.
4. Select * as the Source (need this to test, it can be changed to WAN later) and * (asterisk) as the IP Start Range.
5. Select * as the Destination (need this to test, it can be changed to LAN after testing).
6. Enter 192.168.0.90 as the Destination IP Start Range (your ftp srver computer's fixed IP address). Enter bothing in IP End Range.
7. Click * as the protocol, however you will likely only need TCP.
8. Enter the port range 15000 - 15050.
9. Set up your schedule.
10. Click Apply.

Test by opening IE and entering ftp://your-domain or wan ip address. Your site should come up. Try transferring and opening files.
Note that some ftp servers are smart enough to determine whether the request is coming from the LAN or the WAN, and if it is coming from the LAN, it bypasses the firewall.
If your ftp server does this then it will work, but it won't prove that the firewall config is working. You will need to test the ftp configuration by asking your friend to try to access it acros the internet.
Do a search of PASV ftp on the internet. There is a lot of material which describes how PASV ftp works and having an understanding of how it works will help you debug.
If you still have a problem, your ftp server may not be handling PASV properly. I have found that some servers do not. Also, note that PASV is handled differently by IE in Win98, Win2K and WinXP.
Even if it works with a WinXP client, it may not work with a Win98 or Mac client.
A very good ftp server with good documentation is Titan ftp server. There is an excellent document on their site which
describes how PASV ftp works at http://www.titanftp.com/support/titanftp/kb03001.pdf
I have tested Titan ftp server with Win98, W2K and XP and it is one of the few that works with all clients.

ok i have d-link di604 and i put the prot 15014 and 10 conections. and i don't get setp 1 open router config i could not find any thing on my computer that has such options. where can i find that.

and the firewall where do i do that? what do u mean fix ip

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationFTP Help > Tech help getting FTP files through a router


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 | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway