Add failing firewall configuration

This commit is contained in:
Thomas Kleinendorst 2024-04-15 09:46:00 +02:00
parent e06547e25c
commit 2502d034d9
3 changed files with 20 additions and 20 deletions

View file

@ -5,6 +5,7 @@
pkg:
- git
- vim
- dnsutils
- ufw
- podman
- snapd
@ -39,6 +40,12 @@
regexp: '^#net/ipv4/ip_forward=1$'
line: 'net/ipv4/ip_forward=1'
notify: Restart ufw
- name: Allow forwarding in sysctl
become: true
ansible.builtin.lineinfile:
path: /etc/sysctl.conf
regexp: '^#net\.ipv4\.ip_forward=1$'
line: net.ipv4.ip_forward=1
- name: Allow all access to ssh
become: true
community.general.ufw: