Captain_Jon
12-01-2003, 12:30 PM
Sorry for the length of this...
Background:
I am trying to setup an FTP server on my LAN using BulletProof FTP Server (V2.21) running on one of my PC's. I use a Nexland WaveBase (wireless) unit as my router. I have 3 PC's connected with wireless cards and 1 PC directly connected. All PC’s are running Win XP SP1. I am connected to the Internet via a DSL connection. I already have 2 Web sites setup that work quite well. I use the Apache HTML server. I use a Dynamic DNS service with a dynamic domain name.
This is what I have done so far:
On the Router:
- I reserved an entry on the Host IP & Group screen for the PC to be the server (192.168.0.2); - On the Virtual Server screen, I checked FTP and entered the address 192.168.0.2; - After filling in the Virtual Server entry the Custom Virtual Server had an entry automatically filled in for FTP for 192.168.0.2 with 21 filling for all Port entries;
On the Server:
I installed the server software; called the server "My_FTP'; set it to Listen to Port 21 and with a max number of users = 2; I set it to use Passive Mode IP with a Dynamic IP; then when it came down to the Passive Port assignment I entered 50000 to 50100 (the default was originally 1024 to 65535). I did this because of the following (which came from the Bulletproof site):
Q5 - How to use passive mode with a router ?
When running the ftp server behind a router, the ftp server can only use local ip (10.0.xxx.yyy, 192.168.0.xxx ...).
This causes problems when a client switches to passive mode (PASV) because the ftp server will reply with the internal lan ip; as a consequence the ftp client can not transfer data (no directory listing, no upload / downloads, only commands).
To solve this problem :
1) Go in server option / multi ip settings / passive ip and enter your internet ip (not local, but the one assigned by your isp, check http://www.bpftpserver.com/ip.php to know your ip.
You can also enter your dynamic domain name so that the server resolve it instead of an ip.
2) enter a passive port range 50000-50100 in passive port range option.
3) in your router (hardware or software) create a port range redirection for 50000-50100 to the computer ip running the ftp server.
- Question 1: How do I create the “port range redirection to be 50000-50100” on the router? I think that this Port issue may be my problem area because I don't see the connection between the Port 21 and the assignment of these Passive Ports!! Question 2: Should the WaveBase ports (on the Custom Virtual Server screen) be the same as these? Question 3: Should I enter 21 to 21 for the range of Passive Ports in the software?
- I then set up a user account, with password, with full access to the files of a specified directory on the server;
On a Client:
- I installed FTP client software on one of the other PC's in my LAN and tried to connect by entering the dynamic domain name and the user name and password I created
The Results & Problem:
- As you can see (below are excerpts from the logs) I did manage to connect to the server; however the client cannot see any of the files or directories it should have access to!! Looking at the bottom of the Client log (Connecting to 68.95.142.24 port 50047) my guess is that the client cannot get at this port... is this because I have only set access to port 21 on the WaveBase router??
Question 4: Does anyone have any ideas on what I should change to properly configure my system?? (Any experience out there with the Nexland WaveBase router and BulletProof FTP Server?). I sent an email to Nexland support (now Symantec) but have heard nothing.
*******************
Here are the log files excerpts:
Server Log:
29/11/2003 12:40:53 PM - (not logged in) (68.95.142.24) > USER XXXX
29/11/2003 12:40:53 PM - (not logged in) (68.95.142.24) > 331 Password required for XXXX.
29/11/2003 12:40:53 PM - (not logged in) (68.95.142.24) > PASS ********
29/11/2003 12:40:53 PM - XXXX (68.95.142.24) > logged in.
29/11/2003 12:40:53 PM - XXXX (68.95.142.24) > 230 User XXXX logged in.
29/11/2003 12:40:59 PM - XXXX (68.95.142.24) > CWD /
29/11/2003 12:40:59 PM - XXXX (68.95.142.24) > asked to change directory : 'C:\FTP\ -> C:\FTP\' --> Access allowed.
29/11/2003 12:40:59 PM - XXXX (68.95.142.24) > 250 CWD command successful. "/" is current directory.
29/11/2003 12:40:59 PM - XXXX (68.95.142.24) > PWD
29/11/2003 12:40:59 PM - XXXX (68.95.142.24) > 257 "/" is current directory.
29/11/2003 12:40:59 PM - XXXX (68.95.142.24) > TYPE A
29/11/2003 12:40:59 PM - XXXX (68.95.142.24) > 200 Type set to A.
29/11/2003 12:40:59 PM - XXXX (68.95.142.24) > PASV
29/11/2003 12:40:59 PM - XXXX (68.95.142.24) > 227 Entering Passive Mode (68,95,142,24,195,127).
29/11/2003 12:51:07 PM - XXXX (68.95.142.24) > 421 Connection timed-out !
Client Log:
29/11/2003 12:40:59 PM - XXXX (68.95.142.24) > 227 Entering Passive Mode (68,95,142,24,195,127).
Connecting to dynamic domain name port 21
Connected, waiting for response...
220 My_FTP
USER XXXX
331 Password required for XXXX.
PASS (not shown)
230 User XXXX logged in.
CWD /
250 CWD command successful. "/" is current directory.
pwd
257 "/" is current directory.
TYPE A
200 Type set to A.
PASV
227 Entering Passive Mode (68,95,142,24,195,127).
Connecting to 68.95.142.24 port 50047
Connection timed out
Background:
I am trying to setup an FTP server on my LAN using BulletProof FTP Server (V2.21) running on one of my PC's. I use a Nexland WaveBase (wireless) unit as my router. I have 3 PC's connected with wireless cards and 1 PC directly connected. All PC’s are running Win XP SP1. I am connected to the Internet via a DSL connection. I already have 2 Web sites setup that work quite well. I use the Apache HTML server. I use a Dynamic DNS service with a dynamic domain name.
This is what I have done so far:
On the Router:
- I reserved an entry on the Host IP & Group screen for the PC to be the server (192.168.0.2); - On the Virtual Server screen, I checked FTP and entered the address 192.168.0.2; - After filling in the Virtual Server entry the Custom Virtual Server had an entry automatically filled in for FTP for 192.168.0.2 with 21 filling for all Port entries;
On the Server:
I installed the server software; called the server "My_FTP'; set it to Listen to Port 21 and with a max number of users = 2; I set it to use Passive Mode IP with a Dynamic IP; then when it came down to the Passive Port assignment I entered 50000 to 50100 (the default was originally 1024 to 65535). I did this because of the following (which came from the Bulletproof site):
Q5 - How to use passive mode with a router ?
When running the ftp server behind a router, the ftp server can only use local ip (10.0.xxx.yyy, 192.168.0.xxx ...).
This causes problems when a client switches to passive mode (PASV) because the ftp server will reply with the internal lan ip; as a consequence the ftp client can not transfer data (no directory listing, no upload / downloads, only commands).
To solve this problem :
1) Go in server option / multi ip settings / passive ip and enter your internet ip (not local, but the one assigned by your isp, check http://www.bpftpserver.com/ip.php to know your ip.
You can also enter your dynamic domain name so that the server resolve it instead of an ip.
2) enter a passive port range 50000-50100 in passive port range option.
3) in your router (hardware or software) create a port range redirection for 50000-50100 to the computer ip running the ftp server.
- Question 1: How do I create the “port range redirection to be 50000-50100” on the router? I think that this Port issue may be my problem area because I don't see the connection between the Port 21 and the assignment of these Passive Ports!! Question 2: Should the WaveBase ports (on the Custom Virtual Server screen) be the same as these? Question 3: Should I enter 21 to 21 for the range of Passive Ports in the software?
- I then set up a user account, with password, with full access to the files of a specified directory on the server;
On a Client:
- I installed FTP client software on one of the other PC's in my LAN and tried to connect by entering the dynamic domain name and the user name and password I created
The Results & Problem:
- As you can see (below are excerpts from the logs) I did manage to connect to the server; however the client cannot see any of the files or directories it should have access to!! Looking at the bottom of the Client log (Connecting to 68.95.142.24 port 50047) my guess is that the client cannot get at this port... is this because I have only set access to port 21 on the WaveBase router??
Question 4: Does anyone have any ideas on what I should change to properly configure my system?? (Any experience out there with the Nexland WaveBase router and BulletProof FTP Server?). I sent an email to Nexland support (now Symantec) but have heard nothing.
*******************
Here are the log files excerpts:
Server Log:
29/11/2003 12:40:53 PM - (not logged in) (68.95.142.24) > USER XXXX
29/11/2003 12:40:53 PM - (not logged in) (68.95.142.24) > 331 Password required for XXXX.
29/11/2003 12:40:53 PM - (not logged in) (68.95.142.24) > PASS ********
29/11/2003 12:40:53 PM - XXXX (68.95.142.24) > logged in.
29/11/2003 12:40:53 PM - XXXX (68.95.142.24) > 230 User XXXX logged in.
29/11/2003 12:40:59 PM - XXXX (68.95.142.24) > CWD /
29/11/2003 12:40:59 PM - XXXX (68.95.142.24) > asked to change directory : 'C:\FTP\ -> C:\FTP\' --> Access allowed.
29/11/2003 12:40:59 PM - XXXX (68.95.142.24) > 250 CWD command successful. "/" is current directory.
29/11/2003 12:40:59 PM - XXXX (68.95.142.24) > PWD
29/11/2003 12:40:59 PM - XXXX (68.95.142.24) > 257 "/" is current directory.
29/11/2003 12:40:59 PM - XXXX (68.95.142.24) > TYPE A
29/11/2003 12:40:59 PM - XXXX (68.95.142.24) > 200 Type set to A.
29/11/2003 12:40:59 PM - XXXX (68.95.142.24) > PASV
29/11/2003 12:40:59 PM - XXXX (68.95.142.24) > 227 Entering Passive Mode (68,95,142,24,195,127).
29/11/2003 12:51:07 PM - XXXX (68.95.142.24) > 421 Connection timed-out !
Client Log:
29/11/2003 12:40:59 PM - XXXX (68.95.142.24) > 227 Entering Passive Mode (68,95,142,24,195,127).
Connecting to dynamic domain name port 21
Connected, waiting for response...
220 My_FTP
USER XXXX
331 Password required for XXXX.
PASS (not shown)
230 User XXXX logged in.
CWD /
250 CWD command successful. "/" is current directory.
pwd
257 "/" is current directory.
TYPE A
200 Type set to A.
PASV
227 Entering Passive Mode (68,95,142,24,195,127).
Connecting to 68.95.142.24 port 50047
Connection timed out