From owner-freebsd-net@FreeBSD.ORG Mon Sep 26 12:28:38 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 377681065675 for ; Mon, 26 Sep 2011 12:28:38 +0000 (UTC) (envelope-from matt@xtaz.co.uk) Received: from mail.xtaz.co.uk (xtaz.co.uk [87.194.206.163]) by mx1.freebsd.org (Postfix) with ESMTP id E55778FC0C for ; Mon, 26 Sep 2011 12:28:37 +0000 (UTC) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) (Authenticated sender: gmail) by mail.xtaz.co.uk (Postfix) with ESMTPSA id 35869B075E9 for ; Mon, 26 Sep 2011 13:03:27 +0100 (BST) Received: by vws11 with SMTP id 11so7160186vws.13 for ; Mon, 26 Sep 2011 05:03:25 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.23.14 with SMTP id i14mr6398707vdf.84.1317038605558; Mon, 26 Sep 2011 05:03:25 -0700 (PDT) Received: by 10.52.167.194 with HTTP; Mon, 26 Sep 2011 05:03:25 -0700 (PDT) In-Reply-To: <108C96DF-9011-4E38-8B0D-0ED6B46B2DE5@lists.zabbadoz.net> References: <108C96DF-9011-4E38-8B0D-0ED6B46B2DE5@lists.zabbadoz.net> Date: Mon, 26 Sep 2011 13:03:25 +0100 Message-ID: From: Matt Smith To: "Bjoern A. Zeeb" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-net@freebsd.org Subject: Re: gif interface not passing IPv6 packets X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Sep 2011 12:28:38 -0000 On 26 September 2011 12:46, Bjoern A. Zeeb wrote: > Given you are using NAT make sure that works as expected for the gif > from the remote end. =A0 It might be worth, if you can, do tcpdump on > the external interface of your router. > > Also make sure you can reach the IPv4 tunnel destination. I am using NAT yes however as I mentioned, this configuration has worked perfectly before for a good 6 months so I know it works OK usually. Unfortunately it's only a consumer ADSL router so I can't run tcpdump on it but I can reach the remote end: 64 bytes from 77.75.104.126: icmp_seq=3D0 ttl=3D59 time=3D20.521 ms The thing is even if the tunnel was down I should still be able to ping and use the IP on the local end of the tunnel. I've tested this on another FreeBSD box and even making up a fake tunnel using the same commands I mentioned in the previous email it works fine and I can ping abc::2 from it. On this box that doesn't work. > There's your problem most likely. =A0What happens if you remove and re-ad= d the address like: > ifconfig gif0 inet6 2a01:348:6:45c::2 -alias > ifconfig gif0 inet6 -accept_rtadv > ifconfig gif0 inet6 2a01:348:6:45c::2 2a01:348:6:45c::1 alias The deprecated thing I should have deleted actually before I posted the last email. I figured someone would pick up on that! I deprecate the interface so that it chooses another IP that I have on another interface as the IP to source outgoing traffic from. Again, usually this works fine. I have however tested removing that just in case and it made no difference. You can see the second example I made on the original email when I made a fake gif1 interface using 2abc:: root@tao[~]# ifconfig gif0 inet6 2a01:348:6:45c::2 -alias root@tao[~]# ifconfig gif0 inet6 -accept_rtadv root@tao[~]# ifconfig gif0 inet6 2a01:348:6:45c::2 2a01:348:6:45c::1 alias ifconfig: ioctl (SIOCAIFADDR): Invalid argument root@tao[~]# ifconfig gif0 inet6 2a01:348:6:45c::2 2a01:348:6:45c::1 prefixlen 128 root@tao[~]# ping6 2a01:348:6:45c::2 PING6(56=3D40+8+8 bytes) 2a01:348:6:45c::2 --> 2a01:348:6:45c::2 ^C --- 2a01:348:6:45c::2 ping6 statistics --- 3 packets transmitted, 0 packets received, 100.0% packet loss root@tao[~]# ifconfig gif0 gif0: flags=3D8051 metric 0 mtu 1280 tunnel inet 192.168.1.2 --> 77.75.104.126 inet6 fe80::240:63ff:fee8:793e%gif0 prefixlen 64 scopeid 0x5 inet6 2a01:348:6:45c::2 --> 2a01:348:6:45c::1 prefixlen 128 nd6 options=3D1 options=3D1