File tree Expand file tree Collapse file tree 3 files changed +15
-15
lines changed Expand file tree Collapse file tree 3 files changed +15
-15
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
- name : Import base image playbook
3
- import_playbook : base.yml
3
+ ansible.builtin. import_playbook : base.yml
4
4
5
5
- name : Import UFW playbook
6
- import_playbook : ufw.yml
6
+ ansible.builtin. import_playbook : ufw.yml
7
7
8
8
- name : Import OpenVPN playbook
9
- import_playbook : openvpn.yml
9
+ ansible.builtin. import_playbook : openvpn.yml
10
10
11
11
- name : Import VENOM playbook
12
- import_playbook : venom.yml
12
+ ansible.builtin. import_playbook : venom.yml
13
13
14
14
- name : Import AWS playbook
15
- import_playbook : aws.yml
15
+ ansible.builtin. import_playbook : aws.yml
16
16
17
17
- name : Import hardening playbook
18
- import_playbook : harden.yml
18
+ ansible.builtin. import_playbook : harden.yml
Original file line number Diff line number Diff line change 31
31
- name : Configure default policies
32
32
block :
33
33
- name : Set all default policies to deny
34
- ufw :
34
+ community.general. ufw :
35
35
default : deny
36
36
direction : " {{ item }}"
37
37
loop :
43
43
# The OpenVPN port is already opened in
44
44
# cisagov/ansible-role-openvpn
45
45
- name : Allow ssh only from lo
46
- ufw :
46
+ community.general. ufw :
47
47
comment : Allow ssh only from lo
48
48
direction : in
49
49
interface : lo
53
53
- name : Configure outgoing traffic
54
54
block :
55
55
- name : Allow various outgoing traffic
56
- ufw :
56
+ community.general. ufw :
57
57
comment : Allow {{ item.port }} via {{ item.proto | upper }}
58
58
direction : out
59
59
proto : " {{ item.proto }}"
60
60
rule : allow
61
61
to_port : " {{ item.port }}"
62
62
loop : " {{ outgoing_only_ports }}"
63
63
- name : Allow outgoing NTP traffic to AWS
64
- ufw :
64
+ community.general. ufw :
65
65
comment : Allow NTP via UDP to AWS
66
66
direction : out
67
67
proto : udp
70
70
to_ip : 169.254.169.123
71
71
to_port : ntp
72
72
- name : Allow outgoing DHCP traffic
73
- ufw :
73
+ community.general. ufw :
74
74
comment : Allow outgoing DHCP via UDP
75
75
direction : out
76
76
from_port : bootpc
85
85
# of the law, not the intent. Next thing you know I'll be
86
86
# chasing ambulances. :(
87
87
- name : Allow routed packets from anywhere to anywhere
88
- ufw :
88
+ community.general. ufw :
89
89
comment : Allow routed packets from anywhere to anywhere
90
90
route : yes
91
91
rule : allow
92
92
- name : Configure loopback traffic
93
93
# CIS hardening demands these changes.
94
94
block :
95
95
- name : Allow any traffic in or out from lo
96
- ufw :
96
+ community.general. ufw :
97
97
comment : Allow any traffic in or out from lo
98
98
direction : " {{ item }}"
99
99
interface : lo
102
102
- in
103
103
- out
104
104
- name : Deny any traffic in from 127.0.0.0/8 or ::1
105
- ufw :
105
+ community.general. ufw :
106
106
comment : Deny any traffic in from 127.0.0.0/8 or ::1
107
107
direction : in
108
108
from_ip : " {{ item }}"
Original file line number Diff line number Diff line change 32
32
third_party_bucket_name : " {{ build_bucket }}"
33
33
tasks :
34
34
- name : Configure UFW for VENOM traffic
35
- ufw :
35
+ community.general. ufw :
36
36
comment : >
37
37
Allow {{ item.port }} {{ item.direction }} via
38
38
{{ item.proto | upper }}
You can’t perform that action at this time.
0 commit comments