Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 0 additions & 62 deletions test_vm/provision-non-compliant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -578,68 +578,6 @@

# BLOCK ICMP

- name: Ensure UFW is installed
apt:
name: ufw
state: present

- name: Set UFW default policy to deny incoming
command: ufw default deny incoming

- name: Set UFW default policy to allow outgoing
command: ufw default allow outgoing

- name: Allow FTP
command: ufw allow 21/tcp

- name: Allow SSH
command: ufw allow 22/tcp

- name: Allow Telnet
command: ufw allow 23/tcp

- name: Allow SMTP
command: ufw allow 25/tcp

- name: Allow POP3
command: ufw allow 110/tcp

- name: Allow IMAP
command: ufw allow 143/tcp

- name: Allow HTTP
command: ufw allow 80/tcp

- name: Allow SNMP
command: ufw allow 161/udp

- name: Allow VNC
command: ufw allow 5901/tcp

- name: Allow TFTP
command: ufw allow 69/udp

- name: Allow NTP
command: ufw allow 123/udp

- name: Allow BACnet
command: ufw allow 47808/udp

- name: Allow Modbus (if TCP)
command: ufw allow 502/tcp

- name: Allow DHCP server port
command: ufw allow 67/udp

- name: Allow DHCP client port
command: ufw allow 68/udp

- name: Enable UFW
command: ufw --force enable


- name: Reload UFW
command: ufw reload

- name: Release DHCP lease and flush IP from ens5
shell: dhclient -r ens5 && ip addr flush dev ens5
Expand Down
Loading