LinuxQuestions.org
Visit Jeremy's Blog.
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 01-11-2003, 04:17 PM   #1
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Cannot directly access files from server via browser on FTP


Hi I have recently, from some outstanding help, been able to get my server up with my new router:
http://www.linuxquestions.org/questi...threadid=40355

Before I added my router to my network, I had no problems with my FTP server and access to files on it, so I believe this to be router related, but have no idea how to fix it.

The problem:
When I try to access my FTP via a browser:
ftp://masterc.no-ip.org
I get in. It lists the folders/files and I can enter the directories and subdirectories. However, if I click on a file and try to access it from the server directly, I get a "Page not found" screen (this is at work on a W2k box running IE). I can however copy the file from the server to my local computer by right clicking and "copy to folder" and then it works no problem, and copies just fine.
This is for both anonymous access, and user login access.

I thought it to be a port fowarding problem, but I have port 21 forwarded, and like I said, I see the files, just cannot display or stream them from the server. If I double click any of them (example the music files) it gives the same result, the "Page not found" screen, but I can copy to folder and they play just fine.

Any suggestions?

Thanks
 
Old 01-11-2003, 04:26 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,539

Rep: Reputation: 149Reputation: 149
Maybe active/passive mode problem?
 
Old 01-11-2003, 04:55 PM   #3
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Original Poster
Rep: Reputation: 64
Yes, thank you for your response, I am looking into that as I type. Thank you for the suggestion, it backs up my thoughts as well

Cool
 
Old 01-13-2003, 08:14 PM   #4
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Original Poster
Rep: Reputation: 64
Unless I've done this incorrectly (which is likely), it appears that my attempt didn't work.

In the router config I setup to have ports:
60000-65535
fowarded to my server's IP 192.168.1.50
And then in my /etc/proftptd.conf file I have:
PassivePorts 60000 65535

But when someone tries to access a specific document, it still gives them "page unavailable". If they save it to the HD, then it works. I am not ruling out this being a passive problem, but any help on how to setup passive ftp'ing better would be excellent.

Thanks
 
Old 01-14-2003, 03:21 PM   #5
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,539

Rep: Reputation: 149Reputation: 149
Could you run nmap and see what's different in the two types of requests? It's quite late, so maybe thet's the reason I can't find an idea why they can be different.
 
Old 01-14-2003, 05:02 PM   #6
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Original Poster
Rep: Reputation: 64
I can run nmap, just need to know what to do with it I also will need to install it, but that's not going to be a problem.

Anyway, not sure exactly what I should do with it, so any suggestions on running nmap and what to look for would be cool and greatly appreciated

Thanks
 
Old 01-15-2003, 02:56 AM   #7
wldkos
Member
 
Registered: Jan 2003
Distribution: Mandrake 9.2 =<3 and Red Hat 8.0 (server)
Posts: 242

Rep: Reputation: 30
f

unless you have the music files on your ftp server linked to your http server [kinda useless] then i dont think that u can stream them, ubless u have a .pls file streaming from a winamp shoutcast server, but i have never tried that or know if it works from ftp. But if you want to dnld music, right click on the files and copy em to a folder. Simple. As for the terminal, i think u use COPY and it's like the same thing.
 
Old 01-15-2003, 03:57 AM   #8
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Original Poster
Rep: Reputation: 64
Thank you for the reply That's cool, but there are other issues, such as the text files won't open, nor will a "save as" dialogue box pop up. It just gives a "404" type message, as if the page/server didn't exist...

Thank you again for your reply
 
Old 01-15-2003, 04:14 AM   #9
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 46
MasterC,
I tried connecting with Phoenix, Mozilla (same core), and
Konqueror. Konqueror could connect (wow), though it was slow.
Neither of the other two could.
Konq does not get the 404 error message, nor does it get the
"page unavailable" error. It just takes really freakin' long. I can
read your proftpd config file. . .
Konqueror spit out a couple of errors:
Code:
kio_ftp: ERROR: PASV: ks.connect failed. host=192.168.1.50 port=65443
kio_ftp: ERROR: PASV: ks.connect failed. host=192.168.1.50 port=63414
kio_ftp: ERROR: PASV: ks.connect failed. host=192.168.1.50 port=60905
I don't actually know what this means, but I'm guessing the
PASV error is maybe an active/passive problem. However,
I'm getting your internal IP address, which may mean there's
a problem with your router. It depends on where that error
originates (if it's from the ftp server, and that doesn't have a
hostname, that may be the source).
I'm also getting different ports for each connection, which may
be something proftpd does, I don't know.
This message is filled with a lot of "I don't knows", but I'm hoping
there is, at the very least, some useful information here, even
if it doesn't answer the question directly.
 
Old 01-15-2003, 03:02 PM   #10
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Original Poster
Rep: Reputation: 64
Well, thank you! I checked on the router, those ports listed up there are forwarded, hmm...

I'll look into this a bit more, thanks again.
 
Old 01-15-2003, 04:28 PM   #11
wldkos
Member
 
Registered: Jan 2003
Distribution: Mandrake 9.2 =<3 and Red Hat 8.0 (server)
Posts: 242

Rep: Reputation: 30
My ftp only funs off of one port, 1337 and i fun netstat to check. I think it uses others if there are other people on the ftp, which would make sense. But i got into the ftp using MSIE and had no trouble at all, i thin i even dnlded someting to test it out.
 
  


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
Ftp(through web site access to ftp server) kelper Linux - Software 3 01-11-2006 08:03 PM
view files in ftp server in firefox browser like icons in konqueror pranith Linux - Newbie 3 10-16-2004 09:32 PM
Can't access winxp (unicode) files from linux FTP server... taligent Linux - Networking 1 05-25-2004 01:09 AM
Saving/opening files directly on/from FTP server saurya_s Linux - Software 0 02-03-2004 03:54 PM
how can I restrict ftp users listing files from a pure-ftp server adrianmak Linux - Networking 2 12-31-2002 09:23 AM


All times are GMT -5. The time now is 12:39 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration