Skip to content

About

Ansible role to manage the iptables rules

Resources

Stars

0 stars

Watchers

3 watching

Forks

Latest commit

 

History

19 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Firewall

This role manages the iptables rules.

Usage

You role must contains a templates/iptables.j2 file with your iptables rules.

In your role's meta, add a dependency to this role using the syntax described below.

# my_role/meta/main.yml
  - role: firewall
    caller_name: my_role

When you will run the playbook, the rules will be applied.

Rules template example

# Firewall rules for the 'nginx' role
*filter
:nginx_in - [0:0]
-I INPUT -j nginx_in
-A nginx_in -p tcp -m tcp --dport 80 -j ACCEPT
COMMIT

About

Ansible role to manage the iptables rules

Resources

Stars

0 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages