asc.xhack.students_redir role – Deploy a per-student traffic redirector

Note

This role is part of the asc.xhack collection (version 2.0.0).

It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list.

To install it use: git clone git@ssh.dev.azure.com:v3/cloudasc/iac-ansible-collections/xhack $HOME/.ansible/collections/ansible_collections/asc/xhack.

To use it in a playbook, specify: asc.xhack.students_redir.

Entry point main – Deploy a per-student traffic redirector

New in asc.xhack 1.0.0

Synopsis

  • Deploys one redirector per student in a dedicated subnet, forwarding traffic from the student’s target VMs to their C2 server to mask its location.

Parameters

Parameter

Comments

students_redir_config

dictionary

Configuration options for the `students_redir` role.

enabled

boolean

Whether to enable the role

Choices:

  • false ← (default)

  • true

inbound_ports

list / elements=string

Inbound internet ports for the redirector itself

Default: ["80", "443"]

monitor

boolean

Whether to enable monitoring of the VM

Choices:

  • false ← (default)

  • true

vm_size

string

Size of the VM to deploy (Azure VM size)

Default: "Standard_B2as_v2"

vm_suffix

string

Suffix to append to the VM name

Default: "redir"

Authors

  • Ignace De Cock