Add NAT64, DNS64 to network
ci/woodpecker/push/flux-reconcile-source Pipeline was successful
ci/woodpecker/push/coredns-build Pipeline was successful

This commit is contained in:
2026-06-12 22:34:01 +02:00
parent 374ee146fe
commit 829f940ee7
12 changed files with 518 additions and 3 deletions
+67 -1
View File
@@ -6,6 +6,7 @@
- name: bridge1
vlan-filtering: true
- name: containers
- name: nat64
handle_absent_entries: remove
handle_entries_content: remove_as_much_as_possible
@@ -65,6 +66,12 @@
- bridge: containers
interface: veth-tailscale
comment: Tailscale container interface
- bridge: containers
interface: veth-coredns
comment: CoreDNS container interface
- bridge: nat64
interface: veth-tayga
comment: Tayga NAT64 container interface
- bridge: bridge1
interface: ether1
pvid: 2
@@ -188,7 +195,8 @@
values:
allow-remote-requests: true
cache-size: 20480
servers: 1.1.1.1,1.0.0.1,2606:4700:4700::1111,2606:4700:4700::1001
# CoreDNS container provides DNS64; it forwards upstream to 1.1.1.1/8.8.8.8.
servers: 172.20.0.3
- name: Configure DNS static entries
community.routeros.api_modify:
@@ -244,6 +252,46 @@
handle_absent_entries: remove
handle_entries_content: remove_as_much_as_possible
- name: Configure DHCP server options (IPv6-only preferred, RFC 8925)
community.routeros.api_modify:
path: ip dhcp-server option
data:
# Option 108: 32-bit seconds timer telling capable clients to disable IPv4.
# 0x00015180 = 86400 seconds (1 day).
# Quoted to prevent YAML from parsing the hex literal as integer 86400.
- name: v6only-preferred
code: 108
value: "0x00015180"
handle_absent_entries: remove
handle_entries_content: remove_as_much_as_possible
- name: Configure DHCP server option sets
community.routeros.api_modify:
path: ip dhcp-server option sets
data:
- name: v6only-set
options: v6only-preferred
handle_absent_entries: remove
handle_entries_content: remove_as_much_as_possible
- name: Attach option 108 to LAN DHCP server
community.routeros.api_find_and_modify:
ignore_dynamic: false
path: ip dhcp-server
find:
name: dhcp1
values:
dhcp-option-set: v6only-set
- name: Attach option 108 to IOT DHCP server
community.routeros.api_find_and_modify:
ignore_dynamic: false
path: ip dhcp-server
find:
name: dhcp3
values:
dhcp-option-set: v6only-set
- name: Configure IPv6 ND defaults
community.routeros.api_find_and_modify:
ignore_dynamic: false
@@ -252,3 +300,21 @@
default: true
values:
advertise-dns: true
- name: Configure IPv6 ND pref64 on LAN (vlan2)
community.routeros.api_find_and_modify:
ignore_dynamic: false
path: ipv6 nd
find:
interface: vlan2
values:
pref64: 64:ff9b::/96
- name: Configure IPv6 ND pref64 on IOT (vlan5)
community.routeros.api_find_and_modify:
ignore_dynamic: false
path: ipv6 nd
find:
interface: vlan5
values:
pref64: 64:ff9b::/96