Problem: can't access FTP server via internet from home network.
Setup:
1. PC1 = Wired Kubuntu Desktop running vsftpd
2. PC2 = Wireless WinXP Laptop using Filezilla 3.3.5.1
Hardware:
Using Netgear Gateway router RT-311
I modified RT-311's configuration:
a. Opened ports 20 and 21 to PC1's local IP address (192.168.X.X)
b. Removed any FTP fillters
c. I registered with a dynamic DNS service to map my dynamically assigned IP address.
First, vsftpd is running and I changed the configuration file to allow local users and disabled anonymous login. Second, I checked my iptables and there are no entries/rules. Third, I checked my /etc/hosts.allow and /etc/hosts.deny files. I modified my hosts.allow file to include an entry to allow access to my dynamic DNS service (mydomain.dynamic.org :allow).
Situation 1. I can access FTP server using PC2 on intranet (home network; using local IP address 192.168.x.x username= asfd, password=xxxx note that port number 21 was not needed using Win Filezilla FTP client). vsftpd's FTP server works and is running. The banner appears as was created in the vsftpd's configuration file.
Situation 2. When I attempt to access FTP server using internet, User login fails.
Specifically I'm trying to access the same FTP server (vsftpd) using PC2 to PC1 while both are on the same home network, but this time PC2 uses the following URL mydomain.dynamic.org to connect to PC1. According to Filezilla's log, it is able to connect to FTP server b/c it states "connection established, waiting for welcome message". But then the banner I created in the configuration file doesn't appear. A different response is displayed from "Situation 1": FTP version 1.0 ready at Fri Feb 4 18:41:43 2000". Then the USER and PASSWORD are sent, which is followed by message "user cannot log in".
Also, I have not yet tried to access PC1 using PC2 from another location other than my home.
Please advise.
Setup:
1. PC1 = Wired Kubuntu Desktop running vsftpd
2. PC2 = Wireless WinXP Laptop using Filezilla 3.3.5.1
Hardware:
Using Netgear Gateway router RT-311
I modified RT-311's configuration:
a. Opened ports 20 and 21 to PC1's local IP address (192.168.X.X)
b. Removed any FTP fillters
c. I registered with a dynamic DNS service to map my dynamically assigned IP address.
First, vsftpd is running and I changed the configuration file to allow local users and disabled anonymous login. Second, I checked my iptables and there are no entries/rules. Third, I checked my /etc/hosts.allow and /etc/hosts.deny files. I modified my hosts.allow file to include an entry to allow access to my dynamic DNS service (mydomain.dynamic.org :allow).
Situation 1. I can access FTP server using PC2 on intranet (home network; using local IP address 192.168.x.x username= asfd, password=xxxx note that port number 21 was not needed using Win Filezilla FTP client). vsftpd's FTP server works and is running. The banner appears as was created in the vsftpd's configuration file.
Situation 2. When I attempt to access FTP server using internet, User login fails.
Specifically I'm trying to access the same FTP server (vsftpd) using PC2 to PC1 while both are on the same home network, but this time PC2 uses the following URL mydomain.dynamic.org to connect to PC1. According to Filezilla's log, it is able to connect to FTP server b/c it states "connection established, waiting for welcome message". But then the banner I created in the configuration file doesn't appear. A different response is displayed from "Situation 1": FTP version 1.0 ready at Fri Feb 4 18:41:43 2000". Then the USER and PASSWORD are sent, which is followed by message "user cannot log in".
Also, I have not yet tried to access PC1 using PC2 from another location other than my home.
Please advise.
Comment