[IPTABLES] Add rules (Not tested)
This commit is contained in:
parent
5fa2b5bd2b
commit
fcd5694fa8
14 changed files with 415 additions and 0 deletions
19
roles/iptables/tasks/accept_private_networks.yml
Normal file
19
roles/iptables/tasks/accept_private_networks.yml
Normal file
|
@ -0,0 +1,19 @@
|
|||
---
|
||||
|
||||
- name: Accept INPUT 192.168.1.0/24
|
||||
ansible.builtin.iptables:
|
||||
chain: INPUT
|
||||
destination: 192.168.1.0/24
|
||||
jump: ACCEPT
|
||||
comment: Accept INPUT established
|
||||
state: present
|
||||
become: yes
|
||||
|
||||
- name: Accept OUTPUT 192.168.1.0/24
|
||||
ansible.builtin.iptables:
|
||||
chain: OUTPUT
|
||||
destination: 192.168.1.0/24
|
||||
jump: ACCEPT
|
||||
comment: Accept OUTPUT established
|
||||
state: present
|
||||
become: yes
|
Loading…
Add table
Add a link
Reference in a new issue