[IPTABLES] Add rules (Not tested)
This commit is contained in:
parent
5fa2b5bd2b
commit
fcd5694fa8
14 changed files with 415 additions and 0 deletions
25
roles/iptables/tasks/drop_all_by_default.yml
Normal file
25
roles/iptables/tasks/drop_all_by_default.yml
Normal file
|
@ -0,0 +1,25 @@
|
|||
---
|
||||
|
||||
- name: Block all INPUT by default
|
||||
ansible.builtin.iptables:
|
||||
chain: INPUT
|
||||
policy: DROP
|
||||
comment: Block all INPUT by default
|
||||
state: present
|
||||
become: yes
|
||||
|
||||
- name: Block all OUTPUT by default
|
||||
ansible.builtin.iptables:
|
||||
chain: OUTPUT
|
||||
policy: DROP
|
||||
comment: Block all OUTPUT by default
|
||||
state: present
|
||||
become: yes
|
||||
|
||||
- name: Block all FORWARD by default
|
||||
ansible.builtin.iptables:
|
||||
chain: FORWARD
|
||||
policy: DROP
|
||||
comment: Block all FORWARD by default
|
||||
state: present
|
||||
become: yes
|
Loading…
Add table
Add a link
Reference in a new issue