z9-router(host): remove netwan, vlan55 untagged, add and fix DNS, fix formatting

This commit is contained in:
bitwhisker 2026-08-07 22:32:58 +02:00
commit 251f0c61d2
Signed by: bitwhisker
SSH key fingerprint: SHA256:KybIk/tusSKao6eLGY+ILlFa1rCrzwx66/acBAcKUqE
8 changed files with 22 additions and 46 deletions

View file

@ -3,5 +3,8 @@ systemd_networkd__global_config: "{{ lookup('ansible.builtin.file', 'resources/z
nftables__config: "{{ lookup('ansible.builtin.file', 'resources/z9/z9-router/nftables/nftables.conf') }}" nftables__config: "{{ lookup('ansible.builtin.file', 'resources/z9/z9-router/nftables/nftables.conf') }}"
ansible_pull__timer_on_calendar: "*-*-* 04:00:00 Europe/Berlin" ansible_pull__timer_on_calendar: "*-*-* 04:00:00 Europe/Berlin"
ansible_pull__timer_randomized_delay_sec: 0min ansible_pull__timer_randomized_delay_sec: 0min
unbound_access_control: [ "10.89.208.0/20" ] unbound_access_control: [ "10.89.208.0/20", "2a07:c481:1::/48" ]
deploy_systemd_resolved_config__enable: false
deploy_systemd_resolved_config__dns:
- 127.0.0.1
kea_dhcp__include_vars: resources/z9/z9-router/kea_dhcp.yaml kea_dhcp__include_vars: resources/z9/z9-router/kea_dhcp.yaml

View file

@ -1,4 +1,5 @@
#!/usr/sbin/nft -f #!/usr/sbin/nft -f
flush ruleset
## Variables ## Variables
@ -6,7 +7,6 @@
# Interfaces # Interfaces
#define if_netwan = "netwan"
define if_netlan = "netlan" define if_netlan = "netlan"
define if_wg56_management = "wg56" define if_wg56_management = "wg56"
define if_netwan_400_fux_uplink = "netwan.400" define if_netwan_400_fux_uplink = "netwan.400"
@ -29,7 +29,6 @@ define v4_nat_ifs = { $if_netlan_51_clients,
## Rules ## Rules
table inet reverse-path-forwarding { table inet reverse-path-forwarding {
chain rpf-filter { chain rpf-filter {
type filter hook prerouting priority mangle + 10; policy drop; type filter hook prerouting priority mangle + 10; policy drop;
@ -79,7 +78,7 @@ table inet host {
iifname { $lan_ifs } udp dport 547 accept comment "allow dhcpv6 server access" iifname { $lan_ifs } udp dport 547 accept comment "allow dhcpv6 server access"
# Allow DNS server access from lan_ifs # Allow DNS server access from lan_ifs
iifname { $lan_ifs, $if_wg56_management } udp dport 53 accept comment "allow dns server access from lan_ifs" iifname { $lan_ifs, $if_wg56_management } meta l4proto { tcp, udp } dport 53 accept comment "allow dns server access from lan_ifs"
} }
} }
@ -111,5 +110,9 @@ table inet forward {
# Allow clients and management to most # Allow clients and management to most
iifname { $if_netlan_51_clients, $if_netlan_55_management, $if_wg56_management } oifname $lan_ifs accept comment "Allow clients and management to lan interfaces" iifname { $if_netlan_51_clients, $if_netlan_55_management, $if_wg56_management } oifname $lan_ifs accept comment "Allow clients and management to lan interfaces"
# Fux PVE backups
ip6 saddr { 2a07:c481:0:1::/64 } ip6 daddr { 2a07:c481:1:36::15/128 } accept comment "allow Fux PVE to access CCCHH PBS"
} }
} }

View file

@ -1,8 +0,0 @@
[NetDev]
Name=netlan.55
Kind=vlan
MACAddress=BC:24:11:D2:65:B4
[VLAN]
Id=55

View file

@ -5,14 +5,14 @@ Name=netlan
RequiredForOnline=no RequiredForOnline=no
[Network] [Network]
#LinkLocalAddressing=no
DHCP=no DHCP=no
#IPv6AcceptRA=no DNS=10.89.213.1
DNS=2a07:c481:1:36::1
VLAN=netlan.51 VLAN=netlan.51
VLAN=netlan.52 VLAN=netlan.52
VLAN=netlan.53 VLAN=netlan.53
#VLAN=netlan.55 #VLAN=netlan.55 # vlan 55 ist untaged im pve
VLAN=netwan.400 VLAN=netwan.400
#Description=Management #Description=Management
@ -34,4 +34,3 @@ Prefix=2a07:c481:1:36::/64
Assign=true Assign=true
Token=static:::1 Token=static:::1

View file

@ -7,6 +7,8 @@ RequiredForOnline=no
[Network] [Network]
Description=clients Description=clients
DNS=10.89.208.1
DNS=2a07:c481:1:33::1
# Masquerading done in nftables (nftables.conf). # Masquerading done in nftables (nftables.conf).
IPv6SendRA=yes IPv6SendRA=yes

View file

@ -7,6 +7,8 @@ RequiredForOnline=no
[Network] [Network]
Description=IoT Description=IoT
DNS=10.89.212.1
DNS=2a07:c481:1:34::1
# Masquerading done in nftables (nftables.conf). # Masquerading done in nftables (nftables.conf).
IPv6SendRA=yes IPv6SendRA=yes

View file

@ -7,6 +7,8 @@ RequiredForOnline=no
[Network] [Network]
Description=public Description=public
DNS=185.161.130.65
DNS=2a07:c481:1:35::1
# Masquerading done in nftables (nftables.conf). # Masquerading done in nftables (nftables.conf).
IPv6SendRA=yes IPv6SendRA=yes

View file

@ -1,27 +0,0 @@
[Match]
Name=netlan.55
Type=vlan
[Link]
RequiredForOnline=no
[Network]
Description=Management
# Masquerading done in nftables (nftables.conf).
IPv6SendRA=yes
[Address]
Address=10.89.213.1/24
[IPv6SendRA]
UplinkInterface=netwan.400
EmitDomains=true
Domains=ccchh.net
Managed=true
[IPv6Prefix]
Prefix=2a07:c481:1:36::/64
Assign=true
Token=static:::1