[SOLVED] Having trouble loging onto VSFTPD over the net...please help

Installing, Configuring, Troubleshooting server daemons such as Web and Mail
wezzo
Posts: 10
Joined: 2010/05/11 08:16:39
Location: Australia

[SOLVED] Having trouble loging onto VSFTPD over the net...please help

Postby wezzo » 2010/05/11 09:29:34

Hi Guys,

Newbie here that can't seem to login to Centos VSFTPD over the Internet, I'm not sure what to type into the browser, i can access FTP locally, i have a Netcomm NB6W ADSL2 Modem Router with ports 20 - 21 and 33201 - 33210 forwarding to my Static server 192.168.1.3

in advance, your help would be muchly appreciated :)

here are my system details:

Linux fileserver.fileserverdomain 2.6.9-89.0.25.EL #1 Thu May 6 12:17:11 EDT 2010 i686 i686 i386 GNU/Linux

kernel-2.6.9-89.0.23.EL
kernel-2.6.9-89.0.25.EL
kernel-2.6.9-89.EL
kernel-devel-2.6.9-89.0.23.EL
kernel-devel-2.6.9-89.0.25.EL
kernel-devel-2.6.9-89.EL
kernel-hugemem-devel-2.6.9-89.0.23.EL
kernel-hugemem-devel-2.6.9-89.0.25.EL
kernel-smp-devel-2.6.9-89.0.23.EL
kernel-smp-devel-2.6.9-89.0.25.EL
kernel-utils-2.4-20.el4

and my vsftpd.conf file

anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
anon_upload_enable=NO
anon_mkdir_write_enable=NO
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_std_format=YES
idle_session_timeout=300
ascii_upload_enable=YES
ascii_download_enable=YES
ftpd_banner=Welcome to FTP service.
chroot_local_user=YES
pam_service_name=vsftpd
userlist_enable=YES
listen=YES
listen_port=21
tcp_wrappers=YES
local_root=/mymnt/win/Workstation_Bckup/My_Documents/drawtech_Solutions/DRAWTECH_Tools/

pjwelsh
Posts: 2581
Joined: 2007/01/07 02:18:02
Location: Central IL USA

Re: Having trouble loging onto VSFTPD over the net...please help

Postby pjwelsh » 2010/05/11 14:05:23

Please take this lightly! http://lmgtfy.com/?q=ftp+browser+syntax :-P :lol:
Your config does not allow "anonymous" and will chroot a vailid user (both good).

wezzo
Posts: 10
Joined: 2010/05/11 08:16:39
Location: Australia

Re: Having trouble loging onto VSFTPD over the net...please help

Postby wezzo » 2010/05/12 08:24:52

thanks for responding

these websites all assume that i have a domain name as in ftp://ftp.microsoft.com

but i have a local network
with computer 1 with ip 192.168.1.2 which can access ftp server locally using ftp://fileserver/
ftp server which is 192.168.1.3
and a adsl2 netcomm router with ip address 220.250.xxx.xxx with port 20,21 forwarded to 192.168.1.3
i'm still not sure how to go about connecting from an external network address
or even if this is setup right, is there a way from 192.168.1.2 that i could test this ftp server or will i have to access another computer outside the network to try and if so what would the syntax be
ftp://220.250.xxx.xxx/192.168.1.3
ftp://220.250.xxx.xxx/fileserver
ftp://192.168.1.3/220.250.xxx.xxx

probably very simple but i cant seem to find any help on it

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

[SOLVED] Having trouble loging onto VSFTPD over the net...pl

Postby pschaff » 2010/05/13 02:55:34

If the relevant ports are forwarded to the LAN address, and firewall/SELinux are not interfering, you should just be able to use the public IP address: ftp://220.250.xxx.xxx/ in your example format. Are you sure the ISP is not blocking the ports? They often do.

You should be able to test locally with another system on the LAN and the local IP address to be sure the basic service is working.

wezzo
Posts: 10
Joined: 2010/05/11 08:16:39
Location: Australia

Re: Having trouble loging onto VSFTPD over the net...please help

Postby wezzo » 2010/05/13 10:24:33

i updated the firmware on the router and checked port 21 with online port scanner i also opened a couple more ports to check on the reliability of the port scanner and it worked every time, and it is open but still cant manage to logon with router ip address, but i still can with local ip address, don't know what else i can do....... any one have any clues?

hi_vkkadam
Posts: 74
Joined: 2007/11/05 16:08:34
Location: Pune

Re: Having trouble loging onto VSFTPD over the net...please help

Postby hi_vkkadam » 2010/05/19 10:18:45

Hi,
create a user say abc

ftp://abc@220.250.xxx.xxx

220.250.xxx.xxx is what ever your routers public static ip assigned by our isp.


in vsftpd.conf file you specify userlist_enable=YES check that user should present on that users file


thanks

Vijay kadam

wezzo
Posts: 10
Joined: 2010/05/11 08:16:39
Location: Australia

Re: Having trouble loging onto VSFTPD over the net...please help

Postby wezzo » 2010/07/27 09:36:55

Thanks guys, all fixed, it was the firewall in the end :-D

User avatar
AlanBartlett
Forum Moderator
Posts: 9311
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk
Contact:

Re: [SOLVED] Having trouble loging onto VSFTPD over the net...please help

Postby AlanBartlett » 2010/07/27 10:49:17

Thank you for reporting back.

For posterity, this thread is marked [SOLVED].