From 1de60742f45e71b06fdfac55fb886f04808e1e38 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Tue, 18 Apr 2023 14:25:10 +0200 Subject: [PATCH] Solved another wireguard bug --- roles/application-wireguard/handlers/main.yml | 5 ++++- roles/application-wireguard/templates/set-mtu.sh.j2 | 3 +-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/roles/application-wireguard/handlers/main.yml b/roles/application-wireguard/handlers/main.yml index 246d49a2..7a05661b 100644 --- a/roles/application-wireguard/handlers/main.yml +++ b/roles/application-wireguard/handlers/main.yml @@ -10,4 +10,7 @@ name: wg-quick@wg0.service state: restarted enabled: yes - daemon_reload: yes \ No newline at end of file + daemon_reload: yes + +- name: "reload sysctl configuration" + shell: "sysctl -p" \ No newline at end of file diff --git a/roles/application-wireguard/templates/set-mtu.sh.j2 b/roles/application-wireguard/templates/set-mtu.sh.j2 index eae6555f..e1a8edf1 100644 --- a/roles/application-wireguard/templates/set-mtu.sh.j2 +++ b/roles/application-wireguard/templates/set-mtu.sh.j2 @@ -1,4 +1,3 @@ #!/bin/bash ip li set mtu 1400 dev eth0 -ip li set mtu 1400 dev wlo1 -sysctl -p \ No newline at end of file +ip li set mtu 1400 dev wlo1 \ No newline at end of file