add wg0 as trusted interface in firewall

This commit is contained in:
Adithya 2023-10-10 23:18:30 +05:30
parent f99125eead
commit 809f83c040
Signed by: adtya
GPG key ID: 48FC9915FFD326D0
2 changed files with 2 additions and 0 deletions

View file

@ -5,6 +5,7 @@
}: let }: let
inherit (secrets.wireguard_config) peers; inherit (secrets.wireguard_config) peers;
in { in {
networking.firewall.trustedInterfaces = ["wg0"];
networking.wireguard = { networking.wireguard = {
enable = true; enable = true;
interfaces = { interfaces = {

View file

@ -5,6 +5,7 @@
}: let }: let
inherit (secrets.wireguard_config) peers; inherit (secrets.wireguard_config) peers;
in { in {
networking.firewall.trustedInterfaces = ["wg0"];
networking.wireguard = { networking.wireguard = {
enable = true; enable = true;
interfaces = { interfaces = {