From owner-freebsd-net@FreeBSD.ORG Wed Feb 12 11:13:28 2014 Return-Path: Delivered-To: freebsd-net@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E3FD06BB; Wed, 12 Feb 2014 11:13:27 +0000 (UTC) Received: from st11p09mm-asmtp001.mac.com (st11p09mm-asmtp001.mac.com [17.164.24.96]) by mx1.freebsd.org (Postfix) with ESMTP id B2D4615C8; Wed, 12 Feb 2014 11:13:27 +0000 (UTC) Received: from [10.71.14.30] (dsl-hkibrasgw1-58c380-33.dhcp.inet.fi [88.195.128.33]) by st11p09mm-asmtp001.mac.com (Oracle Communications Messaging Server 7u4-27.08(7.0.4.27.7) 64bit (built Aug 22 2013)) with ESMTPSA id <0N0V00LOGODTE750@st11p09mm-asmtp001.mac.com>; Wed, 12 Feb 2014 10:13:09 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.11.87,1.0.14,0.0.0000 definitions=2014-02-12_03:2014-02-12,2014-02-12,1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=3 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1401130000 definitions=main-1402120020 Content-type: multipart/signed; boundary="Apple-Mail=_32E6992C-E0BD-4E35-BEAC-4CC98DE269FB"; protocol="application/pgp-signature"; micalg=pgp-sha1 MIME-version: 1.0 (Mac OS X Mail 7.1 \(1827\)) Subject: Re: gifconfig_gifX not working with cloned_interfaces? From: Kimmo Paasiala In-reply-to: <20140212.065059.1470588740590268007.hrs@allbsd.org> Date: Wed, 12 Feb 2014 12:12:57 +0200 Message-id: References: <20140212.065059.1470588740590268007.hrs@allbsd.org> To: Hiroki Sato X-Mailer: Apple Mail (2.1827) Cc: freebsd-net@FreeBSD.org X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Feb 2014 11:13:28 -0000 --Apple-Mail=_32E6992C-E0BD-4E35-BEAC-4CC98DE269FB Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 On 11.2.2014, at 23.50, Hiroki Sato wrote: > Kimmo Paasiala wrote > in : >=20 > kp>=20 > kp> On 22.12.2013, at 12.05, Kimmo Paasiala = wrote: > kp>=20 > kp> >=20 > kp> > On 22.12.2013, at 12.01, Olivier Cochard-Labb=C3=A9 = > kp> > wrote: > kp> >=20 > kp> >> On Sat, Dec 21, 2013 at 9:27 PM, Kimmo Paasiala = > kp> >> wrote: > kp> >>>=20 > kp> >>> FreeBSD 10.0-RC2 r259413 i386. > kp> >>>=20 > kp> >>> I have this set up in rc.conf: > kp> >>>=20 > kp> >>> cloned_interfaces=3D"gif0" > kp> >>> gifconfig_gif0=3D"88.xxx.xxx.xxx 62.yyy.yyy.yyy" > kp> >>> ifconfig_gif0_ipv6=3D"inet6 2001:14b8:aaa:bbb::2 = 2001:14b8:aaa:bbb::1 > kp> >>> prefixlen 128=E2=80=9D > kp> >>>=20 > kp> >>> I=E2=80=99m not using gif_interfaces=3D=E2=80=9Cgif0=E2=80=9D = since it=E2=80=99s deprecated as per > kp> >>> the warning messages spewed by the rc(8) scripts. > kp> >>>=20 > kp> >>> However this does not work properly The =E2=80=98ifconfig gif0 = tunnel > kp> >>> 88.xxx.xxx.xxx 62.yyy.yyy.yyy=E2=80=99 does not get executed. = It looks to me > kp> >>> that the tunnel set up is only performed when gif0 is listed = in > kp> >>> gif_interfaces. > kp> >>>=20 > kp> >>> I can work around this by doing this instead of the = 'gifconfig_gif0' > kp> >>> line: > kp> >>>=20 > kp> >>> ifconfig_gif0=3D=E2=80=9C tunnel 88.xxx.xxx.xxx = 62.yyy.yyy.yyy=E2=80=9D > kp> >>>=20 > kp> >>=20 > kp> >> Hi, > kp> >>=20 > kp> >> You can configure gif interface like a standard interface = (without > kp> >> using gifconfig_), here is an example: > kp> >>=20 > kp> >> cloned_interfaces=3D"gif0 gif1" > kp> >> ifconfig_gif0=3D"inet 10.0.24.2/24 10.0.24.4 tunnel 10.0.23.2 = 10.0.34.4 > kp> >> up" > kp> >> ifconfig_gif1_ipv6=3D"inet6 2001:db8:24::2 prefixlen 64 tunnel > kp> >> 2001:db8:23::2 2001:db8:34::4 up" > kp> >>=20 > kp> >> Regards, > kp> >>=20 > kp> >> Olivier > kp> >=20 > kp> > Hi, > kp> >=20 > kp> > Yes I know. I did note that in my workaround for the problem. = However, > kp> > the rc.conf(5) manual page claims that gifconfig_gifX should = still > kp> > work and that=E2=80=99s why I=E2=80=99m reporting the issue. > kp> >=20 > kp> > -Kimmo > kp> >=20 > kp>=20 > kp> Hello, > kp>=20 > kp> Has anyone had time to look at this issue? I could try to come up = with > kp> a fix myself but I=E2=80=99d first like to know what is the proper = way > kp> configure gif(4) interfaces with FreeBSD 10. If gif_interfaces is > kp> deprecated then is gifconfig_gifX also deprecated? If = gifconfig_gifX > kp> is also deprecated then this is a documentation issue and also the > kp> rc(8) scripts should warn about using it like they do now warn = about > kp> gif_interfaces. If gifconfig_gifX is still valid then something = must > kp> be done about the handling of cloned_interfaces in rc.conf. >=20 > gifconfig_gifN is also deprecated. Combination of gif_interfaces and > gifconfig_gifN still works, but it should be rewritten with > cloned_interfaces and ifconfig_IF. I will add an warning message to > gifconfig_gifN, too. >=20 > -- Hiroki Hello, Thanks for the information. I think the rc.conf(5) manual page needs = updating as well for FreeBSD 10. It now says: gif_interfaces (str) This variable is deprecated in favor of cloned_interfaces. Set to the list of gif(4) tunnel = inter=E2=80=90 faces to configure on this host. A = gifconfig_=E2=9F=A8interface=E2=9F=A9 variable is assumed to exist for each value of = interface. The value of this variable is used to configure the = link layer of the tunnel according to the syntax of the = tunnel option to ifconfig(8). Additionally, this option = ensures that each listed interface is created via the create = option to ifconfig(8) before attempting to configure it. This should be reworded so that it says that gifconfig_ is = also a deprecated variable and also mention that it does not work with = cloned_interfaces (the reason for my PR). Also it should be mentioned = that the proper way to configure the tunnel part of the gif(4) interface = is to use ifconfig_gifN=3D=E2=80=9Ctunnel my.ip their.ip=E2=80=9D. Maybe = it=E2=80=99s also worth repeating the information in the gif(4) manual = page? -Kimmo --Apple-Mail=_32E6992C-E0BD-4E35-BEAC-4CC98DE269FB Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJS+0kwAAoJEFvLZC0FWRVpQ+0H/0GG383qDXMA0V5IhyszlNg4 LytcrXlkE3JfJ2D/7aU7D6GcrjSbp7N2PHifYhqYPOGdc6QhqrsMKF8zmSC1Jt/4 fr3sek1BE5XV6UaAawSbsWtUz0kX6Fy1uzCoNnPbwvY+2G50uKk/BZ8FL07tA4oW /pj9/CSdsmGxrhdLZ94DuKtCywEH+99im1ezYBwUVd7dY6YVuw+eTyyNKCBDE5kI AvqHTPMYpE9ihbNFFvZLOg7Gdu3a0kCXAVAHVn28/xBFPRsmbddSXGqsfGyBIsdw qLPn4a551OmFahcwTpxb3TKBz8gRwUfMZ66cl93OsFPKANAzftaSwNu1Uvsf+h8= =2n5u -----END PGP SIGNATURE----- --Apple-Mail=_32E6992C-E0BD-4E35-BEAC-4CC98DE269FB--