From owner-freebsd-net@FreeBSD.ORG Tue Feb 11 19:37:23 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 33F82A2A for ; Tue, 11 Feb 2014 19:37:23 +0000 (UTC) Received: from st11p09mm-asmtp002.mac.com (st11p09mm-asmtp002.mac.com [17.164.24.97]) by mx1.freebsd.org (Postfix) with ESMTP id F368C189C for ; Tue, 11 Feb 2014 19:37:22 +0000 (UTC) Received: from [10.71.14.16] (dsl-hkibrasgw1-58c380-33.dhcp.inet.fi [88.195.128.33]) by st11p09mm-asmtp002.mac.com (Oracle Communications Messaging Server 7u4-27.08(7.0.4.27.7) 64bit (built Aug 22 2013)) with ESMTPSA id <0N0U005J1H1WQLC0@st11p09mm-asmtp002.mac.com> for freebsd-net@freebsd.org; Tue, 11 Feb 2014 18:37:11 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.11.87,1.0.14,0.0.0000 definitions=2014-02-11_06:2014-02-11,2014-02-11,1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=5 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1308280000 definitions=main-1402110092 From: Kimmo Paasiala Content-type: multipart/signed; boundary="Apple-Mail=_AA7A6E49-C0BB-428D-B32C-D12F0487C831"; protocol="application/pgp-signature"; micalg=pgp-sha512 Message-id: MIME-version: 1.0 (Mac OS X Mail 7.1 \(1827\)) Subject: Re: gifconfig_gifX not working with cloned_interfaces? Date: Tue, 11 Feb 2014 20:37:03 +0200 References: <3688B949-7F3B-47FE-8C6A-193805AE2B27@icloud.com> To: freebsd-net@freebsd.org In-reply-to: X-Mailer: Apple Mail (2.1827) 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: Tue, 11 Feb 2014 19:37:23 -0000 --Apple-Mail=_AA7A6E49-C0BB-428D-B32C-D12F0487C831 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 On 22.12.2013, at 12.05, Kimmo Paasiala wrote: >=20 > On 22.12.2013, at 12.01, Olivier Cochard-Labb=E9 = wrote: >=20 >> On Sat, Dec 21, 2013 at 9:27 PM, Kimmo Paasiala = wrote: >>>=20 >>> FreeBSD 10.0-RC2 r259413 i386. >>>=20 >>> I have this set up in rc.conf: >>>=20 >>> cloned_interfaces=3D"gif0" >>> gifconfig_gif0=3D"88.xxx.xxx.xxx 62.yyy.yyy.yyy" >>> ifconfig_gif0_ipv6=3D"inet6 2001:14b8:aaa:bbb::2 = 2001:14b8:aaa:bbb::1 prefixlen 128=94 >>>=20 >>> I=92m not using gif_interfaces=3D=93gif0=94 since it=92s deprecated = as per the warning messages spewed by the rc(8) scripts. >>>=20 >>> However this does not work properly The =91ifconfig gif0 tunnel = 88.xxx.xxx.xxx 62.yyy.yyy.yyy=92 does not get executed. It looks to me = that the tunnel set up is only performed when gif0 is listed in = gif_interfaces. >>>=20 >>> I can work around this by doing this instead of the 'gifconfig_gif0' = line: >>>=20 >>> ifconfig_gif0=3D=93 tunnel 88.xxx.xxx.xxx 62.yyy.yyy.yyy=94 >>>=20 >>=20 >> Hi, >>=20 >> You can configure gif interface like a standard interface (without = using gifconfig_), here is an example: >>=20 >> cloned_interfaces=3D"gif0 gif1" >> ifconfig_gif0=3D"inet 10.0.24.2/24 10.0.24.4 tunnel 10.0.23.2 = 10.0.34.4 up" >> ifconfig_gif1_ipv6=3D"inet6 2001:db8:24::2 prefixlen 64 tunnel = 2001:db8:23::2 2001:db8:34::4 up" >>=20 >> Regards, >>=20 >> Olivier >=20 > Hi, >=20 > Yes I know. I did note that in my workaround for the problem. However, = the rc.conf(5) manual page claims that gifconfig_gifX should still work = and that=92s why I=92m reporting the issue. >=20 > -Kimmo >=20 Hello, Has anyone had time to look at this issue? I could try to come up with a = fix myself but I=92d first like to know what is the proper way configure = gif(4) interfaces with FreeBSD 10. If gif_interfaces is deprecated then = is gifconfig_gifX also deprecated? If gifconfig_gifX is also deprecated = then this is a documentation issue and also the rc(8) scripts should = warn about using it like they do now warn about gif_interfaces. If = gifconfig_gifX is still valid then something must be done about the = handling of cloned_interfaces in rc.conf. -Kimmo --Apple-Mail=_AA7A6E49-C0BB-428D-B32C-D12F0487C831 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----- Comment: GPGTools - https://gpgtools.org iQEcBAEBCgAGBQJS+m3TAAoJEFvLZC0FWRVpVq8H/A+6C2uo0HjYHN+Fhmfyk9p/ wpfiSLQDzCEnAeXNJVg2OlcL0uXzhE7j+wAzu6zZTjRs7wCWehBRqzP64LoBiRuf z6jDD5EOfM34DaIsI4JIto2YgG/RLEdq8Y0Q8rK98CW1D7kI4AZWW0jPf1Y2K5fr OySEzLrzjDr3OJk2GXbuQq0lalhCvp0Lp3tvFkvYH9U+JPq0sqp1CEnpQwr861QK VK+WGchGiJg3qpvSNmw5BPEYsQmMiJLBnyEE8pZDaket3nmGJwTyTinTsqDIQEXz w4DR+yX9ZUGkbMoO5evYeurV7rYDIfiSOtXa1m/zYDmIgIRHwUVR0ApCG7bCU/I= =PedT -----END PGP SIGNATURE----- --Apple-Mail=_AA7A6E49-C0BB-428D-B32C-D12F0487C831--