public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* What is the best way to accomplish "decapsulate any" functionality?
@ 2014-07-28 18:26 Alex Gartrell
  2014-07-29 20:45 ` Alexey Andriyanov
  0 siblings, 1 reply; 2+ messages in thread
From: Alex Gartrell @ 2014-07-28 18:26 UTC (permalink / raw)
  To: lvs-devel, netdev; +Cc: kernel-team, ps

Short Version:

What's the best way to accomplish "decapsulate any" functionality for
"IPv{4,6} in IPv{4,6}?"  Should I write an xfrm module or is there a
simple, existing method?

Long Version:

We've been using IPVS with ipip tunneling for ages, and it's been great,
but our decapsulation story has always been a little weak.  At some point,
someone figured out that if you create tunnel interfaces for both v4 and v6
and add loopback or link-local unicast addresses to each, the kernel will
magically start decapsulating these packets for you, and you can put your
virtual IPs on any dummy interface you want (or loopback).

So our load balancer's pre-run script basically boils down to:
ip tunnel add mode ipip
ip addr add dev tunl0 127.0.0.101/32
ip link set dev tunl0 up
ip addr add dev lo ${VIP}/32
# And then the equivalent for v6

And all was well and good in the kingdom.  But now we're getting ready to
turn up our IPv6-only internal cluster, and so we're forced to push forward
on things like v4-in-v6 tunneling (currently unsupported by IPVS, but we've
got a patch set that we'll put up when we have a working end-to-end-test).
Predictably, our magic script fell apart and we had to look into how the
sausage was made.

So, before I go off and write some terrible xfrm decapsulate-any module, is
there a "right way" to do this with stock linux?

Thanks,
Alex

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

end of thread, other threads:[~2014-07-29 20:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-28 18:26 What is the best way to accomplish "decapsulate any" functionality? Alex Gartrell
2014-07-29 20:45 ` Alexey Andriyanov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox