From nobody Thu Dec 16 15:52:44 2021 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 D96B518DB4F2 for ; Thu, 16 Dec 2021 15:52:44 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JFGph2hb3z3Nrm for ; Thu, 16 Dec 2021 15:52:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 3C8C92EA3 for ; Thu, 16 Dec 2021 15:52:44 +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 1BGFqiGE097381 for ; Thu, 16 Dec 2021 15:52:44 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1BGFqim9097380 for bugs@FreeBSD.org; Thu, 16 Dec 2021 15:52:44 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 260474] ping -e does not forward packets to specified next-hop Date: Thu, 16 Dec 2021 15:52:44 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 13.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: KOT@MATPOCKuH.Ru 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-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639669964; 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=1XKXKRYINk1wlIDrfSYGTs5MD30/dXhTCtT86DZFwdo=; b=MBLi9UwxJcrzGhq5e1ce4rsjAEMo373i8a+0iGXtyMbmbo4khfem6YjR3e56prSozhBpvm 6BuA5pzBHNQqwdIzg2HA5lxxWw5Jay0bDXkpzQq+DqzrMD3qqQos5gza/RAazRgCTfYxaE o41fk5bO0q0dvgriMr5/LZiTA3pMDKgdj+c1eIRDaFIVdR0c6I5qwhDEs6T9pK3dxJz6VI L/VgVLVD1nE3zblqcPJsih9xatsqGLJDQEcxTTpnP3p9z7AUnDKl0xWK63InpwIlmgRB4O 4hXoVAQWkeTK0nDePbcpTlNr2cLMUO3O1JSSVTe8LGyoszprEFCC9e6z6DK8SA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639669964; a=rsa-sha256; cv=none; b=ndWXnQ7GQL57k8rvDUV+Z/vOVhTNPQfVdZ98suZ2xgFJ7UPOKRQwWDTIoaeVuLE08KyLUv klYGLIa1egZ0uZr6jfUe3EfveV54zU6d+hS4hLnDWDOxJKzGt9qPhS/z7e6y5m1IyvfcXw 8wJgDXxi/fbPhKmG6LEjHCH6QLmWsm6pJ/4YfAtTVwLgWL7pxCynyjGjVDozqC9EG2/I8p Iykv/I+XIBaDZG+fExoCa2YEjQc1ZDZ/cF3VGMXKLsei3lcC/zAXxosxmLS1x0ByAj9X80 Q2VHQhZ3Fhh2qF7+4wPIBNrL9clQulhp24tLNQtOQTwqyMWHeqFHjj9e9a3Sow== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260474 Bug ID: 260474 Summary: ping -e does not forward packets to specified next-hop Product: Base System Version: 13.0-STABLE Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: KOT@MATPOCKuH.Ru "-e" option for ping should change next hop for outgoing packet, but it's changes only source IP address for packet. I'm checked this problem on clean FreeBSD 13.0-RELEASE VM image from site. To reproduce this problem on machine without IPv6 access please follow this steps: # Create a two epairs ifconfig epair1 plumb ifconfig epair1a up ifconfig epair2 plumb ifconfig epair2a up # Plug a epair1 into bridge1 and assign fd00:1::2 to bridge1 ifconfig bridge1 plumb addm epair1a ifconfig bridge1 inet6 -ifdisabled fd00:1::2/64 auto_linklocal # Run a jail gw1 which fd00:1::1 on bridge1 ifconfig epair1b name gw1 jail -c name=3Dgw1 path=3D/ vnet vnet.interface=3Dgw1 allow.raw_sockets=3D1= persist=3D1 jexec gw1 ifconfig gw1 inet6 -ifdisabled fd00:1::1/64 auto_linklocal # Add a IPv6 default route via gw1 route -6 add default fd00:1::1 # Plug a epair2 into bridge2 and assign fd00:2::2 to bridge2 ifconfig bridge2 plumb addm epair2a ifconfig bridge2 inet6 -ifdisabled fd00:2::2/64 auto_linklocal # Run a jail gw2 which fd00:2::1 on bridge2 ifconfig epair2b name gw2 jail -c name=3Dgw2 path=3D/ vnet vnet.interface=3Dgw2 allow.raw_sockets=3D1= persist=3D1 jexec gw2 ifconfig gw2 inet6 -ifdisabled fd00:2::1/64 auto_linklocal # Check reachability ping -c 2 fd00:1::1 ping -c 2 fd00:2::1 # Check MAC addresses ndp -a # Next-hop fd00:2::1 is on bridge2, but packet sent via bridge1 to MAC of g= w1: tcpdump -c 1 -epni bridge1 icmp6 & sleep 1 ping -e fd00:2::1 -c 1 fd00:3::1 I'm got:=20 # ndp -a Neighbor Linklayer Address Netif Expire S F= lags fd00:2::1 02:57:8a:b2:5e:0b bridge2 29s R= =20 fd00:1::1 02:67:f1:0d:66:0b bridge1 32s R= =20 And packet on bridge1: 15:49:30.303387 58:9c:fc:10:04:75 > 02:67:f1:0d:66:0b, ethertype IPv6 (0x86= dd), length 70: fd00:2::2 > fd00:3::1: ICMP6, echo request, seq 0, length 16 Source IP fd00:2::2 is a address for bridge2, and it's correct. But packet found on bridge1 and "02:67:f1:0d:66:0b" is a MAC address of gw1. This problem affects only FreeBSD13. FreeBSD12 does not affected by this issue. To check on FreeBSD12 "-e" option should be replaced which "-g". --=20 You are receiving this mail because: You are the assignee for the bug.=