From owner-freebsd-bugs@FreeBSD.ORG Mon Dec 29 18:06:00 2014 Return-Path: Delivered-To: freebsd-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 24F2BBEA for ; Mon, 29 Dec 2014 18:06:00 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0CC736414D for ; Mon, 29 Dec 2014 18:06:00 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id sBTI5xrE044021 for ; Mon, 29 Dec 2014 18:05:59 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 196361] New: IPv6 routes leak between FIBs Date: Mon, 29 Dec 2014 18:06:00 +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: 10.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jhealy@logn.net X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- 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: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Dec 2014 18:06:00 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196361 Bug ID: 196361 Summary: IPv6 routes leak between FIBs Product: Base System Version: 10.1-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: freebsd-bugs@FreeBSD.org Reporter: jhealy@logn.net When configuring multiple FIBs, IPv4 routes are properly constrained to each FIB, but IPv6 routes leak between FIBs. Steps to reproduce: loader.conf: set net.fibs=3 Turn off default of adding new interfaces routes to all FIBs: # sysctl net.add_addr_allfibs=0 Create two new interfaces, with IPv4 and IPv6 addresses on each, with each assigned to its own FIB: # ifconfig em1 inet 192.0.2.1/24 fib 1 # ifconfig em1 inet6 2001:db8:dead:beef::1/64 fib 1 # ifconfig em2 inet 203.0.113.1/24 fib 2 # ifconfig em2 inet6 2001:db8:cafe:babe::1/64 fib 2 Consult the routing table for each FIB: # setfib -F 1 netstat -rn Routing tables (fib: 1) Internet: Destination Gateway Flags Netif Expire 192.0.2.0/24 link#2 U em1 192.0.2.1 link#2 UHS lo0 Internet6: Destination Gateway Flags Netif Expire 2001:db8:cafe:babe::/64 link#3 U em2 2001:db8:dead:beef::/64 link#2 U em1 2001:db8:dead:beef::1 link#2 UHS lo0 fe80::%em1/64 link#2 U em1 fe80::a00:27ff:fef6:162a%em1 link#2 UHS lo0 fe80::%em2/64 link#3 U em2 fe80::%lo0/64 link#5 U lo0 # setfib -F 2 netstat -rn Routing tables (fib: 2) Internet: Destination Gateway Flags Netif Expire 203.0.113.0/24 link#3 U em2 203.0.113.1 link#3 UHS lo0 Internet6: Destination Gateway Flags Netif Expire 2001:db8:cafe:babe::/64 link#3 U em2 2001:db8:cafe:babe::1 link#3 UHS lo0 2001:db8:dead:beef::/64 link#2 U em1 fe80::%em1/64 link#2 U em1 fe80::%em2/64 link#3 U em2 fe80::a00:27ff:fe62:d267%em2 link#3 UHS lo0 fe80::%lo0/64 link#5 U lo0 Note that as expected, the IPv4 routes are constrained to their FIB (192.0.2.0 to FIB 1 and 203.0.113.0 to FIB 2). However, the IPv6 routes (deadbeef and cafebabe) leak between the FIBs; both prefixes that I add are listed in both FIBs (as well as the link-local stuff). Posted to freebsd-net and bz@ said this is a regression and to file this PR. Thanks, Jason -- You are receiving this mail because: You are the assignee for the bug.