LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 12-13-2005, 11:41 PM   #1
seelk
Member
 
Registered: Apr 2004
Location: NJ
Distribution: Ubuntu
Posts: 51

Rep: Reputation: 15
Setting up FTP server


Hey guys, I'm trying to set up my linux desktop as an FTP server. I'm using vsftpd + xinetd. I am able to access my system locally with: lftp localhost, but I can't access it externally. I'm using linksys router: BEFW11S4. I have FTP (Port 21) enabled under UPnP.

When I do "lftp xx.xxx.xxx.xx" it never connects (obviously the "x's" represent my external IP address). I use this command through the same system to test. Is there something I'm overlooking? I'll provide as much information as possible. Please help me.
 
Old 12-13-2005, 11:53 PM   #2
purelithium
Member
 
Registered: Oct 2005
Location: Canada
Distribution: Mandriva 2006.0
Posts: 390

Rep: Reputation: 30
You have to have port forwarding enabled for port 21. I don't belive that vsftpd or xinetd use UPNP, so you must manually forward port 21.
 
Old 12-13-2005, 11:55 PM   #3
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHL9;F1-10; CentOS4-5; DebianSarge-Squeeze
Posts: 1,151

Rep: Reputation: 46
1) Your ISP may be blocking inbound port 21. You can use ShieldsUp at grc.com to see if this is the case.

2) Try explicitly forwarding port 21 requests to the linux box. I'm not sure that UPnP will accomplish the same thing.

3) Locally, you need to open inbound port 21 for tcp in iptables for ftp to work.
 
Old 12-13-2005, 11:58 PM   #4
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 61
You need to also allow port 20.
FTP uses both port 20 (For data transfer) and port 21 (for control).

I think you may also need to allow connections to a range of high port numbers, depending on if you are using passive or active FTP.

I found that a "better" solution was to set up SSH (port 22). Having set this up, you can use sftp, which, apart from being more secure, is easier to set up.

I hope this helps
--Ian
 
Old 12-14-2005, 01:13 AM   #5
purelithium
Member
 
Registered: Oct 2005
Location: Canada
Distribution: Mandriva 2006.0
Posts: 390

Rep: Reputation: 30
Ahh, I didn't know that

Always learning....
 
Old 12-14-2005, 01:19 AM   #6
Infernal211283
Member
 
Registered: Nov 2004
Location: Mid. East / Israel
Distribution: Slackware 10.2, Gentoo
Posts: 157

Rep: Reputation: 30
Quote:
Originally Posted by purelithium
When you have a problem, reboot. It will probably fix whatever was broken.

^ or will make it worse
 
Old 12-14-2005, 10:00 AM   #7
purelithium
Member
 
Registered: Oct 2005
Location: Canada
Distribution: Mandriva 2006.0
Posts: 390

Rep: Reputation: 30
lol. I've never had a reboot make a problem worse... It might not have fixed some things, but never made it worse...
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up an ftp server Jmcatch742 Linux - Newbie 3 04-10-2005 05:21 PM
Setting up a FTP server and Game server Spyiish Slackware 38 11-01-2004 05:32 AM
setting up FTP server sulfur Linux - Newbie 4 09-02-2004 07:48 PM
Can i get help setting up an ftp server? jon_k Linux - Software 1 04-18-2004 01:46 PM
Setting up an FTP Server??? Ricardo77uk Linux - Networking 5 06-25-2001 04:36 PM


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