LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 07-22-2015, 04:32 PM   #1
kwatts59
Member
 
Registered: Aug 2012
Posts: 34

Rep: Reputation: Disabled
Trying to set up an FTP service


Hello everyone,
I am trying to set up my server so that files can be downloaded from the internet.
I am running Fedora 17.
I logged in as root and installed vsftpd using the following commands.

# yum install vsftpd

I modified the vsftpd.conf file so the following options are set

anonymous_enable=NO
ascii_upload_enable=YES
asci_download_enable=YES
chroot_local_user=YES
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd/chroot_list
ls_recursive_enable=YES

Then I restarted vsftpd with the following commands
# systemctl restart vsftpd.service
# systemctl enable vsftpd.service

I entered the following commands to open up ports 20 and 21
#iptables -A INPUT -p tcp --dport 21 -j ACCEPT
#iptables -A INPUT -p tcp --dport 20 -j ACCEPT

I restarted the iptables
# systemctl restart iptables.service


When I type ftp://131.216.46.121 into the address bar of my browser on my PC, I get a "Connection has timed out" error.

Any suggestions would be appreciated.
thanks in advance
 
Old 07-23-2015, 02:28 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
I entered the following commands to open up ports 20 and 21
#iptables -A INPUT -p tcp --dport 21 -j ACCEPT
#iptables -A INPUT -p tcp --dport 20 -j ACCEPT

I restarted the iptables
# systemctl restart iptables.service
Restarting iptables without saving your rules, results in ports 20-21 closed.
So have a look here so see how to save your rules

Regards
 
Old 07-23-2015, 12:39 PM   #3
CubeDev
LQ Newbie
 
Registered: Jun 2015
Posts: 5

Rep: Reputation: Disabled
If it still doesn't work try out ProFTPD. Never had big problems with it.
 
Old 07-23-2015, 12:41 PM   #4
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
my suggestion is always not to use the antiquated/insecure ftp and instead turn on your ssh server to use sftp/scp.
 
Old 07-23-2015, 01:12 PM   #5
sibleytr
LQ Newbie
 
Registered: Jul 2015
Distribution: Ubuntu 16.04.2
Posts: 21

Rep: Reputation: Disabled
Total shot in the dark question, do you have to open ports 20 and 21 because you have a firewall enabled?

Background, running vsFTP on an Ubuntu server and using it for multi user access.
Inside our vsftpd.conf file there is a command line, connect_from_port_20=YES so assuming ports 20 and 21 are not naturally blocked by a built in firewall.
Granted not familiar with Fedora but curious why you had to open the ports.

Other issue during our configuration was ensuring our remote users had the correct folder permissions, chmod 0755 and chown <name>:<group>. Assuming you are trying to access your own account, and your own home folder.
 
  


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
LXer: How to set up a secure FTP service with vsftpd on Linux LXer Syndicated Linux News 0 06-19-2014 01:02 PM
LXer: Telsasoft, a Telecommunications Service Assurance Software Company Based in Minneapolis, Minnesota Received Order for a Set of GSM CDR (Call Detail Record) Reports from a Regional GSM Network Service LXer Syndicated Linux News 0 01-03-2006 09:46 PM
How do I set my FTP server to accept passive FTP? imsam Linux - Newbie 3 12-12-2004 06:22 AM
SuSE 9.2 - FTP Port open with no FTP service?!?! don_wombat Linux - Security 12 12-01-2004 03:14 PM
FTP Service Aldyn Linux - Newbie 4 05-31-2003 01:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:44 AM.

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