From 8b0a33933b69d0a72b5c71322eaab75a8045571c Mon Sep 17 00:00:00 2001 From: arcnmx Date: Tue, 13 Feb 2024 17:00:58 -0800 Subject: [PATCH] chore(tf): networking updates --- systems/reisen/sysctl.50-net.conf | 1 + tf/cloudflare_records.tf | 3 +++ tf/proxmox_vms.tf | 14 +++++++++++++- 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/systems/reisen/sysctl.50-net.conf b/systems/reisen/sysctl.50-net.conf index a056914c..78a323ef 100644 --- a/systems/reisen/sysctl.50-net.conf +++ b/systems/reisen/sysctl.50-net.conf @@ -1,3 +1,4 @@ net.ipv6.conf.vmbr0.disable_ipv6=0 net.ipv6.conf.vmbr0.use_tempaddr=1 net.ipv6.conf.vmbr0.accept_ra_rt_info_max_plen=128 +net.ipv4.ping_group_range=0 2147483647 diff --git a/tf/cloudflare_records.tf b/tf/cloudflare_records.tf index 65f8b142..806c620f 100644 --- a/tf/cloudflare_records.tf +++ b/tf/cloudflare_records.tf @@ -50,6 +50,9 @@ module "aya_system_records" { name = "aya" zone_id = cloudflare_zone.gensokyo-zone_zone.id zone_zone = cloudflare_zone.gensokyo-zone_zone.zone + tailscale_v4 = "100.109.213.94" + tailscale_v6 = "fd7a:115c:a1e0::eaed:d55e" + local_v4 = "10.1.1.47" local_v6 = "fd0a::be24:11ff:fec4:66a9" local_subdomains = [ "nixbld", diff --git a/tf/proxmox_vms.tf b/tf/proxmox_vms.tf index 412026f4..6d3b9085 100644 --- a/tf/proxmox_vms.tf +++ b/tf/proxmox_vms.tf @@ -1,6 +1,6 @@ variable "proxmox_container_template" { type = string - default = "local:vztmpl/ct-20240205-nixos-system-x86_64-linux.tar.xz" + default = "local:vztmpl/ct-20240211-nixos-system-x86_64-linux.tar.xz" } locals { @@ -143,6 +143,14 @@ resource "proxmox_virtual_environment_container" "aya" { gateway = "10.1.1.1" } } + ip_config { + ipv6 { + address = "auto" + } + ipv4 { + address = "dhcp" + } + } } startup { @@ -155,6 +163,10 @@ resource "proxmox_virtual_environment_container" "aya" { name = "eth0" mac_address = "BC:24:11:C4:66:A9" } + network_interface { + name = "eth1" + mac_address = "BC:24:11:C4:66:AA" + } operating_system { template_file_id = var.proxmox_container_template