Skip to content

europ/CSIRT-MU-HW1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CSIRT-MU Homework 1

A simple homework for Ansible playbook.

Task

The task can be found here in Czech.

Prerequisites

  1. Debian GNU/Linux 9.9.0
  2. Ansible
    • ansible-playbook 2.8.1
  3. superuser root has ssh key pair
    • generated via ssh-keygen
    • stored in <root's home>/.ssh/
      • id_rsa.pub
      • id_rsa
  4. netfilter-persistent apt package

Run

The Ansible playbook requires root privileges. Run the following commands as root.

# reset policies and flush all rules for all chains of IPv4 and IPv6
./reset-net.sh

# list policies and all rules for all chains of IPv4 and IPv6
./list-net.sh

# run Ansible playbook
ansible-playbook playbook.yml

# list policies and all rules for all chains of IPv4 and IPv6
./list-net.sh