feat(network.tjo.cloud): nat66

This commit is contained in:
Tine 2025-01-02 17:34:59 +01:00
parent 1d4a6390b4
commit bfc7263f92
Signed by: mentos1386
SSH key fingerprint: SHA256:MNtTsLbihYaWF8j1fkOHfkKNlnN1JQfxEU/rBU8nCGw
4 changed files with 7 additions and 4 deletions

View file

@ -3,13 +3,13 @@ default:
apply: apply:
#!/usr/bin/env sh #!/usr/bin/env sh
cd {{justfile_directory()}}/terraform cd {{source_directory()}}/terraform
tofu init tofu init
tofu apply tofu apply
destroy: destroy:
#!/usr/bin/env sh #!/usr/bin/env sh
cd {{justfile_directory()}}/terraform cd {{source_directory()}}/terraform
tofu destroy tofu destroy
configure-all: configure-all:
@ -27,7 +27,7 @@ configure node:
echo "Configuring ${node}.network.tjo.cloud" echo "Configuring ${node}.network.tjo.cloud"
for file in {{justfile_directory()}}/openwrt/etc/config/* for file in {{source_directory()}}/openwrt/etc/config/*
do do
echo "- Deploying /etc/config/$(basename $file)" echo "- Deploying /etc/config/$(basename $file)"
gomplate --file $file \ gomplate --file $file \
@ -63,7 +63,7 @@ configure node:
echo "- Configuring bird" echo "- Configuring bird"
tailscale ssh "root@${node}-network-tjo-cloud" "opkg update" tailscale ssh "root@${node}-network-tjo-cloud" "opkg update"
tailscale ssh "root@${node}-network-tjo-cloud" "opkg install bird2 bird2c" tailscale ssh "root@${node}-network-tjo-cloud" "opkg install bird2 bird2c"
gomplate --file {{justfile_directory()}}/openwrt/etc/bird.conf \ gomplate --file {{source_directory()}}/openwrt/etc/bird.conf \
--datasource common=configs/common.yaml \ --datasource common=configs/common.yaml \
--datasource node=configs/node.${node}.yaml \ --datasource node=configs/node.${node}.yaml \
| tailscale ssh "root@${node}-network-tjo-cloud" "cat > /etc/bird.conf" | tailscale ssh "root@${node}-network-tjo-cloud" "cat > /etc/bird.conf"

View file

@ -32,6 +32,7 @@ config dhcp 'lan'
option dhcpv4 'server' option dhcpv4 'server'
option dhcpv6 'server' option dhcpv6 'server'
option ra 'server' option ra 'server'
option ra_default '1'
list ra_flags 'managed-config' list ra_flags 'managed-config'
list ra_flags 'other-config' list ra_flags 'other-config'

View file

@ -20,6 +20,7 @@ config zone
option output 'ACCEPT' option output 'ACCEPT'
option forward 'REJECT' option forward 'REJECT'
option masq '1' option masq '1'
option masq6 '1'
option mtu_fix '1' option mtu_fix '1'
config forwarding config forwarding

View file

@ -41,6 +41,7 @@ config interface 'wan6'
option device 'eth0' option device 'eth0'
option proto 'dhcpv6' option proto 'dhcpv6'
option peerdns '0' option peerdns '0'
option sourcefilter '0'
list dns '2606:4700:4700::1111' # cloudflare primary list dns '2606:4700:4700::1111' # cloudflare primary
list dns '2620:fe::fe' # quad9 primary list dns '2620:fe::fe' # quad9 primary
list dns '2606:4700:4700::1001' # cloudflare backup list dns '2606:4700:4700::1001' # cloudflare backup