LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-09-2005, 10:04 AM   #1
autonomous_sam
LQ Newbie
 
Registered: Jun 2004
Location: Maryland USA
Distribution: SUSE, Fedora Core 4
Posts: 11

Rep: Reputation: 0
Red face vsftpd from web browser


I set up vsftpd on my linux server (Fedora Core 3). The FTP works great from a command prompt, but I need to make my files viewable from a web browser. Whenever I try to access it over a browser it times out.

Any help would be much appreciated!

Last edited by autonomous_sam; 03-09-2005 at 10:58 PM.
 
Old 03-10-2005, 10:56 AM   #2
ravikumarG
Member
 
Registered: Feb 2005
Location: India
Distribution: Fedora -2 ,Rhel3.0,CentOs 4.0-rc2
Posts: 60

Rep: Reputation: 15
i hope its due to active / passive mode problem
is passive mode enabled for vsftpd server ? i think your vsftpd box behind firewall ?

provide me more details
 
Old 03-10-2005, 08:28 PM   #3
autonomous_sam
LQ Newbie
 
Registered: Jun 2004
Location: Maryland USA
Distribution: SUSE, Fedora Core 4
Posts: 11

Original Poster
Rep: Reputation: 0
I do have it behind a router firewall, but I use port forwarding.
From a command prompt it works great. I tested it out from multiple locations. It just won't work from a web browser.
Here's everything in my vsftpd.conf:

anonymous_enable=YES
local_enable=YES
write_enable=YES
local_umask=022
#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=ftp
async_abor_enable=YES
#ascii_upload_enable=YES
#ascii_download_enable=YES
ftpd_banner=SAMWINTERS.COM FTP
#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
pasv_promiscuous=YES
pam_service_name=vsftpd
userlist_enable=YES
#enable for standalone mode
listen=YES
tcp_wrappers=YES


I appreciate the help!
 
Old 03-10-2005, 09:26 PM   #4
idefinehell
LQ Newbie
 
Registered: Feb 2005
Distribution: FC3
Posts: 24

Rep: Reputation: 15
Which browser r u using.In konqueror u can just type

lan:/ip_address

to see which services r running on the remote pc

rmr it's a single slash.note that this works only when 'lisa' service is

running as a daemon in u r pc(service lisa start)

Hope this helps.Post u r output :-)

Last edited by idefinehell; 03-10-2005 at 09:27 PM.
 
Old 03-10-2005, 10:39 PM   #5
autonomous_sam
LQ Newbie
 
Registered: Jun 2004
Location: Maryland USA
Distribution: SUSE, Fedora Core 4
Posts: 11

Original Poster
Rep: Reputation: 0
Sorry, I'm running under Gnome and Firefox. And, I don't have lisa on my machine.

What service are you looking for? I can check to see if it is running.

Thanks.
 
Old 03-11-2005, 02:19 AM   #6
ravikumarG
Member
 
Registered: Feb 2005
Location: India
Distribution: Fedora -2 ,Rhel3.0,CentOs 4.0-rc2
Posts: 60

Rep: Reputation: 15
problem with active /passive mode

ok forward 20,21, any high port range like 40000-50000
to private lan ip where vsftpd running , from your router.

and add these lines to your vsftpd.conf

pasv_min_port=40000

pasv_max_port=50000

it will work from any router ( i tried on linksys also)
 
Old 03-11-2005, 10:51 AM   #7
autonomous_sam
LQ Newbie
 
Registered: Jun 2004
Location: Maryland USA
Distribution: SUSE, Fedora Core 4
Posts: 11

Original Poster
Rep: Reputation: 0
I already had 20 and 21 forwarded. I went ahead and forwarded 40000-50000 and added the lines to the .conf .
It still does the same thing. It works great from a command prompt, but won't work from a web browser (times out).
 
Old 03-11-2005, 11:12 AM   #8
autonomous_sam
LQ Newbie
 
Registered: Jun 2004
Location: Maryland USA
Distribution: SUSE, Fedora Core 4
Posts: 11

Original Poster
Rep: Reputation: 0
If anyone wants to see what I mean, my site is samwinters.com. Username is ftp. No password required.
No problems from a command prompt, just in a browser.
 
Old 03-11-2005, 11:41 AM   #9
ravikumarG
Member
 
Registered: Feb 2005
Location: India
Distribution: Fedora -2 ,Rhel3.0,CentOs 4.0-rc2
Posts: 60

Rep: Reputation: 15
HI,

yes clearly it problem with your router and active /passive mode problem.

[root@min root]# ftp samwinters.com
Connected to samwinters.com (138.88.33.248).
220 SAMWINTERS.COM FTP
Name (samwinters.com:root): ftp
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
227 Entring Passive Mode (138,88,33,248,192,23
--------- hangs here

problem with your router or firewall
 
Old 03-11-2005, 02:39 PM   #10
autonomous_sam
LQ Newbie
 
Registered: Jun 2004
Location: Maryland USA
Distribution: SUSE, Fedora Core 4
Posts: 11

Original Poster
Rep: Reputation: 0
That's strange. It was working fine outside the router's firewall before.
I put the settings back to original. Can you try it again when you get a chance?
What's confusing me is that if the router's firewall was the problem, I would be able to view my files in a browser on my local network. But, I cannot.

Thanks.
 
Old 03-12-2005, 02:28 AM   #11
autonomous_sam
LQ Newbie
 
Registered: Jun 2004
Location: Maryland USA
Distribution: SUSE, Fedora Core 4
Posts: 11

Original Poster
Rep: Reputation: 0
Just got it working! After I put the settings back to original and re-imaged my Wndows machine it works great. That d&*! Windows box was doing something wacky over the network. I appreciate the help!
 
  


Reply



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, web uploads, vsftpd virtual users, apache virtual hosts, home directories jerryasher Linux - Software 7 02-18-2007 06:29 AM
Which web browser oookiezooo Linux - Software 6 04-18-2005 07:18 PM
browser plugin for Konqueror web browser (linspire) Tracianddwayne Linux - Newbie 1 01-01-2005 02:15 PM
public web browser aka web kiosk xmnemonic Linux - Software 6 06-14-2004 03:20 PM
vsftpd - Cannot resolve symbolic link in browser chpchai Linux - Networking 13 05-26-2004 11:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:45 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