From 17f10052bdbc4cf5bfd0e2fa335f13c0165284a5 Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Mon, 1 Sep 2025 22:24:41 +0200 Subject: Fix networking issues when VPN isn't active --- host_vars/archlinux.local.yml | Bin 207 -> 288 bytes host_vars/archlinux.local.yml.example | 7 ++++++- host_vars/rpi5.local.yml | Bin 529 -> 610 bytes host_vars/rpi5.local.yml.example | 6 +++++- host_vars/ubuntu.local.yml.example | 5 +++++ 5 files changed, 16 insertions(+), 2 deletions(-) (limited to 'host_vars') diff --git a/host_vars/archlinux.local.yml b/host_vars/archlinux.local.yml index cae65971..66880995 100644 Binary files a/host_vars/archlinux.local.yml and b/host_vars/archlinux.local.yml differ diff --git a/host_vars/archlinux.local.yml.example b/host_vars/archlinux.local.yml.example index 0a727133..5e8c1e55 100644 --- a/host_vars/archlinux.local.yml.example +++ b/host_vars/archlinux.local.yml.example @@ -1,6 +1,11 @@ --- +# Using raspberry pi as gateway (VPN) and DNS sinkhole (pihole) network_ipv4_address: "10.0.0.201" -network_ipv4_gateway: "10.0.0.1" +network_ipv4_gateway: "10.0.0.200" +network_ipv4_dns: "10.0.0.200" +network_ipv6_address: "fd5c:fd8b:2b8c::201/64" +network_ipv6_gateway: "fd5c:fd8b:2b8c::200" +network_ipv6_dns: "fd5c:fd8b:2b8c::200" wireguard_connections: protonvpn-us-1: | diff --git a/host_vars/rpi5.local.yml b/host_vars/rpi5.local.yml index e823df29..f5eccb3b 100644 Binary files a/host_vars/rpi5.local.yml and b/host_vars/rpi5.local.yml differ diff --git a/host_vars/rpi5.local.yml.example b/host_vars/rpi5.local.yml.example index af2e8dea..2b0e9dbb 100644 --- a/host_vars/rpi5.local.yml.example +++ b/host_vars/rpi5.local.yml.example @@ -1,6 +1,10 @@ --- -network_ipv4_address: "10.0.0.202" +network_ipv4_address: "10.0.0.200" network_ipv4_gateway: "10.0.0.1" +network_ipv4_dns: "10.0.0.200" +network_ipv6_address: "fd5c:fd8b:2b8c::200/64" +network_ipv6_gateway: "fd5c:fd8b:2b8c::1" +network_ipv6_dns: "fd5c:fd8b:2b8c::200" # TOTP generator: `openssl rand -base64 32 | head -c "20" | base32` pihole_totp_secret: "CHANGEME" diff --git a/host_vars/ubuntu.local.yml.example b/host_vars/ubuntu.local.yml.example index e552d7ea..1a1cb875 100644 --- a/host_vars/ubuntu.local.yml.example +++ b/host_vars/ubuntu.local.yml.example @@ -1,6 +1,11 @@ --- +# Not using raspberry pi as gateway or DNS sinkhole network_ipv4_address: "10.0.0.203" network_ipv4_gateway: "10.0.0.1" +network_ipv4_dns: "10.0.0.1" +network_ipv6_address: "fd5c:fd8b:2b8c::203/64" +network_ipv6_gateway: "fd5c:fd8b:2b8c::1" +network_ipv6_dns: "fd5c:fd8b:2b8c::1" wireguard_connections: protonvpn-us-1: | -- cgit v1.2.3