You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Nemo 1401957497 OpenBSD adaptation 3 years ago
defaults Add apostrophe to port (ansible updated) 3 years ago
handlers Adapt client_iptables role to support Gentoo 3 years ago
meta Add UDP ports in iptables role and update README role 3 years ago
tasks Move some specific-OS group_vars into role vars (ex: Debian.yml in the role vars folder) 3 years ago
vars OpenBSD adaptation 3 years ago Add apostrophe to port (ansible updated) 3 years ago

Ansible Role: client iptables

This role defines iptables rules for a GNU/Linux server (but NOT for routers).


WARNING : do not apply this role on routers !!!

This role assumes you have a clean iptables configuration on your host (else, you may need to flush the current rules).

Role Variables

All variables and default values are defined in defaults/main.yml :

# All authorized TCP ports
  - '22'

# All authorized UDP ports
udp_authorized_ports: []

# All incoming authorized IP
ip_authorized: []

# Set to false to avoid iptables configure with this role
configure_iptables: true

# Iptables save files (Ipv4 and IPv6)
iptables_save_file: /etc/iptables/rules.v4
ip6tables_save_file: /etc/iptables/rules.v6



Example Playbook

- hosts: all
    - client_iptables



Author Information

This role was created in 2020 by Nemo.