FreeBSD 10.2中的Ezjail和/etc/jail.conf

FreeBSD 10.2中的Ezjail和/etc/jail.conf,freebsd,jail,Freebsd,Jail,在使用时,我对以下警告有疑问 关于FreeBSD 10.2的Ezjail-3.4.1 /etc/rc.d/jail:警告:通过jail_*var“在此处输入代码”的每个jail配置已过时。请考虑迁移到/ETC/JAI.CONF“这里输入代码”,这是我的理解,FreeBSD 9已经改变了,但是自从10.2以来,新的方法是默认的方法,并且正在生成警告。我在谷歌上找不到任何关于这个的信息。很多用户提到了这些错误,但忽略了它们,因为它们的监狱仍然有效。AFAIK在10.0中,rc.d/jail脚本转换了

在使用时,我对以下警告有疑问 关于FreeBSD 10.2的Ezjail-3.4.1 /etc/rc.d/jail:警告:通过jail_*var“在此处输入代码”的每个jail配置已过时。请考虑迁移到/ETC/JAI.CONF“这里输入代码”,这是我的理解,FreeBSD 9已经改变了,但是自从10.2以来,新的方法是默认的方法,并且正在生成警告。我在谷歌上找不到任何关于这个的信息。很多用户提到了这些错误,但忽略了它们,因为它们的监狱仍然有效。AFAIK在10.0中,rc.d/jail脚本转换了老式监狱_ 将变量导入临时jail.conf以处理jail。那么警告呢 由rc.d/jail生成

问候
希尔先生

正如您所发现的,FreeBSD 10.x上的监狱使用了一种新的配置方法:

20131010:
rc.d/jail脚本已更新以支持jail(8)
配置文件。“jail_*”rc.conf(5)变量
对于每个监狱,配置会自动转换为
/var/run/jail..conf,然后调用jail(8)实用程序。
这是透明的向后兼容。请参阅下面的一些
不兼容性和rc.conf(5)手册页了解更多详细信息。
现在,这些变量已被弃用,取而代之的是jail(8)配置
文件可以使用“rc.d/jail config”命令生成
/var/run/jail..conf中的jail(8)配置文件
运行监狱(8)实用程序。服务器的默认路径名
配置文件为/etc/jail.conf,可以由
使用$jail\u conf或$jail\u conf变量。
请注意,jail\u devfs\u规则集在
此刻。请考虑改写规则集名称
一个整数。

ezjail是,但没关系:FreeBSD仍然接受前面的方法。您可以忽略此警告。

这似乎是合理正确的。你的问题是什么?
20131010:
    The rc.d/jail script has been updated to support jail(8)
    configuration file.  The "jail_<jname>_*" rc.conf(5) variables
    for per-jail configuration are automatically converted to
    /var/run/jail.<jname>.conf before the jail(8) utility is invoked.
    This is transparently backward compatible.  See below about some
    incompatibilities and rc.conf(5) manual page for more details.

    These variables are now deprecated in favor of jail(8) configuration
    file.  One can use "rc.d/jail config <jname>" command to generate
    a jail(8) configuration file in /var/run/jail.<jname>.conf without
    running the jail(8) utility.   The default pathname of the
    configuration file is /etc/jail.conf and can be specified by
    using $jail_conf or $jail_<jname>_conf variables.

    Please note that jail_devfs_ruleset accepts an integer at
    this moment.  Please consider to rewrite the ruleset name
    with an integer.