北京金同方计算机培训,考试认证
当前位置:中招首页 -> IT培训 -> 国外认证 -> Linux认证 -> 经验交流 -> 
xvsftpd-1.1.3配制实例之二:INTERNET_SITE_NOINETD

2005-11-15 15:09:11 来源:未知
 
This  example  shows  how  to  run  vsftpd  in  "standalone"  mode  -  i.e.  without  needing  to  run  an  inetd  of  some  kind  (inetd,  xinetd,  tcpserver  etc).

vsftpd  has  supported  standalone  mode  since  v1.1.0.

With  the  release  of  v1.1.3,  the  feature  list  of  standalone  mode  has  grown  so
  百事特软件编程课程 JAVA软件开发专业
  java2语言核心技术 平面设计师就业班

that  large  internet  sites  no  longer  need  to  use  an  inetd.

Previously,  large  internet  sites  were  forced  to  use  xinetd  for  the  important

feature  of  "limit  number  of  concurrent  connections  from  a  single  IP  address".

Unfortunately,  there  seem  to  be  xinetd  stability  issues  -  various  larger

sites  are  reporting  that  xinetd's  session  counting  can  go  wrong  and  incorrectly

kick  off  users  because  it  thinks  the  FTP  site  is  full  when  it  is  not.

vsftpd  now  natively  handles  maximum  session  counts  and  maximum  session  per  IP

counts.  It  can  also  do  native  access  control  via  tcp_wrappers  integration  and

even  per-connect-IP  configurability.

To  use  this  example  config:

1)  Copy  the  vsftpd.conf  file  in  this  directory  to  /etc/vsftpd.conf.

2)  Start  up  vsftpd,  e.g.

vsftpd  &

3)  That  should  be  it!

The  example  vsftpd.conf  is  based  on  the  vsftpd.conf  from  the  INTERNET_SITE

example.  Let's  look  at  the  differences  (at  the  top):

#  Standalone  mode

listen=YES

This  tells  vsftpd  to  run  in  standalone  mode.  Do  NOT  try  and  run  vsftpd  from

an  inetd  with  this  option  set  -  it  won't  work,  you  may  well  get  500  OOPS:

could  not  bind  listening  socket.

max_clients=200

max_per_ip=4

The  maximum  number  of  session  is  200  (new  clients  will  get  refused  with  a

busy  message).  The  maximum  number  of  sessions  from  a  single  IP  is  4  (the

5th  connect  will  get  refused  with  a  suitable  message).

One  further  note  on  standalone  mode,  regarding  virtual  IPs.  This  is  very

easy  -  just  run  one  copy  of  vsftpd  per  virtual  IP  (remembering  to  give  each

a  separate  config  file  on  the  command  line).

Distinguish  which  vsftpd  is  for  which  virtual  IP  with  a  setting  like  this

in  the  vsftpd.conf:

listen_address=192.168.1.2

And  launch  vsftpd  with  a  specific  config  file  like  this:

vsftpd  /etc/vsftpd.conf.site1  &

vsftpd.conf

#  Standalone  mode

listen=YES

max_clients=200

max_per_ip=4

#  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  

 
   关键词  >>Linux认证
 
新世纪电脑培训学校
北京新华电脑学校
百事特教育学院
金同方计算机学校
北大燕工教育研究院
中科院计算所培训中心

  ■ 最新推荐课程

 ·长城平面设计师就业专修课程  ·育人电脑组装维修培训课程  ·新科海三维设计师就业班课程
 ·中科院JAVA软件工程师培训课程  ·中科院计计算机网络系统集成  ·千禧艺海高级三维室内装潢设计
 ·金同方高级文秘助理实战课程  ·科华时代 3ds max设计师课程  ·北京交通大学日语软件工程师
相关文章
 ·Novell Linux认证工程师(CLE)
 ·Linux认证考试
 ·Linux认证
 ·xIT-Linux认证-考试心得-bell-
 ·选择Linux认证的N个理由
论坛热贴
 【发表评论】
 昵称:
 内容:
 
 【最新评论】 更多...
中招在线版权与免责声明:
① 凡本站注明“稿件来源:中招在线”的所有文字、图片和音视频稿件,版权均属本网所有,任何媒体、网站或个人未经本网协议授权不得转载、链接、转贴或以其他方式复制发表。已经本站协议授权的媒体、网站,在下载使用时必须注明"稿件来源:中招在线",违者本站将依法追究责任。
② 本站注明稿件来源为其他媒体的文/图等稿件均为转载稿,本站转载出于非商业性的教育和科研之目的,并不意味着赞同其观点或证实其内容的真实性。如转载稿涉及版权等问题,请作者在两周内速来电或来函联系。
热 点 聚 焦
Google
   
精 彩 推 荐
免费下载Firefox,改进网页浏览
免费下载相片软件整理你的照片
·新科海平面设计师就业课程
·新科海软件测试工程师课程
·理工百事特软件编程课程
·百事特装饰装潢设计师课程
·J2EE Struts及XML编程技术
·千禧艺海影视后期特效课程
·JAVA软件开发专业课程
·清华万博1+6网络技术总监
·中科院企业VI平面广告课程
·中科院VC++ 6.0/VC++.Net
 
本周院校排行榜
最新资源排行榜
 
 
关于中招 - 广告服务 - 网站建设 - 版权声明 - 联系我们 - 英才加盟 - 网站地图 - 友情链接 - 免责声明 - 设为首页
Copyright @ 2005-2008 zhongzhao.com All Rights Reserved.
中招在线 版权所有