nftables fixes

This commit is contained in:
Wojciech Kozlowski 2022-10-01 16:44:22 +02:00
parent d187a12565
commit 7052c91d27
3 changed files with 8 additions and 8 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/env -S nft -f
flush table ip br0_inet
delete table ip br0_inet
flush table inet br0_inet
delete table inet br0_inet

View File

@ -1,4 +1,4 @@
#!/usr/bin/env -S nft -f
flush table inet wg0_ipv4
delete table inet wg0_ipv4
flush table ip wg0_ipv4
delete table ip wg0_ipv4

View File

@ -23,9 +23,9 @@
when:
nftables_conf is changed
- name: Restart networking
systemd:
name: networking
state: restarted
- name: Reload nft scripts for interfaces
command: "{{ item }}"
with_fileglob:
- "/usr/local/sbin/post-up-*.nft"
when:
nftables_restart is changed