国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 開發 > 綜合 > 正文

vsftpd-1.1.3配制實例之三:PER_IP_CONFIG

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

  This example should quickly show you the possibilites of per-ip configuration
  with vsFTPd's tcp_wrappers integration. This is new with v1.1.3.
  To use this, you need vsftpd built with tcp_wrappers! This is accomplished
  by editing "builddefs.h" and changing
  #undef VSF_BUILD_TCPWRAPPERS
  to
  #define VSF_BUILD_TCPWRAPPERS
  And then rebuild. If you are lUCky your vendor will have shipped the vsftpd
  binary with this already done for you.
  Next, to enable tcp_wrappers integration, you need this in your vsftpd.conf:
  tcp_wrappers=YES
  And you'll need a tcp_wrappers config file. An example one is supplied in this
  Directory: hosts.allow. It lives at /etc/hosts.allow.
  Let's have a look at the example:
  vsftpd: 192.168.1.3: setenv VSFTPD_LOAD_CONF /etc/vsftpd_tcp_wrap.conf
  vsftpd: 192.168.1.4: DENY
  The first line:
  If a client connects from 192.168.1.3, then vsftpd will apply the vsftpd
  config file /etc/vsftpd_tcp_wrap.conf to the session! These settings are
  applied ON TOP of the default vsftpd.conf.
  This is obviously very powerful. You might use this to apply different
  access restrictions for some IPs (e.g. the ability to upload).
  Or you could give certain classes of IPs the ability to skip connection
  limits (max_clients=0).
  Or you could increase / decrease the bandwidth limiter for certain classes
  of IPs.
  You get the point :-)
  The second line:
  Denies the ability of 192.168.1.4 to connect. Very useful to take care of
  troublemakers. And now you don't need xinetd to do it - hurrah.
  hosts.allow
  #
  # hosts.allow This file describes the names of the hosts which are
  # allowed to use the local INET services, as decided
  # by the '/usr/sbin/tcpd' server.
  #
  vsftpd: 192.168.1.3: setenv VSFTPD_LOAD_CONF /etc/vsftpd_tcp_wrap.conf
  vsftpd: 192.168.1.4: DENY

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 栾川县| 崇阳县| 神池县| 桦甸市| 贞丰县| 库尔勒市| 宜良县| 兴和县| 灵台县| 安远县| 花莲市| 昌图县| 皮山县| 永安市| 本溪| 桂林市| 忻州市| 通渭县| 甘谷县| 河西区| 新疆| 马公市| 年辖:市辖区| 乐业县| 安多县| 建湖县| 邯郸市| 广水市| 平顶山市| 天水市| 库伦旗| 东兴市| 荆州市| 金昌市| 吴旗县| 万源市| 岳西县| 天祝| 遂昌县| 革吉县| 巨鹿县|