亚洲香蕉成人av网站在线观看_欧美精品成人91久久久久久久_久久久久久久久久久亚洲_热久久视久久精品18亚洲精品_国产精自产拍久久久久久_亚洲色图国产精品_91精品国产网站_中文字幕欧美日韩精品_国产精品久久久久久亚洲调教_国产精品久久一区_性夜试看影院91社区_97在线观看视频国产_68精品久久久久久欧美_欧美精品在线观看_国产精品一区二区久久精品_欧美老女人bb

首頁 > 編程 > .NET > 正文

vsftpd-1.1.3配制實例之一:INTERNET_SITE

2024-07-21 02:35:43
字體:
來源:轉載
供稿:網友

  This example shows how you might set up a (possibly large) internet facing
  FTP site.
  The emphasis will be on security and performance.
  We will see how by integrating vsftpd with xinetd, we get a powerful
  combination.
  Step 1) Set up your xinetd configuration file.
  An example xinetd configuration file "vsftpd.xinetd" is supplied.
  To install it:
  cp vsftpd.xinetd /etc/xinetd.d/vsftpd
  Let's look at the important content in this file and see what it does:
  disable = no
  socket_type = stream
  wait = no
  This says that the service is active, and it is using standard TCP sockets.
  user = root
  server = /usr/local/sbin/vsftpd
  The server PRogram /usr/local/sbin/vsftpd is used to handle incoming FTP
  requests, and the program is started as root (vsftpd will of course quickly
  drop as mUCh privilege as possible). NOTE! Make sure that you have the vsftpd
  binary installed in /usr/local/sbin (or change the file path in the xinetd
  file).
  per_source = 5
  instances = 200
  For security, the maximum allowed connections from a single ip address is 5.
  The total maximum concurrent connections is 200.
  no_access = 192.168.1.3
  As an example of how to ban certain sites from connecting, 192.168.1.3 will
  be denied access.
  banner_fail = /etc/vsftpd.busy_banner
  This is the file to display to users if the connection is refused for whatever
  reason (too many users, IP banned).
  Example of how to populate it:
  echo "421 Server busy, please try later." > /etc/vsftpd.busy_banner
  log_on_success += PID HOST DURATION
  log_on_failure += HOST
  This will log the IP address of all connection attempts - successful or not,
  along with the time. If an FTP server is launched for the connection, it's
  process ID and usage duration will be logged too. If you are using RedHat
  like me, this log information will appear in /var/log/secure.
  Step 2) Set up your vsftpd configuration file.
  An example file is supplied. Install it like this:
  cp vsftpd.conf /etc
  Let's example the contents of the file:
  # Access rights
  anonymous_enable=YES
  local_enable=NO
  write_enable=NO
  anon_upload_enable=NO
  anon_mkdir_write_enable=NO
  anon_other_write_enable=NO
  This makes sure the FTP server is in anonymous-only mode and that all write
  and upload permissions are disabled. Note that most of these settings are
  the same as the default values anyway - but where security is concerned, it
  is good to be clear.
  # Security
  anon_world_readable_only=YES
  connect_from_port_20=YES
  hide_ids=YES
  pasv_min_port=50000
  pasv_max_port=60000
  These settings, in order
  - Make sure only world-readable files and Directories are served.
  - Originates FTP port connections from a secure port - so users on the FTP
  server cannot try and fake file content.
  - Hide the FTP server user IDs and just display "ftp" in directory listings.
  This is also a performance boost.
  - Set a 50000-60000 port range for passive connections - may enable easier
  firewall setup!

  # Features
  xferlog_enable=YES
  ls_recurse_enable=NO
  ascii_download_enable=NO
  async_abor_enable=YES
  In order,
  - Enables recording of transfer stats to /var/log/vsftpd.log
  - Disables "ls -R", to prevent it being used as a DoS attack. Note - sites
  wanting to be copied via the "mirror" program might need to enable this.
  - Disables downloading in ASCII mode, to prevent it being used as a DoS
  attack (ASCII downloads are CPU heavy).
  - Enables older FTP clients to cancel in-progress transfers.
  # Performance
  one_process_model=YES
  idle_session_timeout=120
  data_connection_timeout=300
  accept_timeout=60
  connect_timeout=60
  anon_max_rate=50000
  In order,
  - Activates a faster "one process per connection" model. Note! To maintain
  security, this feature is only available on systems with capabilities - e.g.
  linux kernel 2.4.
  - Boots off idle users after 2 minutes.
  - Boots off idle downloads after 5 minutes.
  - Boots off hung passive connects after 1 minute.
  - Boots off hung active connects after 1 minute.
  - Limits a single client to ~50kbytes / sec download speed.
  Step 3) Restart xinetd.
  (on RedHat)
  /etc/rc.d/init.d/xinetd restart
  If you run into problems, check:
  1) Your /etc/xinetd.d directory only has one FTP service.
  vsftpd.conf
  # Access rights
  anonymous_enable=YES
  local_enable=NO
  write_enable=NO
  anon_upload_enable=NO
  anon_mkdir_write_enable=NO
  anon_other_write_enable=NO
  # Security
  anon_world_readable_only=YES
  connect_from_port_20=YES
  hide_ids=YES
  pasv_min_port=50000
  pasv_max_port=60000
  # Features
  xferlog_enable=YES
  ls_recurse_enable=NO
  ascii_download_enable=NO
  async_abor_enable=YES
  # Performance
  one_process_model=YES
  idle_session_timeout=120
  data_connection_timeout=300
  accept_timeout=60
  connect_timeout=60
  anon_max_rate=50000
  vsftpd.xinetd
  # vsftpd is the secure FTP server.
  service ftp
  {
  disable = no
  socket_type = stream
  wait = no
  user = root
  server = /usr/local/sbin/vsftpd
  per_source = 5
  instances = 200
  no_access = 192.168.1.3
  banner_fail = /etc/vsftpd.busy_banner
  log_on_success += PID HOST DURATION
  log_on_failure += HOST
  }

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
亚洲香蕉成人av网站在线观看_欧美精品成人91久久久久久久_久久久久久久久久久亚洲_热久久视久久精品18亚洲精品_国产精自产拍久久久久久_亚洲色图国产精品_91精品国产网站_中文字幕欧美日韩精品_国产精品久久久久久亚洲调教_国产精品久久一区_性夜试看影院91社区_97在线观看视频国产_68精品久久久久久欧美_欧美精品在线观看_国产精品一区二区久久精品_欧美老女人bb
国模精品视频一区二区| 国产精品一区久久| 国产精品电影观看| 热re91久久精品国99热蜜臀| 亚洲综合在线小说| 亚洲成人av在线播放| 中文国产成人精品| 久久精品视频网站| 国产一区二区三区免费视频| 狠狠久久五月精品中文字幕| 精品视频在线播放色网色视频| 亚洲精品aⅴ中文字幕乱码| 欧美电影免费在线观看| 亚洲永久在线观看| www.久久久久久.com| 亚洲新声在线观看| 亚洲香蕉av在线一区二区三区| 欧美成人自拍视频| 尤物九九久久国产精品的分类| 亚洲欧洲第一视频| 美女av一区二区三区| 91精品国产自产91精品| 久久久精品久久久| 欧美精品videosex极品1| 一区二区福利视频| 国产日韩在线观看av| 久久久精品视频成人| 91精品视频专区| 欧美精品性视频| 久久婷婷国产麻豆91天堂| 国产精品一区二区三区在线播放| 久久99热精品这里久久精品| 亚洲综合中文字幕68页| 国产91在线播放| 美女撒尿一区二区三区| 国产精品高潮呻吟久久av黑人| 日韩欧美在线视频免费观看| 欧美高清视频在线观看| 欧美在线视频网| 国产精品老牛影院在线观看| 黑人巨大精品欧美一区二区一视频| 亚洲一区二区三区香蕉| 成人444kkkk在线观看| 亚洲精品久久久久久久久| 亚洲精品久久久久久久久久久| 国产精品亚洲美女av网站| 另类美女黄大片| 最近2019免费中文字幕视频三| 亚洲男人天堂久| 国产精品久久9| 最新国产精品拍自在线播放| 亚洲综合第一页| 91久久中文字幕| 伊人成人开心激情综合网| 日韩在线激情视频| 97香蕉久久夜色精品国产| 川上优av一区二区线观看| 亚洲综合第一页| 在线免费观看羞羞视频一区二区| 美日韩精品免费观看视频| 欧美国产日韩精品| 国产精品久久久久久久久久新婚| 久久激情视频免费观看| 91成人免费观看网站| 日韩不卡中文字幕| 美女撒尿一区二区三区| 日韩精品在线免费| 日韩高清av一区二区三区| 91精品国产91久久久久久不卡| 国产丝袜一区视频在线观看| 亚洲成人免费网站| 92福利视频午夜1000合集在线观看| 黄网动漫久久久| 奇米一区二区三区四区久久| 91精品久久久久久久久中文字幕| 精品一区二区电影| 久久99精品久久久久久琪琪| 久久天堂av综合合色| 日韩精品视频在线播放| 91精品国产91久久久久久吃药| 欧美成在线观看| 国产一区二区在线免费视频| 欧美日韩亚洲天堂| 亚洲国产一区二区三区在线观看| 成人在线精品视频| 亚洲日本成人女熟在线观看| 亚洲男人天堂2019| 亚洲香蕉在线观看| 中文字幕日韩电影| 欧美中文字幕视频| 国产亚洲免费的视频看| 亚洲最大av网| 欧美午夜激情小视频| 亚洲欧美制服中文字幕| 国产亚洲美女精品久久久| 亚洲xxxxx性| 国自产精品手机在线观看视频| 俺去啦;欧美日韩| 国产91ⅴ在线精品免费观看| 国语对白做受69| 亚洲第一精品自拍| 亚洲一区二区黄| 日本中文字幕不卡免费| 国产日产久久高清欧美一区| 成人黄色大片在线免费观看| 日韩中文字幕国产精品| 91国内揄拍国内精品对白| 国产成人精品综合久久久| 久久99亚洲精品| 亚洲一区二区三区毛片| 亚洲精品一区久久久久久| 国产日韩欧美综合| 超在线视频97| 日韩在线小视频| 热久久美女精品天天吊色| 久久99久久亚洲国产| 日韩av在线播放资源| 色综合色综合网色综合| 日本免费久久高清视频| 最好看的2019的中文字幕视频| 国产ts人妖一区二区三区| 91夜夜揉人人捏人人添红杏| 色与欲影视天天看综合网| 中文字幕日本精品| 国产亚洲欧洲高清一区| 大量国产精品视频| 国产成人综合精品在线| 精品偷拍各种wc美女嘘嘘| 亚洲欧美国内爽妇网| 欧美高清第一页| 最近2019好看的中文字幕免费| www国产精品com| 国产精品美女www| 久久久噜噜噜久久| 一本色道久久88精品综合| 久久中文字幕一区| 美女扒开尿口让男人操亚洲视频网站| 性欧美在线看片a免费观看| 日韩美女在线观看一区| 久久久精品一区二区三区| 日韩av在线播放资源| 91免费精品国偷自产在线| 成人黄色av播放免费| 欧美成人网在线| 欧洲s码亚洲m码精品一区| 久久久在线观看| 97精品一区二区视频在线观看| 亚洲网站在线看| 91嫩草在线视频| 国产日韩精品一区二区| 久久亚洲精品一区二区| 亚洲自拍高清视频网站| 伊人久久男人天堂| 91中文字幕在线观看| 69av在线视频| 尤物tv国产一区| 性色av香蕉一区二区| 亚洲精品第一页| 久久精品免费电影| 久久亚洲春色中文字幕| 日韩h在线观看| 国产精品一区二区3区| 亚洲一区二区三区在线免费观看| 色婷婷综合成人av|