From nobody Fri Feb 21 10:31:42 2025 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YzmdV69jnz5pZ70 for ; Fri, 21 Feb 2025 10:31:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YzmdV5d37z3gpt for ; Fri, 21 Feb 2025 10:31:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1740133902; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=/waC3gvN68XgOus31KEEgHc/jfPmlD3jP2DRQB1xjAs=; b=PICwUNMPNuJtGeofODGZic2JslqNmCdoPcuT1fbE9gX2aoxd5CBHfcej/N8S7tIwH/O/Px D7aApToTA7yMpCICuAbXYKAlvAL3iHP+MI6xg/pvwnKTct9waEHyRNT06arqWvvZKFg/TO /x3NR9Ns5qZgQB7RQNwCLIbgq3339OmNXp7QnPyncbWJPrb8afD608t0bX4ow2d7/5yclf CFPXF8DJNJUfLJNckLvgQn4Xr0GQPzPkCEtX2Vm3wT050Cx7Togb3WD9UWlaNaBPreCG7M 3GP1ftRXKYic2f8FiLshTZVlAiFnd+u7dfeTUT+JYtni3wTMN0vzy2fy/byV0Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1740133902; a=rsa-sha256; cv=none; b=Z1N7+Sm85u7aZ4ZR4frf4QG6fvzfX0pQDveKjSsR2aom7iS+Ptl6rl3BeOlQ/s/cKdLAXC qedORmRUM0Ew/Wmm9B/lTJJO9A3wlXB8j2aH4XKFD81dXPtedo1mQPhEBcZRkn64QnXyFU Vtps5b4Oj8ZY9xIa2GnBTriVrGLG9hwmGF4g8ScckuiTe9nA/i9u08j29IOzycVjErXa/r QQYGkgHr7ixFpFM8IEVi4wCzBoPPldhIlzfNCwhs2JJSlz+irEYvqGuFsmTjanIS2kMoEw GPIAc23cs3ZxSdKRiZEsi5uHXHScduNYsYNdIzAAyNFWwFN59jJizrKyP8khQA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1740133902; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=/waC3gvN68XgOus31KEEgHc/jfPmlD3jP2DRQB1xjAs=; b=YbvKgYt3jIw7iiCjVaZwkDQ17jlDR2TLnHrPVKJDSDNV0RRwomC1OeUXjNrl4p4gM5EA0B M2IBNOUHleShCdXZqYj0+30sx7uL0KeLc2S+9GmGPiF1OgcUVd4KJJ0DVIwMQ01+bNhi5P q9DisDkBJvnSVAa+hh4I5AtknMwQ9YfyElZzn3zzuSavmWQ55tV6k5hUmwcgXLDGXRFZWK NPaG99Wc7/eJV52m6XMcMCI78tv9aM2MC57riHCIQyYWGBTsBb4Z5c5WNZsT72b/PtGrmV ecTp67S2RNYUiITkUu662b45sGuVDv+3kiAiumD7ff4s3YA25ZWn64RWM4WMdw== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4YzmdV59Gvz3Mm for ; Fri, 21 Feb 2025 10:31:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 51LAVgXG060463 for ; Fri, 21 Feb 2025 10:31:42 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 51LAVg9S060462 for bugs@FreeBSD.org; Fri, 21 Feb 2025 10:31:42 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 284946] pf: af-to fails when IPv4 nexthop is an IPv6 address Date: Fri, 21 Feb 2025 10:31:42 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 15.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: lexi@hemlock.eden.le-fay.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D284946 Bug ID: 284946 Summary: pf: af-to fails when IPv4 nexthop is an IPv6 address Product: Base System Version: 15.0-CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: lexi@hemlock.eden.le-fay.org interface configuration: vtnet0: flags=3D1008843 me= tric 0 mtu 1500 =20=20=20=20=20=20=20 options=3D4c00bb ether 52:54:00:bb:17:50 inet 46.235.229.111/32 broadcast 46.235.229.111 inet6 fe80::5054:ff:febb:1750%vtnet0/64 scopeid 0x1 inet6 2a00:1098:6b::1/128 groups: arpa media: Ethernet autoselect (10Gbase-T ) status: active nd6 options=3D21 note that the IPv4 address is a /32. default route: route to: 0.0.0.0 destination: 0.0.0.0 mask: 0.0.0.0 gateway: fe80::1%vtnet0 fib: 0 interface: vtnet0 flags: recvpipe sendpipe ssthresh rtt,msec mtu weight expire 0 0 0 0 1500 1 0=20 IPv4 connectivity works fine: # ping 1.1.1.1 PING 1.1.1.1 (1.1.1.1): 56 data bytes 64 bytes from 1.1.1.1: icmp_seq=3D0 ttl=3D57 time=3D1.241 ms then i added this af-to rule: pass in on { lf, ep.yarrow } inet6 from to 64:ff9b::/96 af-to inet from 46.235.229.111/32 when pinging 64:ff9b::1.1.1.1 from another machine, traffic appears on the internal interface: 10:24:28.751677 IP6 2a00:1098:6b:100::2 > 64:ff9b::101:101: ICMP6, echo request, id 4695, seq 0, length 16 10:24:29.771743 IP6 2a00:1098:6b:100::2 > 64:ff9b::101:101: ICMP6, echo request, id 4695, seq 1, length 16 10:24:30.830451 IP6 2a00:1098:6b:100::2 > 64:ff9b::101:101: ICMP6, echo request, id 4695, seq 2, length 16 however, the traffic disappears into a black hole; it does not appear on vt= net0 on the router or in pflog. when this happens, the router logs: Feb 21 10:24:28 yarrow kernel: arpresolve: can't allocate llinfo for 0.0.0.= 0 on vtnet0 Feb 21 10:24:30 yarrow syslogd: last message repeated 2 times the pf state entry: all ipv6-icmp 46.235.229.111:4709 (2a00:1098:6b:100::2[4709]) -> 1.1.1.1:8 (64:ff9b::101:101[4709]) NO_TRAFFIC:NO_TRAFFIC if i change the external IPv4 address to a /24 and add an IPv4 default rout= e, then the af-to rule starts working: 10:28:05.991764 IP 46.235.229.111 > 1.1.1.1: ICMP echo request, id 4725, seq 10, length 16 10:28:05.993141 IP 1.1.1.1 > 46.235.229.111: ICMP echo reply, id 4725, seq = 10, length 16 10:28:07.041611 IP 46.235.229.111 > 1.1.1.1: ICMP echo request, id 4725, seq 11, length 16 10:28:07.042860 IP 1.1.1.1 > 46.235.229.111: ICMP echo reply, id 4725, seq = 11, length 16 ^C and pf now has two state entries: vtnet0 icmp 46.235.229.111:28946 -> 1.1.1.1:8 0:0 all ipv6-icmp 46.235.229.111:4725 (2a00:1098:6b:100::2[4725]) -> 1.1.1.1:8 (64:ff9b::101:101[4725]) NO_TRAFFIC:NO_TRAFFIC however, that's the wrong configuration for this network, so i can't leave = it in place except for quick testing. --=20 You are receiving this mail because: You are the assignee for the bug.=