【问题标题】:Puppet firewall module does not recognise the 'security' tablePuppet 防火墙模块无法识别“安全”表
【发布时间】:2019-08-12 23:00:29
【问题描述】:

尝试将防火墙规则添加到安全 ip 表中。在 1.8.0 版本中添加了对安全表的支持,我正在运行 1.9.0,所以一切都应该没问题。但是,吐出以下错误

“安全”值无效。有效值为 nat、mangle、filter、raw、rawpost

【问题讨论】:

  • minimal reproducible example 会让这个问题更容易回答。其中应该明确的是该消息是来自 Puppet 还是来自 Puppet 正在使用的目标节点防火墙管理工具。 (如果是后者,那么基本答案是“不要那样做”。)
  • 将您的发现添加为https://github.com/puppetlabs/puppetlabs-firewall github 上的问题,应该有人可以查看

标签: puppet firewall


【解决方案1】:

恐怕即使@9​​87654322@ 模块的开发分支也不接受security 作为firewall 资源的table 参数的值。

https://github.com/puppetlabs/puppetlabs-firewall/blob/master/lib/puppet/type/firewall.rb#L579

也就是说,firewallchain 资源确实接受 security 作为表名,因此模块知道它,但似乎没有添加防火墙规则的方法。

【讨论】:

    猜你喜欢
    • 2020-11-25
    • 1970-01-01
    • 1970-01-01
    • 2022-08-20
    • 2016-08-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多