8000 GitHub - sorrowless/ansible_iptables: Ansible role to install and configure iptables
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

sorrowless/ansible_iptables

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sbog/iptables

Role to install and configure iptables

Requirements

Ansible 2.4

Role Variables

iptables:
  # Enable whole role
  enabled: yes
  # Flush all rules before adding role ones
  flush_all: yes
  # Allow NTP
  ntp_allowed: yes
  # List of allowed TCP ports
  default_allowed_tcp_ports: [22, 80, 443]
  group_allowed_tcp_ports: []
  host_allowed_tcp_ports: []
  # List of allowed UDP ports
  default_allowed_udp_ports: []
  group_allowed_udp_ports: []
  host_allowed_udp_ports: []
  # Any raw rules can be added
  default_raw_rules: []
  raw_rules: []
  # Deny all which were not explicitly allowed
  deny_all_unallowed: yes
  # Allow ICMP
  icmp_allowed: yes

Dependencies

None

Example Playbook

- name: Run and configure Iptables
  hosts: all
  remote_user: root

  roles:
    - iptables

License

Apache 2.0

Author Information

Stanislaw Bogatkin (https://sbog.ru)

About

Ansible role to install and configure iptables

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages

0