netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [BUG] Any-IP IPv6 support broken
@ 2015-10-29 15:00 Gilberto Bertin
  2015-10-29 15:34 ` Eric Dumazet
  2015-10-29 18:39 ` Hannes Frederic Sowa
  0 siblings, 2 replies; 8+ messages in thread
From: Gilberto Bertin @ 2015-10-29 15:00 UTC (permalink / raw)
  To: netdev

Hello,
testing Any-IP on my machine, I noticed that it's not working with IPv6
addresses.
Tests are performed on a 4.1 kernel.

Steps to reproduce the bug:

1- make sure Any-IP is working with IPv4 addresses:

# ip -4 route add local 4.4.4.0/24 dev eth0

with this command every packets with an IP in the subnet 4.4.4.0/24 will
be delivered to the eth0 interface.
We can test this:

$ ping 4.4.4.1 -c 1 | grep received
1 packets transmitted, 1 received, 0% packet loss, time 0ms
$ ping 4.4.4.50 -c 1 | grep received
1 packets transmitted, 1 received, 0% packet loss, time 0ms
$ ping 4.4.4.200 -c 1 | grep received
1 packets transmitted, 1 received, 0% packet loss, time 0ms

2- note that it's not actually working with IPv6 addresses:

# ip -6 route add local abcd:abcd:abcd:abcd::/64 dev eth0

$ ping6 -c 1 abcd:abcd:abcd:abcd::1 | grep received
1 packets transmitted, 0 received, 100% packet loss, time 0ms
$ ping6 -c 1 abcd:abcd:abcd:abcd::50 | grep received
1 packets transmitted, 0 received, 100% packet loss, time 0ms
$ ping6 -c 1 abcd:abcd:abcd:abcd::100 | grep received
1 packets transmitted, 0 received, 100% packet loss, time 0ms

Since the kernel should support Any-IP with IPv6 addresses (the patch
was submitted/accepted years ago [1]) I suspect this is a bug.

Even trying with the commands suggested by the patch [1]:
# ip -6 rule  add from all iif eth0 lookup 200
# ip -6 route add local default dev lo table 200

I was not able to get it working.


Thank you.

[1] http://www.spinics.net/lists/netdev/msg141994.html

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-11-02 21:30 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-29 15:00 [BUG] Any-IP IPv6 support broken Gilberto Bertin
2015-10-29 15:34 ` Eric Dumazet
2015-10-30  0:44   ` Maciej Żenczykowski
2015-11-02 18:45     ` Gilberto Bertin
2015-11-02 21:30       ` Maciej Żenczykowski
2015-10-29 18:39 ` Hannes Frederic Sowa
2015-10-29 18:58   ` Gilberto Bertin
2015-10-29 19:09     ` Hannes Frederic Sowa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).