From owner-freebsd-bugs@FreeBSD.ORG Sun Dec 22 06:30:01 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DB32F7B7 for ; Sun, 22 Dec 2013 06:30:00 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id B580A1386 for ; Sun, 22 Dec 2013 06:30:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id rBM6U0TD024157 for ; Sun, 22 Dec 2013 06:30:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id rBM6U0qH024151; Sun, 22 Dec 2013 06:30:00 GMT (envelope-from gnats) Resent-Date: Sun, 22 Dec 2013 06:30:00 GMT Resent-Message-Id: <201312220630.rBM6U0qH024151@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Kimmo Paasiala Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1FC7F784 for ; Sun, 22 Dec 2013 06:21:14 +0000 (UTC) Received: from oldred.freebsd.org (oldred.freebsd.org [IPv6:2001:1900:2254:206a::50:4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 0B652136B for ; Sun, 22 Dec 2013 06:21:14 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id rBM6LDDr068157 for ; Sun, 22 Dec 2013 06:21:13 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id rBM6LDYs068144; Sun, 22 Dec 2013 06:21:13 GMT (envelope-from nobody) Message-Id: <201312220621.rBM6LDYs068144@oldred.freebsd.org> Date: Sun, 22 Dec 2013 06:21:13 GMT From: Kimmo Paasiala To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: conf/185080: gifconfig_gifX in rc.conf(5) not used to greate the tunnel part of the gif(4) interface if cloned_interfaces is used to create the gif interface. X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Dec 2013 06:30:01 -0000 >Number: 185080 >Category: conf >Synopsis: gifconfig_gifX in rc.conf(5) not used to greate the tunnel part of the gif(4) interface if cloned_interfaces is used to create the gif interface. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Dec 22 06:30:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Kimmo Paasiala >Release: FreeBSD 10.0-RC2 >Organization: >Environment: FreeBSD firewall.rdnzl.info 10.0-RC2 FreeBSD 10.0-RC2 #2 r259413: Sun Dec 15 14:07:37 EET 2013 kimmo@freebsd10.rdnzl.info:/usr/obj/usr/src/sys/RDNZL i386 >Description: I have this set up in rc.conf: cloned_interfaces="gif0" gifconfig_gif0="88.xxx.xxx.xxx 62.yyy.yyy.yyy" ifconfig_gif0_ipv6="inet6 2001:14b8:aaa:bbb::2 2001:14b8:aaa:bbb::1 prefixlen 128” I’m not using gif_interfaces=“gif0” since it’s deprecated in FreeBSD 10 as per the warning messages spewed by the rc(8) scripts. However this does not work properly The ‘ifconfig gif0 tunnel 88.xxx.xxx.xxx 62.yyy.yyy.yyy’ does not get executed. It looks to me that the tunnel set up is only performed when gif0 is listed in gif_interfaces. I can work around this by doing this instead of the 'gifconfig_gif0' line: ifconfig_gif0=“ tunnel 88.xxx.xxx.xxx 62.yyy.yyy.yyy” >How-To-Repeat: Use cloned_interfaces="gif0" and gifconfig_gif0="a.b.c.d e.f.g.h" in rc.conf(5) for configuring the tunnel part of the gif(4) interface. The tunnel part of the configuration is not applied to the gif interface. >Fix: Somewhere in /etc/network.subr the logic should be changed to also look into cloned_interfaces in addition to gif_interfaces for gifconfig_gifX -settings. >Release-Note: >Audit-Trail: >Unformatted: