|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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, |
|
#2
|
|||
|
|||
|
enble forwarding on your router to the FTP server.
|
|
#3
|
|||
|
|||
|
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. |
|
#4
|
|||
|
|||
|
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. |
|
#5
|
|||
|
|||
|
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 |
|
#6
|
|||
|
|||
|
Quote:
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 ![]() |
![]() |
| Viewing: Dev Shed Forums > System Administration > FTP Help > Tech help getting FTP files through a router |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|