FTP: Configure anonymous-only download

Share this link

Install the vsftpd package:

# yum install -y vsftpd

Edit the /etc/vsftpd/vsftpd.conf file and set the local_enable directive to NO:

local_enable=NO

Add two new rules to the firewall:

# iptables -I INPUT -m state --state NEW -m tcp -p tcp --dport 20 -j ACCEPT
# iptables -I INPUT -m state --state NEW -m tcp -p tcp --dport 21 -j ACCEPT

Save the firewall configuration:

# service iptables save

Edit the /etc/sysconfig/iptables-config file and change the IPTABLES_MODULES directive:

IPTABLES_MODULES="nf_conntrack_ftp nf_nat_ftp"

Restart the iptables service:

# service iptables restart

Activate the vsftpd service at boot:

# chkconfig vsftpd on

Start the vsftpd service:

# service vsftpd start
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

Leave a Reply

RHCSA7: Task of the day

Allowed time: 10 minutes.
Create two new user accounts "steve" and "oliver".
Create a group "team". Create a directory "shared".
All files put into the "shared" directory by "steve" or "oliver" should belong to the "team" group and be only visible by them.

RHCE7: Task of the day

Allowed time: 10 minutes.
Set up a default secure MariaDB database called maria and create a table named people with two columns respectively name varchar(20) and age int(10) unsigned.

Follow me on Twitter

Poll for favorite RHEL 7 book

What is your favorite RHEL 7 book to prepare RHCSA & RHCE exams?

View Results

Loading ... Loading ...

Poll for most difficult RHCSA 7 topic

What do you think is the most difficult RHCSA 7 topic?

View Results

Loading ... Loading ...

Poll for most difficult RHCE 7 topic

What do you think is the most difficult RHCE 7 topic?

View Results

Loading ... Loading ...

Archives