LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-25-2006, 08:38 AM   #1
killer_green_bug
LQ Newbie
 
Registered: Jun 2006
Posts: 7

Rep: Reputation: 0
Question VSFTPD problem


hi all
I have decide to run vsftpd on my redhat 9
and i can`t log ftp outside network

[root@fradmin root]# ftp 192.168.1.223
Connected to 192.168.1.223.
220 (vsFTPd 1.1.3)
530 Please login with USER and PASS.
530 Please login with USER and PASS.
KERBEROS_V4 rejected as an authentication type
Name (192.168.1.223:root): admin
331 Please specify the password.
Password:
230 Login successful. Have fun.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>


[root@fradmin root]# ftp 85.117.62.128
Connected to 85.117.62.128.
220 FTPU ready.
500 Sorry, no such command.
500 Sorry, no such command.
KERBEROS_V4 rejected as an authentication type
Name (85.117.62.128:root): admin
331 Password required for admin.
Password:
530 Login incorrect.
Login failed.
Remote system type is Ignored.
ftp> bye
221 Have a nice day!
[root@fradmin root]#


vsftpd.conf file

anonymous_enable=YES
local_enable=YES
local_umask=022
pasv_promiscuous=YES
pasv_address=85.117.62.128
#anon_upload_enable=YES
#anon_mkdir_write_enable=YES
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
#chown_uploads=YES
#chown_username=whoever
#xferlog_file=/var/log/vsftpd.log
xferlog_std_format=YES
#idle_session_timeout=600
#data_connection_timeout=120
#nopriv_user=ftpsecure
#async_abor_enable=YES
#ascii_upload_enable=YES
#ascii_download_enable=YES
#deny_email_enable=YES
#banned_email_file=/etc/vsftpd.banned_emails
#chroot_list_enable=YES
#chroot_list_file=/etc/vsftpd.chroot_list
#ls_recurse_enable=YES
pam_service_name=vsftpd
userlist_enable=YES
#enable for standalone mode
listen=YES
tcp_wrappers=YES
# pasv_min_port=65530
# pasv_max_port=65535
#one_process_model=YES
accept_timeout=60
connect_timeout=60
#hide_ids=YES
#anon_max_rate=50000

ftp starts from init.d

can anybody help me???

Last edited by killer_green_bug; 07-25-2006 at 09:34 AM.
 
Old 07-25-2006, 10:03 AM   #2
killer_green_bug
LQ Newbie
 
Registered: Jun 2006
Posts: 7

Original Poster
Rep: Reputation: 0
pls........................................
 
Old 07-25-2006, 10:21 AM   #3
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
I don't know if this has anything to do with it or not, but I do not think you should be logging in as root from a remote site. Maybe vsftp is smart enough to not allow that.
 
Old 07-25-2006, 12:13 PM   #4
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Check your /etc/ftpusers and see if root is listed there. That may be blocking it. That said, rickh is 100% right on target. You should NEVER, EVER allow the root user to have FTP access.
 
Old 07-25-2006, 12:13 PM   #5
Jukas
Member
 
Registered: Mar 2005
Posts: 141

Rep: Reputation: 15
Quote:
Originally Posted by rickh
I don't know if this has anything to do with it or not, but I do not think you should be logging in as root from a remote site. Maybe vsftp is smart enough to not allow that.
Vsftpd won't let the privledged account log in.

I'd suggest the OP try setting up a local user account and try logging in there remotely.
 
Old 07-25-2006, 12:37 PM   #6
killer_green_bug
LQ Newbie
 
Registered: Jun 2006
Posts: 7

Original Poster
Rep: Reputation: 0
But what must i do to mend it?
U mean that user with lower right will access it? i
don`t think so as even the ananymous users cant access
ftp.
But at this moment no user can enter my server outside
the local network.
mean while there is no problem inside local users.
Can anybody give me a config file of firewall settings
Thnx in advance
 
Old 07-25-2006, 12:40 PM   #7
killer_green_bug
LQ Newbie
 
Registered: Jun 2006
Posts: 7

Original Poster
Rep: Reputation: 0
i think that u cant get me right, the main problem is that users cant enter my server outside network through external ip
 
Old 07-25-2006, 02:30 PM   #8
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
So what is between your server and the Internet. Firewall? Router?
 
Old 07-26-2006, 03:44 AM   #9
killer_green_bug
LQ Newbie
 
Registered: Jun 2006
Posts: 7

Original Poster
Rep: Reputation: 0
there is a router
 
Old 07-26-2006, 07:10 AM   #10
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
Originally Posted by killer_green_bug
there is a router
Nobody here is a mind reader, a little bit more information would be helpful.....

Have you set up the router for port forwarding for FTP? And this time include some details.
 
Old 07-26-2006, 07:25 AM   #11
killer_green_bug
LQ Newbie
 
Registered: Jun 2006
Posts: 7

Original Poster
Rep: Reputation: 0
okey i`ll reply cisco config
 
Old 07-26-2006, 07:36 AM   #12
stlouis
Member
 
Registered: Jul 2006
Location: Sault Ste. Marie, Ontario
Distribution: RedHat, CentOS, Fedora Core, Gentoo, Slackware
Posts: 63

Rep: Reputation: 16
First things first, I doubt the hardware router/firewall or the iptables firewall on the server itself is affecting the conneciton to the VSFTPD server, as he is getting prompted to login from the VSFTPD server, from both inside and outside the network.

I would however like to know what FTP Client(s) you trying to connect with. Is it the same for both the inside and outside connection attempts?

When you were connecting from inside your network, were you connecting From you Server, to your Server, or were you using a completely different workstation?

Please provide some more detail as to exactly what you were doing.
 
Old 07-26-2006, 07:41 AM   #13
stlouis
Member
 
Registered: Jul 2006
Location: Sault Ste. Marie, Ontario
Distribution: RedHat, CentOS, Fedora Core, Gentoo, Slackware
Posts: 63

Rep: Reputation: 16
I almost forgot one thing, in your VSFTPD.conf file, under the "#enable for standalone mode" section at the bottom, try adding the following line and restarting the VSFTPD Server.


pasv_enable=YES


Most FTP Clients attempt to connect via this method.
 
Old 07-26-2006, 10:56 AM   #14
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
Originally Posted by stlouis
First things first, I doubt the hardware router/firewall or the iptables firewall on the server itself is affecting the conneciton to the VSFTPD server, as he is getting prompted to login from the VSFTPD server, from both inside and outside the network.
I'm going to respectuflly disagree on this. If the clients are trying to connect in PASV mode (which is common), unless vsftp has been locked down to a set of ports and forwarding properly set up on the router, he may get something similar to what he is seeing here.

Of course, I've been wrong plenty before, so we'll have to see what pops up.
 
Old 07-27-2006, 07:28 AM   #15
killer_green_bug
LQ Newbie
 
Registered: Jun 2006
Posts: 7

Original Poster
Rep: Reputation: 0
hi all thnx for answering)
there was a problem on other side of my network
via 5 hops and there is a GW, ftp port
forwarding was not allowed)

best regards
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
vsftpd settingd and VSFTPD DEAD BUT SUBSYS LOCKED pc_copat Linux - Newbie 15 11-05-2009 10:31 PM
vsftpd.conf/chroot/vsftpd.chroot_list issue Jerman Linux - Security 2 06-01-2007 07:24 PM
vsftpd & ssl - how do I tell if it's actually vsftpd maintaining the connections?? hunterhunter Linux - General 0 03-27-2006 04:41 PM
vsFTPd Problem carlosinfl Linux - Networking 14 07-27-2005 12:19 PM
VSFTPD with 500 oops :vsftpd: missing argv[0] mole_13 Linux - Newbie 0 05-04-2005 01:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration