Apply outbound restriction in exam_mode on macvtap interfaces too

This commit is contained in:
Raphael Dannecker 2025-12-17 13:24:24 +01:00
parent a986254abc
commit 1f45184d0c
3 changed files with 57 additions and 0 deletions

View file

@ -72,6 +72,16 @@
- exam_destination_allowed_ipv4 is defined
- exam_destination_allowed_ipv4 | length > 0
- name: Install no-way-out nf-table for macvtap device
ansible.builtin.template:
src: no-way-out-nftable.j2
dest: "/usr/local/sbin/no-way-out-nftable"
mode: '0755'
when:
- exam_destination_allowed_ipv4 is defined
- exam_destination_allowed_ipv4 | length > 0
- vm_support is defined and vm_support
- name: Enable login script via pam_exec.so
ansible.builtin.lineinfile:
dest: /etc/pam.d/common-session