Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Sep 2011 13:03:25 +0100
From:      Matt Smith <matt@xtaz.co.uk>
To:        "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>
Cc:        freebsd-net@freebsd.org
Subject:   Re: gif interface not passing IPv6 packets
Message-ID:  <CAD0n1vGoVJLJOPBmqfcENbo0b69HDU6Mc4%2BzXqPJp1deXCfXpQ@mail.gmail.com>
In-Reply-To: <108C96DF-9011-4E38-8B0D-0ED6B46B2DE5@lists.zabbadoz.net>
References:  <CAD0n1vG0fvHMkBxxLRq0Y%2Bx9rDt5AXb4WZhq-oxuqpti4mQC7w@mail.gmail.com> <108C96DF-9011-4E38-8B0D-0ED6B46B2DE5@lists.zabbadoz.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 26 September 2011 12:46, Bjoern A. Zeeb
<bzeeb-lists@lists.zabbadoz.net> 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<UP,POINTOPOINT,RUNNING,MULTICAST> 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<PERFORMNUD>
        options=3D1<ACCEPT_REV_ETHIP_VER>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAD0n1vGoVJLJOPBmqfcENbo0b69HDU6Mc4%2BzXqPJp1deXCfXpQ>