LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   My router has a ftp server and won't forward the port (https://www.linuxquestions.org/questions/linux-server-73/my-router-has-a-ftp-server-and-wont-forward-the-port-479669/)

greeklegend 09-02-2006 02:03 AM

My router has a ftp server and won't forward the port
 
Hi, I'm trying to run a ftp server on my computer so i can upload files to my webserver. I downloaded pure-ftpd through synaptic (ubuntu) and set it all up ok.
I can connect to it with "localhost" and "192.168.1.100" ok, but when i try my IP, i get a different FTP server. Upon closer inspection, it appears that I am connecting to a FTP server on my router (a netcomm nb5 with firmware 62.51).
I've enabled both DMZ and Port Forwarding for this, but computers both inside my network and outside connect to my router's FTP. How do i make it properly forward to my server?
If anyone can suggest a different method of uploading files to my server remotly, that'll do too.

System...
Netcomm nb5 modem/router, connecting to a single computer through ethernet
Ubuntu 6.06
Pure-ftpd 1.0.21

Thanks in advance

kovert 09-02-2006 02:34 AM

Your router is running a FTP on its external (WAN/Internet) port? I'd try turning it off first. If you can't just configure the FTP to run on a different port.

greeklegend 09-02-2006 11:21 PM

Yes, definetly running FTP on the WAN port (try connecting to n00b.homelinux.com through FTP; if my dns is current you'll be prompted to login). And i've got no idea how to turn it off; it's NOWHERE in the web interface, and i've read here http://www.beyondlogic.org/nb5/ that the FTP server is a part of the bootloader. Still, i don't know why it won't forward the FTP port to my PC, seeing as how it has a HTTP server as well (the web interface) and forwards this fine.

kovert 09-06-2006 03:37 AM

Very strange. I connected via FTP, HTTP and TELNET. I tried with SSH but no luck. I was just wondering the HTTP is internal correct? or is that running on the router as well? I'd suggest telnet/ssh to login to your router and looking in the /etc/init.d/ directory if it exists. It should have a bunch of scripts that are run at boot up for the services hopefully there will be one labed FTP or similar and you can then stop the service with "/etc/init.d/ftp stop". That is assuming there was a file called ftp.

greeklegend 09-07-2006 04:10 AM

That's a good idea, if i could delete the startup entry for the ftp server, that'd be nice.
Problem is, it looks like it's a part of the bootloader according to that article. And even it it's not, / is a read-only squashfs (and /var is a ramdisk i can write to). I want to run a ftp server, but not so badly that I want to hack my firmware or something h4x0r like that. Any other suggestions or should I give up?

kovert 09-09-2006 02:20 PM

You can always setup the server to use a different port...I guess that is what I would try to do.

greeklegend 09-10-2006 02:41 AM

Wow. Why didn't I think of that lol. Works perfectly now, thanks guys


All times are GMT -5. The time now is 10:48 AM.