Installation step of vsftpd in Linux
- FTP:
internet.
- VSFTPD:
- Anonymas FTP
Step : 1
root@server ~]# yum install -y vsftpd
Loaded plugins: refresh-packagekit, rhnplugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package vsftpd.x86_64 0:2.2.2-6.el6 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
vsftpd x86_64 2.2.2-6.el6 base 149 k
Transaction Summary
================================================================================
Install 1 Package(s)
Upgrade 0 Package(s)
Total download size: 149 k
Installed size: 331 k
Downloading Packages:
vsftpd-2.2.2-6.el6.x86_64.rpm | 149 kB 00:00
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
base/gpgkey | 6.3 kB 00:00 ...
Importing GPG key 0xFD431D51 "Red Hat, Inc. (release key 2) <security@redhat.com>" from /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
Importing GPG key 0x2FA658E0 "Red Hat, Inc. (auxiliary key) <security@redhat.com>" from /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
Running rpm_check_debug
Running Transaction Test
- Service of VSFTPD:
- service vsftpd start
- service vsftpd stop
- service vsftpd restart
- configure file :/etc/vsftpd/vsftpd.conf
- firewall (iptables) disabled
Step 2:
[root@server17 ~]# chkconfig vsftpd on
Step 3 :
[root@server17 ~]# /etc/init.d/vsftpd restart
Shutting down vsftpd: [FAILED]
Starting vsftpd for vsftpd: [ OK ]
Step 4:
[root@server17 ~]# ftp localhost
Connected to localhost (127.0.0.1).
220 (vsFTPd 2.2.2)
Name (localhost:root): anonymous
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
227 Entering Passive Mode (127,0,0,1,199,69).
150 Here comes the directory listing.
drwxr-xr-x 2 0 0 4096 May 26 2010 pub
226 Directory send OK.
ftp> 221 Goodbye.
[root@server17 ~]# iptables -I INPUT -s 192.168.0.0/24 -p tcp --dport 20 -j ACCEPT
[root@server17 ~]# iptables -I INPUT -s 192.168.0.0/24 -p tcp --dport 21 -j ACCEPT
[root@server17 ~]# iptables -I INPUT -s 192.168.0.0/24 -p udp --dport 20 -j ACCEPT
[root@server17 ~]# iptables -I INPUT -s 192.168.0.0/24 -p udp --dport 21 -j ACCEPT
[root@server17 ~]# /etc/init.d/iptables save
iptables: Saving firewall rules to /etc/sysconfig/iptables:[ OK ]
[root@server17 ~]# /etc/init.d/iptables restart
iptables: Flushing firewall rules: [ OK ]
iptables: Setting chains to policy ACCEPT: filter [ OK ]
iptables: Unloading modules: [ OK ]
iptables: Applying firewall rules: [ OK ]
[root@server17 ~]# grep IPTABLES_MODULES= /etc/sysconfig/iptables-config
IPTABLES_MODULES=""
[root@server17 ~]# vim /etc/sysconfig/iptables-config
[root@server17 ~]# grep IPTABLES_MODULES= /etc/sysconfig/iptables-config
IPTABLES_MODULES="nf_conntrack_ftp nf_nat_ftp"
[root@server17 ~]# /etc/init.d/iptables save
iptables: Saving firewall rules to /etc/sysconfig/iptables:[ OK ]
[root@server17 ~]#
iptables: Flushing firewall rules: [ OK ]
iptables: Setting chains to policy ACCEPT: filter [ OK ]
iptables: Unloading modules: [ OK ]
iptables: Applying firewall rules: [ OK ]
iptables: Loading additional modules: nf_conntrack_ftp nf_n[ OK ]
Leave a Comment