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 |
Maybe active/passive mode problem?
|
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 |
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 |
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.
|
:) 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 |
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.
|
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 :) |
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 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. |
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. |
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.
|
All times are GMT -5. The time now is 10:23 AM. |