I’m not sure if this is expected behavior or a bug. Can someone help me?
If I enable security.ipv6_filtering
, the host only responds to the initial DHCPv6 Solicit request. Once the lease expires, all subsequent DHCPv6 Renew messages sent from the virtual machine to the host receive no response. Below is the packet capture result:
tcpdump -i incusbr0 -n -vvv port 546 or port 547
tcpdump: listening on incusbr0, link-type EN10MB (Ethernet), snapshot length 262144 bytes
08:59:53.496935 IP6 (flowlabel 0x7fea9, hlim 1, next-header UDP (17) payload length: 104) fe80::1266:6aff:fe51:3f79.546 > ff02::1:2.547: [bad udp cksum 0xb930 -> 0x61d4!] dhcp6 solicit (xid=3cc8dd (rapid-commit) (IA_NA IAID:2492595448 T1:0 T2:0) (IA_PD IAID:2492595448 T1:0 T2:0) (Client-FQDN) (option-request DNS-server SNTP-servers NTP-server opt_82 opt_103 opt_144) (client-ID enterprise 43793 a670def4bb01e237) (elapsed-time 0))
08:59:53.497132 IP6 (class 0xc0, flowlabel 0x73593, hlim 64, next-header UDP (17) payload length: 157) fe80::1266:6aff:fe2c:800b.547 > fe80::1266:6aff:fe51:3f79.546: [bad udp cksum 0xb47e -> 0xbd84!] dhcp6 reply (xid=3cc8dd (client-ID enterprise 43793 a670def4bb01e237) (server-ID hwaddr/time type 1 time 811588800 0cc47a6c026a) (rapid-commit) (IA_NA IAID:2492595448 T1:100 T2:175 (IA_ADDR 2607:5300:60:8401::4 pltime:200 vltime:200)) (status-code Success) (preference 255) (DNS-server 2607:5300:60:8401::1) (Client-FQDN))
09:01:32.495593 IP6 (flowlabel 0x7fea9, hlim 1, next-header UDP (17) payload length: 128) fe80::1266:6aff:fe51:3f79.546 > ff02::1:2.547: [bad udp cksum 0xb948 -> 0x2e25!] dhcp6 renew (xid=53f5e4 (server-ID hwaddr/time type 1 time 811588800 0cc47a6c026a) (IA_NA IAID:2492595448 T1:0 T2:0 (IA_ADDR 2607:5300:60:8401::4 pltime:0 vltime:0)) (Client-FQDN) (option-request DNS-server SNTP-servers NTP-server opt_103 opt_144) (client-ID enterprise 43793 a670def4bb01e237) (elapsed-time 0))
09:01:41.540976 IP6 (flowlabel 0x7fea9, hlim 1, next-header UDP (17) payload length: 128) fe80::1266:6aff:fe51:3f79.546 > ff02::1:2.547: [bad udp cksum 0xb948 -> 0x2a9d!] dhcp6 renew (xid=53f5e4 (server-ID hwaddr/time type 1 time 811588800 0cc47a6c026a) (IA_NA IAID:2492595448 T1:0 T2:0 (IA_ADDR 2607:5300:60:8401::4 pltime:0 vltime:0)) (Client-FQDN) (option-request DNS-server SNTP-servers NTP-server opt_103 opt_144) (client-ID enterprise 43793 a670def4bb01e237) (elapsed-time 904))
09:01:59.219353 IP6 (flowlabel 0x7fea9, hlim 1, next-header UDP (17) payload length: 128) fe80::1266:6aff:fe51:3f79.546 > ff02::1:2.547: [bad udp cksum 0xb948 -> 0x23b5!] dhcp6 renew (xid=53f5e4 (server-ID hwaddr/time type 1 time 811588800 0cc47a6c026a) (IA_NA IAID:2492595448 T1:0 T2:0 (IA_ADDR 2607:5300:60:8401::4 pltime:0 vltime:0)) (Client-FQDN) (option-request DNS-server SNTP-servers NTP-server opt_103 opt_144) (client-ID enterprise 43793 a670def4bb01e237) (elapsed-time 2672))
If I disable security.ipv6_filtering
, the host returns to normal and immediately responds to DHCPv6 Reply requests.
09:20:02.495918 IP6 (flowlabel 0x7fea9, hlim 1, next-header UDP (17) payload length: 128) fe80::1266:6aff:fe51:3f79.546 > ff02::1:2.547: [bad udp cksum 0xb948 -> 0xa9cd!] dhcp6 renew (xid=bd79d2 (server-ID hwaddr/time type 1 time 811588800 0cc47a6c026a) (IA_NA IAID:2492595448 T1:0 T2:0 (IA_ADDR 2607:5300:60:8401::4 pltime:0 vltime:0)) (Client-FQDN) (option-request DNS-server SNTP-servers NTP-server opt_103 opt_144) (client-ID enterprise 43793 a670def4bb01e237) (elapsed-time 0))
09:20:02.496171 IP6 (class 0xc0, flowlabel 0x73593, hlim 64, next-header UDP (17) payload length: 135) fe80::1266:6aff:fe2c:800b.547 > fe80::1266:6aff:fe51:3f79.546: [bad udp cksum 0xb468 -> 0xc4b8!] dhcp6 reply (xid=bd79d2 (client-ID enterprise 43793 a670def4bb01e237) (server-ID hwaddr/time type 1 time 811588800 0cc47a6c026a) (IA_NA IAID:2492595448 T1:93 T2:168 (IA_ADDR 2607:5300:60:8401::4 pltime:200 vltime:200)) (DNS-server 2607:5300:60:8401::1) (Client-FQDN))
09:21:42.495917 IP6 (flowlabel 0x7fea9, hlim 1, next-header UDP (17) payload length: 128) fe80::1266:6aff:fe51:3f79.546 > ff02::1:2.547: [bad udp cksum 0xb948 -> 0x5f1e!] dhcp6 renew (xid=4fc4ef (server-ID hwaddr/time type 1 time 811588800 0cc47a6c026a) (IA_NA IAID:2492595448 T1:0 T2:0 (IA_ADDR 2607:5300:60:8401::4 pltime:0 vltime:0)) (Client-FQDN) (option-request DNS-server SNTP-servers NTP-server opt_103 opt_144) (client-ID enterprise 43793 a670def4bb01e237) (elapsed-time 0))
09:21:42.496206 IP6 (class 0xc0, flowlabel 0x73593, hlim 64, next-header UDP (17) payload length: 135) fe80::1266:6aff:fe2c:800b.547 > fe80::1266:6aff:fe51:3f79.546: [bad udp cksum 0xb468 -> 0x7a09!] dhcp6 reply (xid=4fc4ef (client-ID enterprise 43793 a670def4bb01e237) (server-ID hwaddr/time type 1 time 811588800 0cc47a6c026a) (IA_NA IAID:2492595448 T1:93 T2:168 (IA_ADDR 2607:5300:60:8401::4 pltime:200 vltime:200)) (DNS-server 2607:5300:60:8401::1) (Client-FQDN))
incusbr0 config:
project: default
name: incusbr0
description: ''
type: bridge
config:
ipv4.address: 10.38.58.1/24
ipv4.nat: 'true'
ipv6.address: 2607:5300:60:8401::1/64
ipv6.dhcp: 'true'
ipv6.dhcp.expiry: '200'
ipv6.dhcp.ranges: 2607:5300:60:8401::2-2607:5300:60:8401::10
ipv6.dhcp.stateful: 'true'
ipv6.nat: 'false'
profile config:
name: default
description: Default Incus profile
devices:
eth0:
network: incusbr0
security.ipv4_filtering: 'true'
security.ipv6_filtering: 'true'
security.mac_filtering: 'true'
type: nic
guest vm debian13 cloud image with systemd-networkd