From cc20230213d7ce597e3c7ac4abbadbb6793a3af9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastian=20M=C3=A4user?= Date: Tue, 3 Aug 2021 11:41:58 +0200 Subject: [PATCH] Add prefix --- .gitignore | 1 + roles/exit_ip/templates/rules.v6.j2 | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index b482e5e..18a3f12 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ __pycache__ site.retry *.pyc +ff-ansible.code-workspace diff --git a/roles/exit_ip/templates/rules.v6.j2 b/roles/exit_ip/templates/rules.v6.j2 index d2dcf1a..ea1f7af 100644 --- a/roles/exit_ip/templates/rules.v6.j2 +++ b/roles/exit_ip/templates/rules.v6.j2 @@ -1,7 +1,7 @@ # {{ ansible_managed }} *filter :INPUT ACCEPT [0:0] --A INPUT -p udp -m multiport -i br-{{ site_code }} --destination-ports {{ fastd_port }}:{{ fastd_port + (fastd_instances-1) }} -j LOG --log-prefix "vpn-int-loop-" -m limit --limit 5/min +-A INPUT -p udp -m multiport -i br-{{ site_code }} --destination-ports {{ fastd_port }}:{{ fastd_port + (fastd_instances-1) }} -j LOG --log-prefix "fastd-vpn-int-loop-" -m limit --limit 5/min -A INPUT -p udp -m multiport -i br-{{ site_code }} --destination-ports {{ fastd_port }}:{{ fastd_port + (fastd_instances-1) }} -j REJECT -A INPUT -p udp -i br-{{ site_code }} --dport {{ mesh_wg_port }} -j LOG --log-prefix "wg-vpn-int-loop-" -m limit --limit 5/min -A INPUT -p udp -i br-{{ site_code }} --dport {{ mesh_wg_port }} -j REJECT