tcharl.ansible_routing

路由

  • Galaxy: Ansible Galaxy
  • Lint 和 测试: Molecule
  • 聊天: 在 https://gitter.im/OsgiliathEnterprise/platform 加入聊天

这个角色让你可以使用 firewalld 伪装配置简单的端口或端口/IP 转发。

要求

需要 Ansible :-),但也需要一些集合和一些角色

角色变量

firewalld_zones:
  - name: public # 可选
    nics: # 可选,默认会使用机器上的所有网络接口
      - eth0 # 可选
    masquerade: true
    port_forward_rules:
      - port_forward_rule: ssh-to-guest-ip
        family: ipv4 # 可选
        from_port: 6752
        protocol: tcp # 可选
        to_address: 192.168.1.10
        to_port: 22
      - port_forward_rule: ssh-to-ansible-host-forward
        family: ipv4 # 可选
        from_port: 6754
        protocol: tcp # 可选
        to_host: myhost.osgiliath.test
        to_port: 22
    enabled_services:
      - service: ssh
    enabled_ports:
      - port: 6753
        protocol: tcp 
    enabled_port_ranges:
      - port_range: 6753-7000
        protocol: tcp 

许可证

Apache-2

作者信息

关于项目

This role let you configure simple redirections using firewalld masquerade

安装
ansible-galaxy install tcharl.ansible_routing
许可证
other
下载
5.3k
拥有者
Osgiliath frameworks and all stuff from the Osgiliath corp!