【问题标题】:Unable to adding fortigate firewall as a Ansible host无法将强化防火墙添加为 Ansible 主机
【发布时间】:2020-05-21 10:49:00
【问题描述】:

我在添加 Fortigate 防火墙作为 主机到我的 Ansible 控制器。谁能帮忙 这个问题?我已经复制了防火墙上的 id_rsa.pub 密钥,但是 无法 ping 该防火墙,出现权限等错误 否认。 我需要通过 Ansible 在 Fortigate 上配置 SNMP,一旦我 解决这个问题。希望你们能在这个问题上帮助我。

【问题讨论】:

    标签: ansible snmp snmp-trap fortigate


    【解决方案1】:

    或许能帮到你

    - name: Backup current config
      fortios_config:
        host: 192.168.0.254
        username: admin
        password: password
        backup: yes
    
    - name: Backup only address objects
      fortios_config:
        host: 192.168.0.254
        username: admin
        password: password
        backup: yes
        backup_path: /tmp/forti_backup/
        filter: "firewall address"
    
    - name: Update configuration from file
      fortios_config:
        host: 192.168.0.254
        username: admin
        password: password
        src: new_configuration.conf.j2
    

    来自:https://docs.ansible.com/ansible/latest/modules/fortios_config_module.html

    【讨论】:

    • 您好 Wangjin,我尝试配置上述模块,但出现一些语法错误。实际上,我想在 Fortigate 防火墙上配置 SNMP 代理,但对诸如 trap_src_ipv4、trap_hosts_ipv4 和 query_hosts_ipv4 之类的东西很少感到困惑。云你请给我解释一下。感谢您的宝贵时间
    猜你喜欢
    • 2017-07-06
    • 2017-10-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-06-29
    • 1970-01-01
    • 1970-01-01
    • 2014-01-14
    相关资源
    最近更新 更多