[Bug 280390] NPTv6 not working

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 23 Jul 2024 20:15:04 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280390

--- Comment #12 from cnbatch@gmail.com ---
With the configuration:

#!/bin/sh
ipfw -q -f flush
cmd="ipfw -q add "
ipfw disable one_pass
ipfw nptv6 NPT create int_prefix fdc9:281f:4d7:9ee9:: ext_if vtnet0 prefixlen
64
$cmd allow icmp6 from any to any
$cmd allow icmp from any to any
$cmd nptv6 NPT ip6 from any to any
$cmd allow ip6 from any to any via vtnet0
ipfw -q nat 1 config if vtnet0 same_ports unreg_only reset
$cmd nat 1 ip4 from any to any via vtnet0
$cmd allow all from any to any
$cmd check-state


caputured:

20:01:54.529756 IP6 2a05:f480:1c00:2c:8ef7::2.46975 >
2a03:f80:XXXX:552b::1.59281: UDP, length 74
20:01:54.529770 IP6 2a05:f480:1c00:2c:8ef7::2.33220 >
2a03:f80:XXXX:552b::1.57885: UDP, length 74
20:01:54.529777 IP6 2a05:f480:1c00:2c:8ef7::2.60415 >
2a03:f80:XXXX:552b::1.59283: UDP, length 74
20:01:54.530495 IP6 2a05:f480:1c00:2c:8ef7::2.62420 >
2a03:f80:XXXX:552b::1.57961: UDP, length 74
20:01:54.530532 IP6 2a05:f480:1c00:2c:8ef7::2.21071 >
2a03:f80:XXXX:552b::1.58223: UDP, length 74
20:01:54.829912 IP6 2a05:f480:1c00:2c:8ef7::2.46975 >
2a03:f80:XXXX:552b::1.59281: UDP, length 74
20:01:54.829928 IP6 2a05:f480:1c00:2c:8ef7::2.33220 >
2a03:f80:XXXX:552b::1.57885: UDP, length 74
20:01:54.829936 IP6 2a05:f480:1c00:2c:8ef7::2.60415 >
2a03:f80:XXXX:552b::1.59283: UDP, length 74
20:01:54.830099 IP6 2a05:f480:1c00:2c:8ef7::2.21071 >
2a03:f80:XXXX:552b::1.58223: UDP, length 74
20:01:54.830113 IP6 2a05:f480:1c00:2c:8ef7::2.62420 >
2a03:f80:XXXX:552b::1.57961: UDP, length 74
20:01:54.851953 IP6 fe80::fc00:5ff:fe07:578d > ff02::1:ff00:2: ICMP6, neighbor
solicitation, who has 2a05:f480:1c00:2c:8ef7::2, length 32
20:01:55.280496 IP6 2a05:f480:1c00:2c:8ef7::2.33220 >
2a03:f80:XXXX:552b::1.57885: UDP, length 74
20:01:55.280506 IP6 2a05:f480:1c00:2c:8ef7::2.46975 >
2a03:f80:XXXX:552b::1.59281: UDP, length 74
20:01:55.280936 IP6 2a05:f480:1c00:2c:8ef7::2.60415 >
2a03:f80:XXXX:552b::1.59283: UDP, length 74
20:01:55.280941 IP6 2a05:f480:1c00:2c:8ef7::2.21071 >
2a03:f80:XXXX:552b::1.58223: UDP, length 74
20:01:55.280942 IP6 2a05:f480:1c00:2c:8ef7::2.62420 >
2a03:f80:XXXX:552b::1.57961: UDP, length 74
20:01:55.908572 IP6 fe80::fc00:5ff:fe07:578d > ff02::1:ff00:2: ICMP6, neighbor
solicitation, who has 2a05:f480:1c00:2c:8ef7::2, length 32
20:01:55.954848 IP6 2a05:f480:1c00:2c:8ef7::2.46975 >
2a03:f80:XXXX:552b::1.59281: UDP, length 74
20:01:55.955296 IP6 2a05:f480:1c00:2c:8ef7::2.33220 >
2a03:f80:XXXX:552b::1.57885: UDP, length 74
20:01:55.955413 IP6 2a05:f480:1c00:2c:8ef7::2.60415 >
2a03:f80:XXXX:552b::1.59283: UDP, length 74
20:01:55.955418 IP6 2a05:f480:1c00:2c:8ef7::2.62420 >
2a03:f80:XXXX:552b::1.57961: UDP, length 74
20:01:55.955420 IP6 2a05:f480:1c00:2c:8ef7::2.21071 >
2a03:f80:XXXX:552b::1.58223: UDP, length 74
20:01:56.932540 IP6 fe80::fc00:5ff:fe07:578d > ff02::1:ff00:2: ICMP6, neighbor
solicitation, who has 2a05:f480:1c00:2c:8ef7::2, length 32
20:01:56.967080 IP6 2a05:f480:1c00:2c:8ef7::2.46975 >
2a03:f80:XXXX:552b::1.59281: UDP, length 74
20:01:56.967092 IP6 2a05:f480:1c00:2c:8ef7::2.33220 >
2a03:f80:XXXX:552b::1.57885: UDP, length 74
20:01:56.967479 IP6 2a05:f480:1c00:2c:8ef7::2.60415 >
2a03:f80:XXXX:552b::1.59283: UDP, length 74
20:01:56.967486 IP6 2a05:f480:1c00:2c:8ef7::2.62420 >
2a03:f80:XXXX:552b::1.57961: UDP, length 74
20:01:56.967489 IP6 2a05:f480:1c00:2c:8ef7::2.21071 >
2a03:f80:XXXX:552b::1.58223: UDP, length 74
20:01:57.681664 IP6 fdc9:281f:4d7:9ee9::2 > 2610:1c1:1:606c::50:15: ICMP6, echo
request, id 1193, seq 0, length 16
20:01:58.485005 IP6 2a05:f480:1c00:2c:8ef7::2.46975 >
2a03:f80:XXXX:552b::1.59281: UDP, length 74
20:01:58.485782 IP6 2a05:f480:1c00:2c:8ef7::2.33220 >
2a03:f80:XXXX:552b::1.57885: UDP, length 74
20:01:58.485865 IP6 2a05:f480:1c00:2c:8ef7::2.60415 >
2a03:f80:XXXX:552b::1.59283: UDP, length 74
20:01:58.485870 IP6 2a05:f480:1c00:2c:8ef7::2.21071 >
2a03:f80:XXXX:552b::1.58223: UDP, length 74
20:01:58.485960 IP6 2a05:f480:1c00:2c:8ef7::2.62420 >
2a03:f80:XXXX:552b::1.57961: UDP, length 74
20:01:58.509630 IP6 fe80::fc00:5ff:fe07:578d > ff02::1:ff00:2: ICMP6, neighbor
solicitation, who has 2a05:f480:1c00:2c:8ef7::2, length 32
20:01:58.686017 IP6 fdc9:281f:4d7:9ee9::2 > 2610:1c1:1:606c::50:15: ICMP6, echo
request, id 1193, seq 1, length 16
20:01:59.364586 IP6 fe80::fc00:5ff:fe07:578d > fe80::5400:5ff:fe07:578d: ICMP6,
neighbor solicitation, who has fe80::5400:5ff:fe07:578d, length 32
20:01:59.364627 IP6 fe80::5400:5ff:fe07:578d > fe80::fc00:5ff:fe07:578d: ICMP6,
neighbor advertisement, tgt is fe80::5400:5ff:fe07:578d, length 24
20:01:59.556555 IP6 fe80::fc00:5ff:fe07:578d > ff02::1:ff00:2: ICMP6, neighbor
solicitation, who has 2a05:f480:1c00:2c:8ef7::2, length 32
20:01:59.710208 IP6 fdc9:281f:4d7:9ee9::2 > 2610:1c1:1:606c::50:15: ICMP6, echo
request, id 1193, seq 2, length 16
20:02:00.580563 IP6 fe80::fc00:5ff:fe07:578d > ff02::1:ff00:2: ICMP6, neighbor
solicitation, who has 2a05:f480:1c00:2c:8ef7::2, length 32
20:02:00.735676 IP6 fdc9:281f:4d7:9ee9::2 > 2610:1c1:1:606c::50:15: ICMP6, echo
request, id 1193, seq 3, length 16
20:02:00.761636 IP6 2a05:f480:1c00:2c:8ef7::2.46975 >
2a03:f80:XXXX:552b::1.59281: UDP, length 74
20:02:00.761647 IP6 2a05:f480:1c00:2c:8ef7::2.33220 >
2a03:f80:XXXX:552b::1.57885: UDP, length 74
20:02:00.762086 IP6 2a05:f480:1c00:2c:8ef7::2.60415 >
2a03:f80:XXXX:552b::1.59283: UDP, length 74
20:02:00.762236 IP6 2a05:f480:1c00:2c:8ef7::2.21071 >
2a03:f80:XXXX:552b::1.58223: UDP, length 74
20:02:00.762276 IP6 2a05:f480:1c00:2c:8ef7::2.62420 >
2a03:f80:XXXX:552b::1.57961: UDP, length 74
20:02:03.576065 IP6 fe80::fc00:5ff:fe07:578d > ff02::1:ff00:2: ICMP6, neighbor
solicitation, who has 2a05:f480:1c00:2c:8ef7::2, length 32
20:02:04.177409 IP6 2a05:f480:1c00:2c:8ef7::2.46975 >
2a03:f80:XXXX:552b::1.59281: UDP, length 74
20:02:04.177420 IP6 2a05:f480:1c00:2c:8ef7::2.60415 >
2a03:f80:XXXX:552b::1.59283: UDP, length 74
20:02:04.177422 IP6 2a05:f480:1c00:2c:8ef7::2.33220 >
2a03:f80:XXXX:552b::1.57885: UDP, length 74
20:02:04.177428 IP6 2a05:f480:1c00:2c:8ef7::2.21071 >
2a03:f80:XXXX:552b::1.58223: UDP, length 74
20:02:04.177430 IP6 2a05:f480:1c00:2c:8ef7::2.62420 >
2a03:f80:XXXX:552b::1.57961: UDP, length 74
20:02:04.613557 IP6 fe80::fc00:5ff:fe07:578d > ff02::1:ff00:2: ICMP6, neighbor
solicitation, who has 2a05:f480:1c00:2c:8ef7::2, length 32
20:02:05.637566 IP6 fe80::fc00:5ff:fe07:578d > ff02::1:ff00:2: ICMP6, neighbor
solicitation, who has 2a05:f480:1c00:2c:8ef7::2, length 32
20:02:06.838005 IP6 fe80::fc00:5ff:fe07:578d > ff02::1:ff00:2: ICMP6, neighbor
solicitation, who has 2a05:f480:1c00:2c:8ef7::2, length 32
20:02:07.876555 IP6 fe80::fc00:5ff:fe07:578d > ff02::1:ff00:2: ICMP6, neighbor
solicitation, who has 2a05:f480:1c00:2c:8ef7::2, length 32
20:02:08.900556 IP6 fe80::fc00:5ff:fe07:578d > ff02::1:ff00:2: ICMP6, neighbor
solicitation, who has 2a05:f480:1c00:2c:8ef7::2, length 32
20:02:09.299695 IP6 2a05:f480:1c00:2c:8ef7::2.46975 >
2a03:f80:XXXX:552b::1.59281: UDP, length 74
20:02:09.299710 IP6 2a05:f480:1c00:2c:8ef7::2.33220 >
2a03:f80:XXXX:552b::1.57885: UDP, length 74
20:02:09.299714 IP6 2a05:f480:1c00:2c:8ef7::2.60415 >
2a03:f80:XXXX:552b::1.59283: UDP, length 74
20:02:09.299716 IP6 2a05:f480:1c00:2c:8ef7::2.21071 >
2a03:f80:XXXX:552b::1.58223: UDP, length 74
20:02:09.299718 IP6 2a05:f480:1c00:2c:8ef7::2.62420 >
2a03:f80:XXXX:552b::1.57961: UDP, length 74
20:02:10.274252 IP6 fe80::fc00:5ff:fe07:578d > ff02::1:ff00:2: ICMP6, neighbor
solicitation, who has 2a05:f480:1c00:2c:8ef7::2, length 32
20:02:11.332731 IP6 fe80::fc00:5ff:fe07:578d > ff02::1:ff00:2: ICMP6, neighbor
solicitation, who has 2a05:f480:1c00:2c:8ef7::2, length 32
20:02:12.356545 IP6 fe80::fc00:5ff:fe07:578d > ff02::1:ff00:2: ICMP6, neighbor
solicitation, who has 2a05:f480:1c00:2c:8ef7::2, length 32

-- 
You are receiving this mail because:
You are the assignee for the bug.