Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

OsgiliathEnterprise/ansible-routing

Repository files navigation

Routing

  • Galaxy: Ansible Galaxy
  • Lint & Tests: Molecule
  • Chat: Join the chat at https://gitter.im/OsgiliathEnterprise/platform

This role let you configure simple port or port/IP redirections using firewalld masquerade

Requirements

Ansible :-), but also some collections and some roles

Role Variables

firewalld_zones:
  - name: public # optional
    nics: # optional, will take all the network interfaces of the machine by default
      - eth0 # optional
    masquerade: true
    port_forward_rules:
      - port_forward_rule: ssh-to-guest-ip
        family: ipv4 # optional
        from_port: 6752
        protocol: tcp # optional
        to_address: 192.168.1.10
        to_port: 22
     - port_forward_rule: ssh-to-ansible-host-forward
        family: ipv4 # optional
        from_port: 6754
        protocol: tcp # optional
        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 

License

Apache-2

Author Information