nixos-module/container/wireguard: set ipv4 default route

This commit is contained in:
Astro 2022-09-18 18:54:08 +02:00
parent 9144ef6107
commit 82594811d4
1 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,4 @@
# wireguard upstreams (like njalla and flpk, not like vpn dialup. see vpn-gw)
{ hostName, config, lib, pkgs, ... }:
let
@ -82,8 +83,11 @@ in
# IPv4 default route
networkConfig.DefaultRouteOnDevice = true;
# IPv6 default route
routes = [ {
# IPv4 default route
routeConfig.Destination = "0.0.0.0/0";
} {
# IPv6 default route
routeConfig.Destination = "::/0";
} ];