From owner-freebsd-bugs@freebsd.org Sun Apr 9 08:29:27 2017 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C8439D35379 for ; Sun, 9 Apr 2017 08:29:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 9E1ADCF2 for ; Sun, 9 Apr 2017 08:29:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v398TRRq092338 for ; Sun, 9 Apr 2017 08:29:27 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 218508] Tunneling and aliases using the tun device, reusing a destination address works with IPv4, but not IPv6 Date: Sun, 09 Apr 2017 08:29:27 +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: 11.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: reezer@reezer.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-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 MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Apr 2017 08:29:27 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D218508 Bug ID: 218508 Summary: Tunneling and aliases using the tun device, reusing a destination address works with IPv4, but not IPv6 Product: Base System Version: 11.0-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: freebsd-bugs@FreeBSD.org Reporter: reezer@reezer.org I can create a tun device by using: ifconfig tun0 create ifconfig tun 10.1.2.0 196.2.3.4=20 ifconfig tun alias 196.2.3.3 196.2.3.4 ifconfig up This works great and allows me to use the 10.1.2.0 and have it tunneled over the second (aliased) tunnel when I set up the correct route using /sbin/rou= te add -net 10.0.0.0/8 -iface tun0. I have this setup, using IPv6 only working as it is supposed to. To explain what I am am actually achieving with this: In the background I am using BGP over a one-to-one VPN software using the tunnel interface. Doing the same thing on IPv6, however doesn't work when I add an alias, usi= ng the same destination address twice: ifconfig tun0 inet6 fdaa:abc:abc:abc::1 fe80::111:0 prefixlen /128 ifconfig tun0 inet6 alias fe80::111:1 fe80::111:0 prefixlen /128 ifconfig: ioctl (SIOCAIFADDR): File exists Using another destination address this works however. Since this works on I= Pv4 I'd expect it to work here as well. --=20 You are receiving this mail because: You are the assignee for the bug.=