10 Awọn ibeere Ifọrọwanilẹnuwo Advance VsFTP ati Idahun - Apakan II
A bori wa pẹlu idahun ti a ti gba lori nkan wa ti o kẹhin. Nibiti a ti gbekalẹ ibeere iyalẹnu 10 lori Ilana Gbigbe Faili Gidigidi. Tesiwaju ọrọ ifọrọwanilẹnuwo VSFTP a wa nibi ti o n ṣe afihan ọ sibẹ miiran 10 Awọn ibeere Ifọrọwanilẹnuwo Advance eyiti o daju pe yoo ran ọ lọwọ.
- 10 Ipilẹ Vsftp Ibeere Ibeere/Awọn Idahun - Apakan I
Jọwọ ṣe akiyesi faili vsftpd.conf ti lo lati ṣakoso ọpọlọpọ awọn abala ti iṣeto bi a ṣe ṣalaye ninu nkan yii. Nipa aiyipada, awọn vsftpd wa fun faili iṣeto labẹ /etc/vsftpd/vsftpd.conf. Sibẹsibẹ, ọna kika faili jẹ irorun ati pe o ni asọye tabi itọsọna. Awọn ila asọye bẹrẹ pẹlu ‘#’ a ko ka ati laini itọsọna kan ni ọna kika atẹle.
option=value
Ṣaaju ki a to bẹrẹ Ibeere naa ati Idahun ti a ṣalaye daradara wọn a fẹ lati dahun ibeere kan\"Tani yoo wa si Ifọrọwanilẹnuwo FTP?" Daradara ko si ẹnikan. Boya ko si ẹnikan ti yoo wa si ijomitoro FTP. Ṣugbọn a n ṣe afihan awọn ibeere ọlọgbọn koko si ṣetọju ọna eleto kan pe ni eyikeyi Ifọrọwanilẹnuwo, o ko ni ibeere tuntun ti o ko ni mọ lori eyikeyi awọn akọle/akọle ti a bo nibi.
Ṣii faili '/etc/hosts.deny'.
# vi /etc/hosts.deny
Fi ila ti o tẹle si isalẹ faili naa pẹlu adiresi IP ti o fẹ lati dènà iraye si FTP.
# # hosts.deny This file contains access rules which are used to # deny connections to network services that either use # the tcp_wrappers library or that have been # started through a tcp_wrappers-enabled xinetd. # # The rules in this file can also be set up in # /etc/hosts.allow with a 'deny' option instead. # # See 'man 5 hosts_options' and 'man 5 hosts_access' # for information on rule syntax. # See 'man tcpd' for information on tcp_wrappers # vsftpd:172.16.16.1
Lati dènà iraye si FTP si adiresi IP pataki, ṣafikun ofin isubu wọnyi si awọn iptables INPUT pq.
iptables -A RH-Firewall-1-INPUT -p tcp -s 172.16.16.1 -m state --state NEW -m tcp --dport 21 -j DROP
# Add this line to enable secured SSL connection to anonymous users. allow_anon_ssl=YES
# Uncomment this to enable any form of FTP write command. write_enable=YES
# Uncomment this if you want the anonymous FTP user to be able to create # new directories. anon_mkdir_write_enable=YES
# Add this line to enable read only permission to anonymous users. allow_anon_ssl=YES
# Add this line to chmod all anonymous uploads automatically. chmod_enable=YES
# Add this line to disable directory listing. dirlist_enable=NO
# Add this line to maintain session logins. session_support=YES
# Add this line to display directory listing in local time zone. usr_localtime=YES
# Add this line to limit the ftp transfer rate. anon_max_rate=0 # 0 means unlimited
# Add this line to set the ftp timeout session. idle_session_timeout=300
Iyẹn ni gbogbo fun bayi. A yoo wa pẹlu iwe atẹle ni laipẹ, titi di igba naa ki o wa ni aifwy ati asopọ ati ki o maṣe gbagbe lati pese wa pẹlu awọn esi rẹ ti o niyele ni apakan asọye wa