Skip to content

mborne/ansible-ufw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mborne.ufw

Configure UFW default policies and rules.

Role Variables

See defaults/main.yml

Sample playbook

---
- hosts: all
  vars:
    ufw_default_outgoing_policy: allow
    ufw_default_incoming_policy: deny
    ufw_rules:
    - { rule: 'limit', port: '22', proto: 'tcp' }
    - { rule: 'allow', port: '80', proto: 'tcp' }
    - { rule: 'allow', port: '443', proto: 'tcp' }
  roles:
    - mborne.ufw

Credits

Widely inspired by an old version of weareinteractive/ansible-ufw.

License

MIT

About

[DEV] Configure UFW default policies and rules

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published