Skip to contentSkip to conversation

IPv6 6to4 on site-local networks.

DISCUSSION David Woodhouse 2 participants 20 messages Sep 10, 2003 – Sep 15, 2003

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

I'm looking at the possible ways of setting up a IPv6 site-internal network, given the prior existence of IPv4 tunnels on RFC1918 addresses between various physical sites.

The idea which looks sanest to me is to use the 6to4 automatic tunnelling trick. Instead of 2002::/16, however, we use fec0::/16. Since our internal IPv4 addresses are in the 172.16/12 range, we end up with fec0:ac10::/28 for the internal site-scope addresses.

This requires a hack to sit.c -- just a single s/0x2002/0xfec0/ in fact. I'd like to make that configurable somehow. Any ideas on how best to do it?

With this in place, individual routers can still run radvd and route to native IPv6 on their own fec0:ac1x:xxyy::/48 subnets -- just as we do in the real world with 6to4 on 2002:xxxx:yyyy::/48.

--

A separate and only vaguely-related question: how separate are site-scope and global-scope addresses and routes?

Following the above configuration, we have site-scope addresses in the fec0:ac10::/28 range, and a route to that network via the tunnel. This goes over the RFC1918 IPv4 internal addresses, across CIPE tunnels etc. between offices.

For IPv6 connectivity to the _outside_ world, can it really be done as a completely orthogonal issue? A machine in each location can have a 'real' IPv6 link, and run radvd accordingly, advertising the _global_ addresses obtained by either a tunnel or 'real' 6to4.

In the presence of two hosts broadcasting router advertisements, one with site-scope addresses and the other with global-scope addresses, will Linux do what I'd want?

Signature · 1 line
dwmw2
#1 lore raw
Quoted 9 lines · David Woodhouse

I'm looking at the possible ways of setting up a IPv6 site-internal network, given the prior existence of IPv4 tunnels on RFC1918 addresses between various physical sites.

The idea which looks sanest to me is to use the 6to4 automatic tunnelling trick. Instead of 2002::/16, however, we use fec0::/16. Since our internal IPv4 addresses are in the 172.16/12 range, we end up with fec0:ac10::/28 for the internal site-scope addresses.

Quoted 7 lines

This requires a hack to sit.c -- just a single s/0x2002/0xfec0/ in fact. I'd like to make that configurable somehow. Any ideas on how best to do it?

With this in place, individual routers can still run radvd and route to native IPv6 on their own fec0:ac1x:xxyy::/48 subnets -- just as we do in the real world with 6to4 on 2002:xxxx:yyyy::/48.

Please don't do this, this is an ambomination. Moreover, some time ago the IETF decided to Deprecate Site-local addresses completely, because of their problems.

I'm not 100% clear of your scenario, but I'd suggest two possibilities for you:

- build the IPv6 infrastructure without automatic tunneling, or
- if you want to do what you describe anyway, look at ISATAP (the code
exists in USAGI), or the spec at www.isatap.org. It should be able to accomplish what you seem to be aiming at.

ISATAP uses a prefix you decide, e.g. global ones derived from 6to4, site-locals if you really insist, or whatever -- it just embeds the IPv4 tunnel endpoint addresses in the last 32 bits.

Note that ISATAP has not been sanctioned at the moment. There are some significant issues open in it, mostly relating to its security.

Signature · 3 lines
Pekka Savola                 "You each name yourselves king, yet the
Netcore Oy                    kingdom bleeds."
Systems. Networks. Security. -- George R.R. Martin: A Clash of Kings
#2 lore raw
Quoted 3 lines · Pekka Savola

Please don't do this, this is an ambomination. Moreover, some time ago the IETF decided to Deprecate Site-local addresses completely, because of their problems.

Hmmm; bugger.

I thought the site-local address concept was great. It was going to allow us to keep external connectivity issues completely separate from internal ones.

So is there still a range of IPv6 addresses analogous to the RFC1918 IPv4 ranges, which are purely internal-only? Or is everyone expected to just use 'real' IPv6 addresses, and firewall appropriately?

I'll lay our our situation in a bit more detail... I don't think it's too uncommon.

We have a corporate IPv4 network. Multiple locations each have 'real' IPv4 connections to local ISPs; we have a network of CIPE tunnels between physical locations, over which we run the 172.16/12 IPv4 network. Internal boxen communicating to the outside world go via local NAT, of course.

We want to deploy IPv6 internally. We have no overriding corporate reason for doing this; for getting the IT people to spend their time on it and overhaul all the CIPE boxes to be IPv6-capable, etc. It'll just be useful for testing purposes, and because -- let's face it -- we're geeks and we want IPv6 :)

Our criteria are these:
- To connect between two internal hosts by IPv6 should not be noticeably less reliable, or slower, than the existing IPv4.

- The setup should be as simple as possible, and to as large an extent as possible should not require infrastructure changes.

- Connectivity to the _outside_ should go as directly as possible; not all via a single tunnel endpoint in headquarters.

- Security must be obvious. The IT people don't have time to spend on it; that includes auditing. Using site-local addresses and then doing NAT to the outside world, or using public addresses arranged individually for each location and then connection-tracking to allow only outgoing connections as _if_ it were behind NAT, is obviously correct. Anything else is significantly less obvious.

Using 6to4 for internal site-scope addresses would have given us direct connection between individual machines -- no points of failure which aren't already a point of failure for IPv4; unlike a scenario where we have a single tunnel-concentrator somewhere. This gives us the speed and reliability required in our first criterion, and also a trivial configuration. No big lists of tunnel endpoints, etc.

Then global addresses could just have been arranged with an appropriate connection in each location and a connection-tracking firewall.

It was all nice and simple...

Now I'm going back to the drawing-board. If the distinction between site-scope and global-scope is gone, then I suppose one possibility is to muck around with destination-based source address selection to achieve the same effect. Something like giving each internal machine two global IPv6 addresses -- one in the 2002:ac10::/28 range, and one 'real' globally-routable address.

Then we configure them such that for communicating with other hosts in 2002:ac10::/28 they use that address, and for communicating with 'real' hosts, they use the 'real' address. How feasible is that?

We may end up with the internal hosts sticking packets for 'real' 2002::/16 6to4 addresses inside IPv4 packets and sending them somewhere, but since we control '$somewhere' and it's not hard-coded to 192.88.99.1 we can deal with that -- as long as they're correctly using their 'real' IPv6 addresses as the source.

My main objection to this, although I think it can work and be secure, is that it requires _thought_ to show it's secure. It really needs to be obvious.

A second possibility, perhaps, would be to just get 'real' IPv6 networks in all the locations, and route that publicly with connection-tracking firewalls on the public-facing machines. Then to effectively punch holes in those firewalls for 'internal' communication, by using explicitly-configured tunnels to bypass the firewalls.

That one seems nicer, but has the severe disadvantage that we can't just start doing it internally over the existing IPv4 network -- we have to actually make changes to the network infrastructure, which means getting real time (and downtime) allocated for it up front. Which is unlikely for what's effectively a Skunkworks project.

Better suggestions are welcomed.

Signature · 1 line
dwmw2
#3 lore raw
Quoted 10 lines · David Woodhouse
Quoted 3 lines · Pekka Savola

Please don't do this, this is an ambomination. Moreover, some time ago the IETF decided to Deprecate Site-local addresses completely, because of their problems.

Hmmm; bugger.

I thought the site-local address concept was great. It was going to allow us to keep external connectivity issues completely separate from internal ones.

Yep, but it has some fatal flaws (ambiguity, leading to a lots of difficult issues), and in the end, it's just not any more secure method than filtering.

Quoted 3 lines

So is there still a range of IPv6 addresses analogous to the RFC1918 IPv4 ranges, which are purely internal-only? Or is everyone expected to just use 'real' IPv6 addresses, and firewall appropriately?

There are no RFC1918 analogous addresses at the moment. Current status is that there is work in progress to figure out the requirements for local communications, and one potential outcome of that might be a globally unique or near-unique addressing, meant for local use only.

But in the meantime (and still), I think it's better to go with globals if at all possible. That's what IPv6 was for, anyway.. :-)

Quoted 8 lines

I'll lay our our situation in a bit more detail... I don't think it's too uncommon.

We have a corporate IPv4 network. Multiple locations each have 'real' IPv4 connections to local ISPs; we have a network of CIPE tunnels between physical locations, over which we run the 172.16/12 IPv4 network. Internal boxen communicating to the outside world go via local NAT, of course.

How many multiple locations are out there? Which methods you use locally, are Ethernet switches and VLAN's being used (if so, does a location have multiple VLAN's, e.g. for engineering, marketing etc.)?

Quoted 5 lines

We want to deploy IPv6 internally. We have no overriding corporate reason for doing this; for getting the IT people to spend their time on it and overhaul all the CIPE boxes to be IPv6-capable, etc. It'll just be useful for testing purposes, and because -- let's face it -- we're geeks and we want IPv6 :)

Right.

Quoted 27 lines

Our criteria are these:
- To connect between two internal hosts by IPv6 should not be noticeably less reliable, or slower, than the existing IPv4.

- The setup should be as simple as possible, and to as large an extent as possible should not require infrastructure changes.

- Connectivity to the _outside_ should go as directly as possible; not all via a single tunnel endpoint in headquarters.

- Security must be obvious. The IT people don't have time to spend on it; that includes auditing. Using site-local addresses and then doing NAT to the outside world, or using public addresses arranged individually for each location and then connection-tracking to allow only outgoing connections as _if_ it were behind NAT, is obviously correct. Anything else is significantly less obvious.

Using 6to4 for internal site-scope addresses would have given us direct connection between individual machines -- no points of failure which aren't already a point of failure for IPv4; unlike a scenario where we have a single tunnel-concentrator somewhere. This gives us the speed and reliability required in our first criterion, and also a trivial configuration. No big lists of tunnel endpoints, etc.

Then global addresses could just have been arranged with an appropriate connection in each location and a connection-tracking firewall.

Quoted 8 lines

It was all nice and simple...

Now I'm going back to the drawing-board. If the distinction between site-scope and global-scope is gone, then I suppose one possibility is to muck around with destination-based source address selection to achieve the same effect. Something like giving each internal machine two global IPv6 addresses -- one in the 2002:ac10::/28 range, and one 'real' globally-routable address.

Note that 6to4 specification explicitly disallows the use of 6to4 on private addresses. No such checks have been added to Linux kernel (should be..), but you're likely to face more or less trouble if you do so.

Quoted 3 lines

Then we configure them such that for communicating with other hosts in 2002:ac10::/28 they use that address, and for communicating with 'real' hosts, they use the 'real' address. How feasible is that?

IPv6 default address selection, implemented and merged in 2.4 kernels, should already do that. In principle, there is the policy table and and longest prefix match, which should be able to achieve something like this without a problem.

One problem may be the destination address selection of getaddrinfo(). Glibc might not implement default address selection (RFC3484) yet.

Quoted 10 lines

We may end up with the internal hosts sticking packets for 'real' 2002::/16 6to4 addresses inside IPv4 packets and sending them somewhere, but since we control '$somewhere' and it's not hard-coded to 192.88.99.1 we can deal with that -- as long as they're correctly using their 'real' IPv6 addresses as the source.

My main objection to this, although I think it can work and be secure, is that it requires _thought_ to show it's secure. It really needs to be obvious.

Quoted 5 lines

A second possibility, perhaps, would be to just get 'real' IPv6 networks in all the locations, and route that publicly with connection-tracking firewalls on the public-facing machines. Then to effectively punch holes in those firewalls for 'internal' communication, by using explicitly-configured tunnels to bypass the firewalls.

Right.

Quoted 5 lines

That one seems nicer, but has the severe disadvantage that we can't just start doing it internally over the existing IPv4 network -- we have to actually make changes to the network infrastructure, which means getting real time (and downtime) allocated for it up front. Which is unlikely for what's effectively a Skunkworks project.

Note that one could do a 6to4 router per site, per global address; obtaining such connectivity might be easier than "real", but one would still not run it over CIPE tunnels.

Quoted 1 line

Better suggestions are welcomed.

First of all, if the number of participating sites would be relatively low, one could set up one "tunnel router" in each location, which would have:
a) optionally global IPv6 connectivity, if desired, and
b) manually configured tunnels to the other tunnel routers, over CIPE
private address infrastructure

It would not need to be a full mesh, only to such a degree that the traffic would be rather optimal, and it would not create more failure modes (e.g. do that on the same boxes as CIPE tunneling).

After that, what you'd be left with is how to deal with IPv6 connectivity internally in each of these sites. Depending on what kind of routers you use this could be trivial (e.g. if linux, just turn on IPv6, radvd and such) or not.

You might do this with global IPv6 addresses, obtained from an ISP, a 6bone party, or derived from 6to4 addresses of one or more of your public IP's (for example, every site could have one global address).

The security properties are straightforward. In all of your border routers/firewalls, block ip-protocol-41 (used for IPv6-in-IPv4 tunneling). As you don't have native IPv6 connectivity to your ISPs, those are the only ways someone might gain IPv6 access to your enterprise Internal network.

But you want to refine that; it could be done by IPv6 firewalling at the routers which you specifically allow through from your border "ip-protocol-41 denied" -check. By ensuring you've proper controls in place in those networks, there is no leakage.

One another option is to deploy ISATAP, which I mentioned earlier (note:
requires patches to the kernel and iputils). This is useful because it's a tunneling method like 6to4, but aimed mainly for host-to-host internal connectivity, also working over private addresses. By deployingISATAP within your enterprise, you would not need "tunnel routers" described above, except for global IPv6 Internet connectivity (when desired), or native IPv6 deployment (or something) within the geographical sites.

FWIW, Microsoft's internal network is using ISATAP heavily to enable IPv6 access.

To summarize, I think there are several tradeoffs to consider, including:
- the difficulty of deploying IPv6 within a geographical site, given that
such a site would somehow get IPv6 connectivity,
- the number of geographical sites which need to be connected in a meshed
fashion (number is probably the same or a bit less than the number of your CIPE tunnels,
- the time how quickly you want to get started, and how easy it should be
for anyone at all to start using IPv6 (ISATAP could be the quickest fix)
- the duration how long-lived solution you're desiring (ISATAP is
short-term fix only, tunnel routers and native IPv6 inside sites is closer to what mid-long term goals, and
- how much global IPv6 connectivity you desire (IPv6 firewalling
requirements..), and how optimized it should be.

As for how we're doing it in a 150+ person, single site enterprise consisting of multiple networks -- we employ "tunnel router" method and to some degreee Ethernet VLAN's to inject IPv6 to the physical segments. We use only global IPv6 addresses, and the reachability is obtained from the national research network we run (native IPv6). We use some IPv6 firewalling; not much on typical users' networks (those computers don't have many services listening for IPv6!), and stricter filters on administrators' network.

HTH

Signature · 3 lines
Pekka Savola                 "You each name yourselves king, yet the
Netcore Oy                    kingdom bleeds."
Systems. Networks. Security. -- George R.R. Martin: A Clash of Kings
#4 lore raw
Quoted 3 lines · Pekka Savola

Yep, but it has some fatal flaws (ambiguity, leading to a lots of difficult issues), and in the end, it's just not any more secure method than filtering.

S'true -- it wasn't any more secure. But it was more obviously secure :)

It's just multihoming with non-publicly-routable addresses used for the unfirewalled internal communication, and real public addresses used for external communication. But unlike 'just' multihoming, the fact that the dichotomy between site-scope and global-scope was fundamental to IPv6 make it nice and easy to separate 'site' and 'global' and consider them separately.

Of course, you can do much the same thing manually, but showing that it's secure is, to use Piagetian terms, much more of a formal operation than a concrete one. :)

Quoted 2 lines

But in the meantime (and still), I think it's better to go with globals if at all possible. That's what IPv6 was for, anyway.. :-)

Ok... that may well be the way ahead.

Quoted 3 lines

How many multiple locations are out there? Which methods you use locally, are Ethernet switches and VLAN's being used (if so, does a location have multiple VLAN's, e.g. for engineering, marketing etc.)?

I'd guess at 20-30 offices worldwide, many more individual remote employees on point-to-point CIPE links.

Using global IPv6 addresses obtained locally at each site, we'd end up having to keep a big list of IPv6 subnets which are 'ours', and the corresponding internal IPv4 address to which they should be routed -- over the CIPE to ensure encryption and also to bypass the firewalls which will prevent ingress to each site from other external machines.

I was trying to avoid that, since we have sufficient sites that it would be a pain.

Quoted 3 lines

Note that 6to4 specification explicitly disallows the use of 6to4 on private addresses. No such checks have been added to Linux kernel (should be..), but you're likely to face more or less trouble if you do so.

You mean 2002:ac10::/28 et al.? As long as they remain private (to the same networks where we actually have 172.16/12 IPv4, there shouldn't be any _practical_ problem.

After all, it's just a configuration-shorthand for the 2^20 explicit IPv6-in-IPv4 tunnels which would do the same thing, surely?

We just have to make sure we don't leak those addresses to the outside world -- but that's why the boxes with 'real' IPv6 are multihomed and that's why we care about appropriate source address selection for them. And hence why we care that site-scope went away, which would have made it a no-brainer.

Quoted 11 lines
Quoted 3 lines

Then we configure them such that for communicating with other hosts in 2002:ac10::/28 they use that address, and for communicating with 'real' hosts, they use the 'real' address. How feasible is that?

IPv6 default address selection, implemented and merged in 2.4 kernels, should already do that. In principle, there is the policy table and and longest prefix match, which should be able to achieve something like this without a problem.

One problem may be the destination address selection of getaddrinfo(). Glibc might not implement default address selection (RFC3484) yet.

Hmmm. That sounds reasonable. But I'd be accepting the complexity of multihoming, for the benefit of avoiding the explicit per-site tunnel configuration. To be honest, I think I'd rather take the exponential per-site configuration, and use unique global IPv6 addresses. At least that's only monkey-work, and the failure modes are simpler and more obvious.

I wonder if Mobile-IPv6 can give us something more conceptually simple.

The reason we don't just assign a 'real' IPv6 subnet to headquarters, and run it all over a network of tunnels internally, is because latency to a site just down the road would suck, since the IPv6 packets would cross the Atlantic twice -- across the tunnel in the CIPE link to HQ and then back out again.

If we were to start that way, but then add real IPv6 connectivity to individual sites, then use the direct IPv6 addresses as 'care-of' addresses for Mobile-IP, I wonder if we could keep the nice simple "We own this network and it's not firewalled for internal use and it's tunnelled over CIPE" concept, while keeping fairly sane routing for connections to the outside world?

I think I need to actually read the Mobile-IP documentation in the morning, and see whether the above makes any sense at all.

Quoted 3 lines

Note that one could do a 6to4 router per site, per global address; obtaining such connectivity might be easier than "real", but one would still not run it over CIPE tunnels.

True. But even if we could solve the _actual_ security problem that entails, by enforcing use of IPSEC on such links, it wouldn't fly... CIPE good and trusted; Internet bad.

Quoted 1 line
Quoted 1 line

Better suggestions are welcomed.

Hmmm. Much useful information there; thanks. I don't think I can do it justice tonight so I'll take a closer look in the morning. Certainly there are plans beginning to come together, using global IPv6 addresses and an explicit mesh of tunnels. And falling back to 2002:ac10::/28 or ISATAP where global IPv6 addresses aren't (yet) obtainable at individual sites.

Signature · 1 line
dwmw2
#5 lore raw
Quoted 7 lines · David Woodhouse
Quoted 3 lines · Pekka Savola

Yep, but it has some fatal flaws (ambiguity, leading to a lots of difficult issues), and in the end, it's just not any more secure method than filtering.

S'true -- it wasn't any more secure. But it was more obviously secure :)

I'm not sure of that; I'd agree if you said "it _seems_ more obviously secure", but I don't think that's real..

Quoted 6 lines

It's just multihoming with non-publicly-routable addresses used for the unfirewalled internal communication, and real public addresses used for external communication. But unlike 'just' multihoming, the fact that the dichotomy between site-scope and global-scope was fundamental to IPv6 make it nice and easy to separate 'site' and 'global' and consider them separately.

Yep, but once you break into just one box w/ global addresses, all of the site-internal infrastructure is open to you. This seems like a high price to pay, with many points of failure.

But from the operational perspective, I certainly agree that having one range of local addesses (well, they can even be global addresses) would simplify the management for internal communications, especially if the real IPv6 addresses tend to change (leading to internal renumbering events etc.). That's something that should be avoided.

Quoted 3 lines

Of course, you can do much the same thing manually, but showing that it's secure is, to use Piagetian terms, much more of a formal operation than a concrete one. :)

Yes; but I fail to see how much more secure using "local addressing" is than by just ensuring in your border routers (or other firewalls) that the addresses meant for local communications don't leak out, AND that nobody uses your internal source addresses in the packets coming from the Internet. (Rather basic site perimeter protections.)

Quoted 6 lines
Quoted 3 lines

How many multiple locations are out there? Which methods you use locally, are Ethernet switches and VLAN's being used (if so, does a location have multiple VLAN's, e.g. for engineering, marketing etc.)?

I'd guess at 20-30 offices worldwide, many more individual remote employees on point-to-point CIPE links.

Ok.

Quoted 5 lines

Using global IPv6 addresses obtained locally at each site, we'd end up having to keep a big list of IPv6 subnets which are 'ours', and the corresponding internal IPv4 address to which they should be routed -- over the CIPE to ensure encryption and also to bypass the firewalls which will prevent ingress to each site from other external machines.

Does each site also have IPv4 Internet connectivity in addition to the private addresses?

If not ("some smaller ones go through a larger site"), this may not be a problem.

If yes, there may be a need to run an IPv6 routing protocol between the sites; this would easily keep track of local prefixes, but this would not work for access lists and firewall filters.

One possible solution is to pick one (or a couple of) major sites which provide "internal connectivity addresses". For example, assume you have the big HQ in the US. Deploy on each node:

- IPv6 connectivity addresses, obtained using 6to4 or the like, and
- IPv6 addesses from the HQ block.

The latter are only used for internal connectivity through CIPE tunnels; the former would be used to reach IPv6 Internet (without a need to go through the HQ and from there to the Internet).

The potential issue here is the source address selection, so that the hosts don't pick the HQ addresses when they try to reach to IPv6 sites in the Big Internet (so that the packets don't route back through the HQ).

Quoted 10 lines
Quoted 3 lines

Note that 6to4 specification explicitly disallows the use of 6to4 on private addresses. No such checks have been added to Linux kernel (should be..), but you're likely to face more or less trouble if you do so.

You mean 2002:ac10::/28 et al.? As long as they remain private (to the same networks where we actually have 172.16/12 IPv4, there shouldn't be any _practical_ problem.

After all, it's just a configuration-shorthand for the 2^20 explicit IPv6-in-IPv4 tunnels which would do the same thing, surely?

It's a bit more than that, even though Linux kernel only implements the very basics of the specification. See RFC3056 section 9 last paragraph.

Quoted 12 lines
Quoted 11 lines
Quoted 3 lines

Then we configure them such that for communicating with other hosts in 2002:ac10::/28 they use that address, and for communicating with 'real' hosts, they use the 'real' address. How feasible is that?

IPv6 default address selection, implemented and merged in 2.4 kernels, should already do that. In principle, there is the policy table and and longest prefix match, which should be able to achieve something like this without a problem.

One problem may be the destination address selection of getaddrinfo(). Glibc might not implement default address selection (RFC3484) yet.

Quoted 6 lines

Hmmm. That sounds reasonable. But I'd be accepting the complexity of multihoming, for the benefit of avoiding the explicit per-site tunnel configuration. To be honest, I think I'd rather take the exponential per-site configuration, and use unique global IPv6 addresses. At least that's only monkey-work, and the failure modes are simpler and more obvious.

Ok.

Quoted 7 lines

I wonder if Mobile-IPv6 can give us something more conceptually simple.

The reason we don't just assign a 'real' IPv6 subnet to headquarters, and run it all over a network of tunnels internally, is because latency to a site just down the road would suck, since the IPv6 packets would cross the Atlantic twice -- across the tunnel in the CIPE link to HQ and then back out again.

Right, you need to optimize the latency, no need to circulate everything through the HQ.

Quoted 9 lines

If we were to start that way, but then add real IPv6 connectivity to individual sites, then use the direct IPv6 addresses as 'care-of' addresses for Mobile-IP, I wonder if we could keep the nice simple "We own this network and it's not firewalled for internal use and it's tunnelled over CIPE" concept, while keeping fairly sane routing for connections to the outside world?

I think I need to actually read the Mobile-IP documentation in the morning, and see whether the above makes any sense at all.

Mobile IPv6 could be leveraged for you, sure. However, you seem to require just one basic feature of MIPv6: tunneling back to Home (Agent). The same can be established through CIPE tunnels. This is similar to my thought, above, of deploying both IPv6 Internet connectivity ("care-of address") and local HQ addressing ("home address") to all the nodes.

For security, you would then have to ensure that the "local HQ addresses" don't leak and are properly firewalled.

Quoted 7 lines
Quoted 3 lines

Note that one could do a 6to4 router per site, per global address; obtaining such connectivity might be easier than "real", but one would still not run it over CIPE tunnels.

True. But even if we could solve the _actual_ security problem that entails, by enforcing use of IPSEC on such links, it wouldn't fly... CIPE good and trusted; Internet bad.

Agree.

Quoted 8 lines
Quoted 1 line
Quoted 1 line

Better suggestions are welcomed.

Hmmm. Much useful information there; thanks. I don't think I can do it justice tonight so I'll take a closer look in the morning. Certainly there are plans beginning to come together, using global IPv6 addresses and an explicit mesh of tunnels. And falling back to 2002:ac10::/28 or ISATAP where global IPv6 addresses aren't (yet) obtainable at individual sites.

It should be easy to get global IPv6 addresses at most individual sites, because it only requires a public IPv4 address to activate 6to4, which is enough. Other connectivity is also of course possible, and even desirable in the long term, especially for bigger sites.

Signature · 3 lines
Pekka Savola                 "You each name yourselves king, yet the
Netcore Oy                    kingdom bleeds."
Systems. Networks. Security. -- George R.R. Martin: A Clash of Kings
#6 lore raw
Quoted 4 lines · Pekka Savola
Quoted 1 line

S'true -- it wasn't any more secure. But it was more obviously secure :)

I'm not sure of that; I'd agree if you said "it _seems_ more obviously secure", but I don't think that's real..

That's what I meant to say. It's the difference between "Can we do this?" "Yes go ahead." and "Can we do this?" "Er, not sure. Hence no."

Quoted 3 lines

Yep, but once you break into just one box w/ global addresses, all of the site-internal infrastructure is open to you. This seems like a high price to pay, with many points of failure.

Well yes, but that's _already_ the cases for boxen on the internal RFC1918 IPv4 network. If you own one, you have access to them all.

That's why we'd want outgoing-connections-only for all the internal IPv6 machines, just as they have in the IPv4 world by virtue of being behind NAT.

We don't _need_ public IPv6 addresses for them; if we could NAT for them at each site to that site's publicly-routable IPv6 address range, that would be fine.

Quoted 10 lines

One possible solution is to pick one (or a couple of) major sites which provide "internal connectivity addresses". For example, assume you have the big HQ in the US. Deploy on each node:

- IPv6 connectivity addresses, obtained using 6to4 or the like, and
- IPv6 addesses from the HQ block.

The latter are only used for internal connectivity through CIPE tunnels; the former would be used to reach IPv6 Internet (without a need to go through the HQ and from there to the Internet).

That works, and is one of the more promising options at the moment.

But we don't want to have to manually configure each host to be multihomed -- assuming that HQ gets assigned the 2001:200:0:8002::/64 network, and our local site has 2001:200:0:8002:1234::/80 from that, along with
2002:c35c:f9ff::/48 from 6to4 with its IPv4 Internet address... is there a way to configure radvd or dhcpv6 so it tells each host:

"You are 2001:200:0:8002:1234:<EUI-64> and should route packets
to 2001:200:0:8002::/64 using that source address.
"You are also 2002:c55c:f9ff:1234:<EUI-64> and should route
packets to 2000::/3 using _that_ source address."

In fact, we don't have to get it 100% correct -- as long as we ensure that the failure mode where we route to internal hosts using our non-HQ-derived IPv6 address isn't going to happen, it's OK to allow the failure mode where we route to external hosts using our HQ-derived IPv6 address; that's only going to make it a bit slower, not actually make it break.

Quoted 3 lines

The potential issue here is the source address selection, so that the hosts don't pick the HQ addresses when they try to reach to IPv6 sites in the Big Internet (so that the packets don't route back through the HQ).

Unless they go out bearing the HQ-derived address, but with a 'care-of' option pointing at the local IPv6-connectivity address?

Quoted 6 lines
Quoted 4 lines
Quoted 3 lines

Note that 6to4 specification explicitly disallows the use of 6to4 on private addresses. No such checks have been added to Linux kernel (should be..), but you're likely to face more or less trouble if you do so.

It's a bit more than that, even though Linux kernel only implements the very basics of the specification. See RFC3056 section 9 last paragraph.

Hmmm. I wonder how it's supposed to know which are subnet-broadcast addresses? Do you reckon there are boxen out there which will refuse to route for 2002:c35c:f9ff::1 just as some refuse to route for 195.92.249.255?

Quoted 8 lines

Mobile IPv6 could be leveraged for you, sure. However, you seem to require just one basic feature of MIPv6: tunneling back to Home (Agent). The same can be established through CIPE tunnels. This is similar to my thought, above, of deploying both IPv6 Internet connectivity ("care-of address") and local HQ addressing ("home address") to all the nodes.

For security, you would then have to ensure that the "local HQ addresses" don't leak and are properly firewalled.

I was trying to avoid the tunnelling altogether, at least for the common case. I thought that Mobile-IPv6 avoided the 'triangular routing' problem that IPv4 has, by introducing a way for the correspondent node to know about the mobile node's care-of address.

If a host in a remote (i.e. non-HQ) site has an HQ-derived address and a locally-derived IPv6 address, it treats the former as a 'home address' and the latter as a 'temporary address'. It sends packets ostensibly from the 'home address' but using the locally-derived address as its 'care-of' address, so not only do _outgoing_ packets go directly over the local IPv6 connection, but return packets _also_ come in that way.

Signature · 1 line
dwmw2
#7 lore raw
Quoted 7 lines · David Woodhouse
Quoted 3 lines · Pekka Savola

Yep, but once you break into just one box w/ global addresses, all of the site-internal infrastructure is open to you. This seems like a high price to pay, with many points of failure.

Well yes, but that's _already_ the cases for boxen on the internal RFC1918 IPv4 network. If you own one, you have access to them all.

Ok.. now you have the chance to improve security by doing IPv6 (.. and having to put in internal filters as well, in the process) :-)

Quoted 3 lines

That's why we'd want outgoing-connections-only for all the internal IPv6 machines, just as they have in the IPv4 world by virtue of being behind NAT.

Right. (This is a bit tricker with Linux IPv6 firewalling as it doesn't support connection tracking, but still roughly doable.)

Quoted 4 lines
Quoted 4 lines

One possible solution is to pick one (or a couple of) major sites which provide "internal connectivity addresses". For example, assume you have the big HQ in the US. Deploy on each node:

Quoted 8 lines
Quoted 6 lines

- IPv6 connectivity addresses, obtained using 6to4 or the like, and
- IPv6 addesses from the HQ block.

The latter are only used for internal connectivity through CIPE tunnels; the former would be used to reach IPv6 Internet (without a need to go through the HQ and from there to the Internet).

That works, and is one of the more promising options at the moment.

Ok.

Quoted 3 lines

But we don't want to have to manually configure each host to be multihomed -- assuming that HQ gets assigned the 2001:200:0:8002::/64 network, and our local site has 2001:200:0:8002:1234::/80 from that,

Please don't: get a /48, so you can give each subnet a /64. Giving less than /80 breaks so many things (like stateless address autoconfiguration).

Quoted 8 lines

along with
2002:c35c:f9ff::/48 from 6to4 with its IPv4 Internet address... is there a way to configure radvd or dhcpv6 so it tells each host:

"You are 2001:200:0:8002:1234:<EUI-64> and should route packets
to 2001:200:0:8002::/64 using that source address.
"You are also 2002:c55c:f9ff:1234:<EUI-64> and should route
packets to 2000::/3 using _that_ source address."

Not possible, that I'm aware of.

Quoted 3 lines

In fact, we don't have to get it 100% correct -- as long as we ensure that the failure mode where we route to internal hosts using our non-HQ-derived IPv6 address isn't going to happen,

This is a bit tricky. There are two ways to hack around this:

1) at your HQ, create an inbound firewall filter, so that you'll disallow
any incoming packets to the "internal blocks" from the Internet. If a host happens to start fall back to using global connectivity, the connectivity fails utterly.

and:

2) at your edge sites, make a firewall filter which prevents reaching
"internal blocks" through the Internet (automated installation could be achieved using any number of mechanisms, whichever you're using).

.. in addition, up-to-date source address selection in the kernel should ensure that does not happen when you'd use only "internal addresses" in your DNS, or give internal addresses as command-line.

Destination address selection is a bit trickier (hence the methods above) because if you'd get "internal address" and "external address" from the DNS, and the glibc getaddrinfo() implementation would pick one at random, this would lead to using the external connectivity half of the times, unless prevented with e.g. those filters or by administration (about the DNS names)

Quoted 4 lines

it's OK to allow the
failure mode where we route to external hosts using our HQ-derived IPv6 address; that's only going to make it a bit slower, not actually make it break.

Right.

Quoted 6 lines
Quoted 3 lines

The potential issue here is the source address selection, so that the hosts don't pick the HQ addresses when they try to reach to IPv6 sites in the Big Internet (so that the packets don't route back through the HQ).

Unless they go out bearing the HQ-derived address, but with a 'care-of' option pointing at the local IPv6-connectivity address?

Mobile IPv6 is quite a bit more complicated than that nowadays.. :-/

Quoted 9 lines
Quoted 6 lines
Quoted 4 lines
Quoted 3 lines

Note that 6to4 specification explicitly disallows the use of 6to4 on private addresses. No such checks have been added to Linux kernel (should be..), but you're likely to face more or less trouble if you do so.

It's a bit more than that, even though Linux kernel only implements the very basics of the specification. See RFC3056 section 9 last paragraph.

Hmmm. I wonder how it's supposed to know which are subnet-broadcast addresses?

Kernel looks up all the v4 broadcast addresses from all the interfaces..? Should be pretty doable.

Quoted 3 lines

Do you reckon there are boxen out there which will refuse to route for 2002:c35c:f9ff::1 just as some refuse to route for 195.92.249.255?

I'm not sure if such implementations exist, but if they don't, there are specific threats (though minor) if such check are implemented.

Quoted 6 lines
Quoted 6 lines

Mobile IPv6 could be leveraged for you, sure. However, you seem to require just one basic feature of MIPv6: tunneling back to Home (Agent). The same can be established through CIPE tunnels. This is similar to my thought, above, of deploying both IPv6 Internet connectivity ("care-of address") and local HQ addressing ("home address") to all the nodes.

Quoted 7 lines
Quoted 2 lines

For security, you would then have to ensure that the "local HQ addresses" don't leak and are properly firewalled.

I was trying to avoid the tunnelling altogether, at least for the common case. I thought that Mobile-IPv6 avoided the 'triangular routing' problem that IPv4 has, by introducing a way for the correspondent node to know about the mobile node's care-of address.

Mobile IPv6 won't help with that, in practice. That's because the binding between care-of and home addresses must be secured. The only way that can be done, in general, is to use a return routability procedure, that is:
the node a host communicates with ("correspondent node") sends a packet to the home address and the care-of address of the host with a cookie (and other stuff), and makes sure the host reflects them back at it, thus verifying that it is in fact reachable at both addresses.

So, this would create many new roundtrips, which is not really what you'd want..

Hope this helps..

Signature · 3 lines
Pekka Savola                 "You each name yourselves king, yet the
Netcore Oy                    kingdom bleeds."
Systems. Networks. Security. -- George R.R. Martin: A Clash of Kings
#8 lore raw
Quoted 2 lines · Pekka Savola

Ok.. now you have the chance to improve security by doing IPv6 (.. and having to put in internal filters as well, in the process) :-)

Yes. We'll do this right after we stop using non-kerberised NFS. :)

Quoted 6 lines
Quoted 3 lines

That's why we'd want outgoing-connections-only for all the internal IPv6 machines, just as they have in the IPv4 world by virtue of being behind NAT.

Right. (This is a bit tricker with Linux IPv6 firewalling as it doesn't support connection tracking, but still roughly doable.)

This is a fundamental requirement before we will be permitted allow connectivity to the outside world, I think.

Quoted 2 lines

Please don't: get a /48, so you can give each subnet a /64. Giving less than /80 breaks so many things (like stateless address autoconfiguration).

Er, yeah -- I can't count. Assume HQ has a /48 and our site's subnet is a /64.

Quoted 6 lines
Quoted 4 lines

"You are 2001:200:0:8002:1234:<EUI-64> and should route packets
to 2001:200:0:8002::/64 using that source address.
"You are also 2002:c55c:f9ff:1234:<EUI-64> and should route
packets to 2000::/3 using _that_ source address."

Not possible, that I'm aware of.

... and not just because there were 154 bits in one of those addresses :)

Quoted 10 lines
Quoted 3 lines

In fact, we don't have to get it 100% correct -- as long as we ensure that the failure mode where we route to internal hosts using our non-HQ-derived IPv6 address isn't going to happen,

This is a bit tricky. There are two ways to hack around this:

1) at your HQ, create an inbound firewall filter, so that you'll disallow
any incoming packets to the "internal blocks" from the Internet. If a host happens to start fall back to using global connectivity, the connectivity fails utterly.

Nono, talking to the outside world using HQ-derived addresses is _OK_. It's just a bit slower than using the locally-derived addresses, since we go through the tunnels.

What's going to break is talking to _internal_ machines using our locally-derived address. Our packets will get to them fine, over the internal tunnels, but their route back to us will then be over the Internet rather than through the internal tunnels, and hence it'll get firewalled.

It's just a source-address-selection issue. If our HQ-assigned network is 2001:200:0::/48 and we are both 2001:200:0:8002::<EUI-64> and some other locally-obtained address, then we MUST use our 2001:200:0::
(internal) address as source for all destinations in 2001:200:0::/48. It would be _nice_ if we use the other address for all other destinations, but it's not imperative.

AFAICT Rule 8 of RFC2484 is going to give us that anyway, and isn't going to be superseded by Rules 1-7 either. It should be fine.

Quoted 3 lines

2) at your edge sites, make a firewall filter which prevents reaching
"internal blocks" through the Internet (automated installation could be achieved using any number of mechanisms, whichever you're using).

We'll be routing 'internal' addresses through our tunnels rather than out the site's IPv6 link to the Internet anyway.

Quoted 10 lines

.. in addition, up-to-date source address selection in the kernel should ensure that does not happen when you'd use only "internal addresses" in your DNS, or give internal addresses as command-line.

Destination address selection is a bit trickier (hence the methods above) because if you'd get "internal address" and "external address" from the DNS, and the glibc getaddrinfo() implementation would pick one at random, this would lead to using the external connectivity half of the times, unless prevented with e.g. those filters or by administration (about the DNS names)

We can avoid this question entirely. The 'company.internal' domain would have only the HQ-derived addresses in it. The IPv6 addresses obtained for external connectivity at each site are irrelevant for internal communication.

Likewise, since ingress from the public Internet isn't going to be permitted, there's no real need for there to be AAAA records for the site-derived addresses in the 'company.com' domain.

It's only source-address selection which we need to care about, and that should be fine.

Quoted 2 lines

Kernel looks up all the v4 broadcast addresses from all the interfaces..? Should be pretty doable.

Oh, it knows its _own_ and shouldn't actually send a broadcast IPv4 packet after decapsulating a 6to4 packet -- but it's also supposed to magically know not to encapsulate into IPv4 a packet with an IPv4 address encoded which _happens_ to be a subnet broadcast elsewhere. It can't know that.

Quoted 6 lines
Quoted 3 lines

Do you reckon there are boxen out there which will refuse to route for 2002:c35c:f9ff::1 just as some refuse to route for 195.92.249.255?

I'm not sure if such implementations exist, but if they don't, there are specific threats (though minor) if such check are implemented.

That was a valid IPv4 address; it just happens to have a 255 in its last octet. There _are_ some people who can't route to it though, because some router in between thinks it's a subnet broadcast.

Quoted 2 lines

Mobile IPv6 won't help with that, in practice. That's because the binding between care-of and home addresses must be secured.

<...>

Quoted 2 lines

So, this would create many new roundtrips, which is not really what you'd want..

Well, the _initial_ connection would all be tunnelled, and the binding would be set up in parallel, so that you end up routing optimally; just going via the tunnel to start with.

Although I don't think I want to contemplate connection-tracking in that scenario :)

Signature · 1 line
dwmw2
#9 lore raw
Quoted 10 lines · David Woodhouse
Quoted 6 lines · Pekka Savola
Quoted 3 lines

That's why we'd want outgoing-connections-only for all the internal IPv6 machines, just as they have in the IPv4 world by virtue of being behind NAT.

Right. (This is a bit tricker with Linux IPv6 firewalling as it doesn't support connection tracking, but still roughly doable.)

This is a fundamental requirement before we will be permitted allow connectivity to the outside world, I think.

Yep.

Quoted 15 lines
Quoted 10 lines
Quoted 3 lines

In fact, we don't have to get it 100% correct -- as long as we ensure that the failure mode where we route to internal hosts using our non-HQ-derived IPv6 address isn't going to happen,

This is a bit tricky. There are two ways to hack around this:

1) at your HQ, create an inbound firewall filter, so that you'll disallow
any incoming packets to the "internal blocks" from the Internet. If a host happens to start fall back to using global connectivity, the connectivity fails utterly.

Nono, talking to the outside world using HQ-derived addresses is _OK_. It's just a bit slower than using the locally-derived addresses, since we go through the tunnels.

Quoted 5 lines

What's going to break is talking to _internal_ machines using our locally-derived address. Our packets will get to them fine, over the internal tunnels, but their route back to us will then be over the Internet rather than through the internal tunnels, and hence it'll get firewalled.

.. which is exactly why I proposed the above. Breaking connectivity indicates that something is wrong.. better than communicating insecurely while believing the communication is secure :-)

Quoted 9 lines

It's just a source-address-selection issue. If our HQ-assigned network is 2001:200:0::/48 and we are both 2001:200:0:8002::<EUI-64> and some other locally-obtained address, then we MUST use our 2001:200:0::
(internal) address as source for all destinations in 2001:200:0::/48. It would be _nice_ if we use the other address for all other destinations, but it's not imperative.

AFAICT Rule 8 of RFC2484 is going to give us that anyway, and isn't going to be superseded by Rules 1-7 either. It should be fine.

Note that there is still the problem with destination address selection (or not, if you follow good DNS naming conventions), and those (old) versions that don't implement the source address selection.

Quoted 6 lines
Quoted 3 lines

2) at your edge sites, make a firewall filter which prevents reaching
"internal blocks" through the Internet (automated installation could be achieved using any number of mechanisms, whichever you're using).

We'll be routing 'internal' addresses through our tunnels rather than out the site's IPv6 link to the Internet anyway.

Right, this is just a safeguard to prevent your internal stuff going out over the internet by mistake.

Quoted 11 lines
Quoted 10 lines

.. in addition, up-to-date source address selection in the kernel should ensure that does not happen when you'd use only "internal addresses" in your DNS, or give internal addresses as command-line.

Destination address selection is a bit trickier (hence the methods above) because if you'd get "internal address" and "external address" from the DNS, and the glibc getaddrinfo() implementation would pick one at random, this would lead to using the external connectivity half of the times, unless prevented with e.g. those filters or by administration (about the DNS names)

Quoted 4 lines

We can avoid this question entirely. The 'company.internal' domain would have only the HQ-derived addresses in it. The IPv6 addresses obtained for external connectivity at each site are irrelevant for internal communication.

Agreed.

Quoted 6 lines

Likewise, since ingress from the public Internet isn't going to be permitted, there's no real need for there to be AAAA records for the site-derived addresses in the 'company.com' domain.

It's only source-address selection which we need to care about, and that should be fine.

In your particular case, should be, yes (but I'd still keep the safeguards in place :-).

Quoted 8 lines
Quoted 2 lines

Kernel looks up all the v4 broadcast addresses from all the interfaces..? Should be pretty doable.

Oh, it knows its _own_ and shouldn't actually send a broadcast IPv4 packet after decapsulating a 6to4 packet -- but it's also supposed to magically know not to encapsulate into IPv4 a packet with an IPv4 address encoded which _happens_ to be a subnet broadcast elsewhere. It can't know that.

Of course, that cannot be known .. and I don't think the document even claims so.

Quoted 10 lines
Quoted 6 lines
Quoted 3 lines

Do you reckon there are boxen out there which will refuse to route for 2002:c35c:f9ff::1 just as some refuse to route for 195.92.249.255?

I'm not sure if such implementations exist, but if they don't, there are specific threats (though minor) if such check are implemented.

That was a valid IPv4 address; it just happens to have a 255 in its last octet. There _are_ some people who can't route to it though, because some router in between thinks it's a subnet broadcast.

Right.

Quoted 9 lines
Quoted 2 lines

Mobile IPv6 won't help with that, in practice. That's because the binding between care-of and home addresses must be secured.

<...>

Quoted 2 lines

So, this would create many new roundtrips, which is not really what you'd want..

Well, the _initial_ connection would all be tunnelled, and the binding would be set up in parallel, so that you end up routing optimally; just going via the tunnel to start with.

I don't see how that would be different from a VPN scenario, but yes; I guess if you deployed MIPv6 on every host, you could use it to communicate securely and in ad-hoc fashion between the mobile node and the home agent. You could even forget about CIPE for v6. Mobile IPv6 requires IPv6 connectivity too, though. But I'm not sure if that buys you much in this scenario.

Signature · 3 lines
Pekka Savola                 "You each name yourselves king, yet the
Netcore Oy                    kingdom bleeds."
Systems. Networks. Security. -- George R.R. Martin: A Clash of Kings
#10 lore raw
Quoted 9 lines · Pekka Savola
Quoted 5 lines

What's going to break is talking to _internal_ machines using our locally-derived address. Our packets will get to them fine, over the internal tunnels, but their route back to us will then be over the Internet rather than through the internal tunnels, and hence it'll get firewalled.

.. which is exactly why I proposed the above. Breaking connectivity indicates that something is wrong.. better than communicating insecurely while believing the communication is secure :-)

Er, if my workstation tries to talk to an internal machine using its locally-derived (i.e. public) address, that _is_ going to break, since the remote internal machine it going to send a reply which will be routed externally, then blocked when it hits my local ingress-preventing firewall. But you're right -- we should probably make it break earlier if we can.

Quoted 10 lines
Quoted 9 lines
Quoted 2 lines

Mobile IPv6 won't help with that, in practice. That's because the binding between care-of and home addresses must be secured.

<...>

Quoted 2 lines

So, this would create many new roundtrips, which is not really what you'd want..

Well, the _initial_ connection would all be tunnelled, and the binding would be set up in parallel, so that you end up routing optimally; just going via the tunnel to start with.

Quoted 6 lines

I don't see how that would be different from a VPN scenario, but yes; I guess if you deployed MIPv6 on every host, you could use it to communicate securely and in ad-hoc fashion between the mobile node and the home agent. You could even forget about CIPE for v6. Mobile IPv6 requires IPv6 connectivity too, though. But I'm not sure if that buys you much in this scenario.

You're right -- it would indeed be much like a VPN scenario. Except that unlike an IPv4 VPN where your default route to a box two blocks away goes via a transatlantic tunnel, it doesn't have to suck.

We accept the tunnelling-via-HQ overhead only for short-lived and spurious connections; for long-term connections we ensure the remote host to which we're talking actually updates its binding cache to know our care-of address.

I don't really want to make every internal box do mobile-ipv6 for _itself_, but I think it can be done by the local router on their behalf.

The office router sits between the internal IPv6-capable hosts and the outside world. It uses radvd to advertise the 'home' addresses, and also takes care of setting up care-of addresses for the internal boxen, with any remote hosts they seem to make a habit of talking to.

That way, we get _outgoing_ packets to travel directly, while _incoming_ packets sometimes go via HQ and a tunnel, but in the cases we care about, where we're exchanging a lot of packets with a particular remote host, they'll end up going directly.

All the alternatives, apart from the first 'use site-local addresses for internal operation, global-scope addresses for external', are looking fairly complex and fragile, to be honest.

Part of me wants to say 'Sod it', and assume that site-local scope isn't going to actually be abolished, since doing so seems to be _such_ a bad idea once you try to work around its absence.

Signature · 1 line
dwmw2
#11 lore raw
Quoted 3 lines · David Woodhouse

I don't really want to make every internal box do mobile-ipv6 for _itself_, but I think it can be done by the local router on their behalf.

I wouldn't spend too many cycles on this; the issue is far from trivial, trust me :-)

[...]

Quoted 7 lines

All the alternatives, apart from the first 'use site-local addresses for internal operation, global-scope addresses for external', are looking fairly complex and fragile, to be honest.

Part of me wants to say 'Sod it', and assume that site-local scope isn't going to actually be abolished, since doing so seems to be _such_ a bad idea once you try to work around its absence.

Well, I can say for certain that site-locals are going out. However, nothing prevents still using them, though. However, it's likely that you'd have to redesign the network, or at least renumber it if you choose that path.

A year or two down the path, there may be another "local addressing" approach.. there is already a proposal:

http://www.ietf.org/internet-drafts/draft-ietf-ipv6-unique-local-addr-00.txt

.. but whether thats *the* way, or a way at all, remains to be seen.

You might also want to check out the document which is documenting the deprecation (note, it's still a draft version, and likely to evolve a lot), to learn about some of the problems of the site-locals:

http://www.ietf.org/internet-drafts/draft-ietf-ipv6-deprecate-site-local-00.txt

One possible, conceptually maybe easier way, would be to deploy a single, internal ISATAP domain (so you'd have only _one_ internal IPv6 subnet, which would really be just automatic tunnel between all v6 hosts in your enterprise), but that would require getting ISATAP in all the kernels and iputils you use first, and IMHO it wouldn't be the same as deployingi real IPv6... :-)

Signature · 3 lines
Pekka Savola                 "You each name yourselves king, yet the
Netcore Oy                    kingdom bleeds."
Systems. Networks. Security. -- George R.R. Martin: A Clash of Kings
#12 lore raw
Quoted 6 lines · Pekka Savola

A year or two down the path, there may be another "local addressing" approach.. there is already a proposal:

http://www.ietf.org/internet-drafts/draft-ietf-ipv6-unique-local-addr-00.txt

.. but whether thats *the* way, or a way at all, remains to be seen.

So the advocated FC00::/8 locally-assigned addresses would be a bit like site-scope addresses, but with a higher probability of actually being globally-unique, although that is entirely pointless, and without all the useful semantics w.r.t. address selection. Great.

Quoted 5 lines

You might also want to check out the document which is documenting the deprecation (note, it's still a draft version, and likely to evolve a lot), to learn about some of the problems of the site-locals:

http://www.ietf.org/internet-drafts/draft-ietf-ipv6-deprecate-site-local-00.txt

It's interesting to see the arguments therein. I thought there might have been some valid ones I wasn't previously aware of, since I'm fairly new to IPv6. That doesn't really seem to be the case -- all the arguments could apply just as well to RFC1918 too.

§2.1 -- people might use _internal_ addresses of one site when they've moved to another. Just like trying to talk to RFC1918 internal addresses when you've moved. Yes it's a vague possibility -- compounded if people are playing schizodns tricks so that internal addresses actually have public-looking names -- but in practice it's a failure mode for RFC1918 already, and hence is known and avoided. Site addresses don't work off-site. Film at 11.

§2.2 -- internal addresses 'leak'. Not if you apply even a modicum of clue. Same as RFC1918 in IPv4. You don't let packets with private source addresses outside your borders, and you don't put them in public DNS.

§2.3 -- routing is hard. Let's go shopping. You have a global internal network routed over crypto tunnels between multiple sites. And you can't handle setting up the routing? Yeah, right.

§2.4 -- site is an illdefined concept. Yes, that's sort of the point. Its scope is _allowed_ to vary, because it's user-defined. At long as it doesn't leak, which it doesn't, you don't care whether I happen to use 'site' to mean a single physical location, or my global intranet.

§3 -- development of a better alternative. That would be nice. Nothing we've discussed so far really seems 'better' though.

</RANT>

Quoted 6 lines

One possible, conceptually maybe easier way, would be to deploy a single, internal ISATAP domain (so you'd have only _one_ internal IPv6 subnet, which would really be just automatic tunnel between all v6 hosts in your enterprise), but that would require getting ISATAP in all the kernels and iputils you use first, and IMHO it wouldn't be the same as deployingi real IPv6... :-)

Some 6-in-4 method which gives at least a /64 to each IPv4 address is nicer, since then you get the choice of making each host play for itself to get optimal routing, or letting them route via a single tunnel-capable router on each network segment. And it's an orthogonal issue to the _real_ problem, which is getting optimal IPv6 routing to the outside world by multi-homing, without the useful 'scope' concept forcing you to pick the right addresses all the time.

Signature · 1 line
dwmw2
#13 lore raw
Quoted 11 lines · David Woodhouse
Quoted 5 lines · Pekka Savola

You might also want to check out the document which is documenting the deprecation (note, it's still a draft version, and likely to evolve a lot), to learn about some of the problems of the site-locals:

http://www.ietf.org/internet-drafts/draft-ietf-ipv6-deprecate-site-local-00.txt

It's interesting to see the arguments therein. I thought there might have been some valid ones I wasn't previously aware of, since I'm fairly new to IPv6. That doesn't really seem to be the case -- all the arguments could apply just as well to RFC1918 too.

You have this wrong assumption that IPv6 is engineered with RFC1918 in mind. Site-locals were indeed that. But the point of deprecating them was to get *rid of* (at least to a degree) RFC1918 addresses in IPv6.

It's no use to reply in detail, except to correct two very bad misunderstandings..

Quoted 3 lines

§2.2 -- internal addresses 'leak'. Not if you apply even a modicum of clue. Same as RFC1918 in IPv4. You don't let packets with private source addresses outside your borders, and you don't put them in public DNS.

Leakage is used to refer to a lot more than just source/destination addresses. For example, addresses leak when you use a Peer-to-peer system behind a NAT; addresses leak when you contact to an FTP server from behind a NAT, etc. Addresses leaking inside the application is a much more difficult problem.

Quoted 3 lines

§2.3 -- routing is hard. Let's go shopping. You have a global internal network routed over crypto tunnels between multiple sites. And you can't handle setting up the routing? Yeah, right.

There's a lot more to it.

Consider the case when you have a router which is part of *two* sites, each from overlapping addresses. Routing protocols and everything would have to be modified to pass site identifiers in addition to the addresses. This looks like a simple problem but it isn't, that's for sure.

Signature · 3 lines
Pekka Savola                 "You each name yourselves king, yet the
Netcore Oy                    kingdom bleeds."
Systems. Networks. Security. -- George R.R. Martin: A Clash of Kings
#14 lore raw
Quoted 3 lines · Pekka Savola

You have this wrong assumption that IPv6 is engineered with RFC1918 in mind. Site-locals were indeed that. But the point of deprecating them was to get *rid of* (at least to a degree) RFC1918 addresses in IPv6.

But RFC1918 is what makes intranets work. And the proposal you pointed me at puts them _back_ again, just gratuitously globally unique, and without the semantics which actually made them _more_ useful than RFC1918; made them ideal for multi-homing with both site- and global- scope addresses.

Quoted 8 lines

It's no use to reply in detail, except to correct two very bad misunderstandings..

Leakage is used to refer to a lot more than just source/destination addresses. For example, addresses leak when you use a Peer-to-peer system behind a NAT; addresses leak when you contact to an FTP server from behind a NAT, etc. Addresses leaking inside the application is a much more difficult problem.

Unlike IPv4 and RFC1918, I thought IPv6 and site-local addressing _solved_ this, by letting multi-homing work properly. Hosts _wouldn't_ contact external machines using their site-scope address through a NAT; instead they'd have a global-scope address for that. Wasn't that the point?

Quoted 4 lines

Consider the case when you have a router which is part of *two* sites, each from overlapping addresses. Routing protocols and everything would have to be modified to pass site identifiers in addition to the addresses. This looks like a simple problem but it isn't, that's for sure.

OK, I hadn't realised you could have overlapping sites, and you were supposed to magically distinguish between them without any site identifier being passed on the wire. That was rather bizarre, and there's definitely reason for _that_ being abolished, I suppose.

The site scope addresses gave you 118 bits to play with. Using multiple 'site identifiers' rather than just subnetting it is a strange idea.

Signature · 1 line
dwmw2
#15 lore raw
Quoted 6 lines · David Woodhouse
Quoted 3 lines · Pekka Savola

You have this wrong assumption that IPv6 is engineered with RFC1918 in mind. Site-locals were indeed that. But the point of deprecating them was to get *rid of* (at least to a degree) RFC1918 addresses in IPv6.

But RFC1918 is what makes intranets work.

.. in a broken manner. We already have IPv4. If you want to deploy IPv6, do it properly. IPv6 is about global addressing.

The bottom line is: it's just so much better idea to use global addresses and filtering.

Quoted 5 lines

And the proposal you pointed
me at puts them _back_ again, just gratuitously globally unique, and without the semantics which actually made them _more_ useful than RFC1918; made them ideal for multi-homing with both site- and global- scope addresses.

Also, such semantics ("site-locals always preferred") caused a number of problems.

Quoted 11 lines
Quoted 5 lines

Leakage is used to refer to a lot more than just source/destination addresses. For example, addresses leak when you use a Peer-to-peer system behind a NAT; addresses leak when you contact to an FTP server from behind a NAT, etc. Addresses leaking inside the application is a much more difficult problem.

Unlike IPv4 and RFC1918, I thought IPv6 and site-local addressing _solved_ this, by letting multi-homing work properly. Hosts _wouldn't_ contact external machines using their site-scope address through a NAT; instead they'd have a global-scope address for that. Wasn't that the point?

There is a problem especially with multi-party applications, which do referrals. Consider theree nodes A, B, and C. A and B are in the same site and have both globals and site-locals. C has only globals. By the "site-local smallest scope rule", A and B talk using site-locals. However, if B tells C to contact A, he gives C a site-local address of A, instead of the global. And C can't handle it.

If you're interested to go a bit deeper to the reasoning, you may be interested to read
http://www.ietf.org/internet-drafts/draft-wasserman-ipv6-sl-impact-02.txt

Signature · 3 lines
Pekka Savola                 "You each name yourselves king, yet the
Netcore Oy                    kingdom bleeds."
Systems. Networks. Security. -- George R.R. Martin: A Clash of Kings
#16 lore raw
Quoted 3 lines · Pekka Savola
Quoted 1 line

But RFC1918 is what makes intranets work.

.. in a broken manner.

Except site-local addressing in IPv6 actually fixed the major breakage :)

Quoted 5 lines

We already have IPv4. If you want to deploy IPv6,
do it properly. IPv6 is about global addressing.

The bottom line is: it's just so much better idea to use global addresses and filtering.

Two separate global addresses -- one for the 'internal' communication, one for external communication without the routes sucking. And a half-baked 'most of the time it'll pick the right source address, hopefully' approach.

As opposed to a site address for intra-site communication and a global address for global communication.

Quoted 8 lines
Quoted 5 lines

And the proposal you pointed
me at puts them _back_ again, just gratuitously globally unique, and without the semantics which actually made them _more_ useful than RFC1918; made them ideal for multi-homing with both site- and global- scope addresses.

Also, such semantics ("site-locals always preferred") caused a number of problems.

As does their absence. The whole of this thread has been an attempt to devise a workaround for the breakage caused by their absence.

Quoted 6 lines

There is a problem especially with multi-party applications, which do referrals. Consider theree nodes A, B, and C. A and B are in the same site and have both globals and site-locals. C has only globals. By the "site-local smallest scope rule", A and B talk using site-locals. However, if B tells C to contact A, he gives C a site-local address of A, instead of the global. And C can't handle it.

Don't Do That Then.

Seriously; this is a known problem already and it's trivially avoidable. Don't send a site-local address to a machine you're talking to using globals. With explicit knowledge of scope, applications can _do_ that.

Whereas in the vile 'hosts have both HQ-derived addresses for internal communication and addresses derived from their local IPv6 uplink for global communication' scenario, the application has _no_ chance of picking the right address.

Quoted 3 lines

If you're interested to go a bit deeper to the reasoning, you may be interested to read
http://www.ietf.org/internet-drafts/draft-wasserman-ipv6-sl-impact-02.txt

At first glance, it seems that a lot of the problems go away if you don't allow 'multi-sited' nodes, and more go away when you realise they're already known and easily-avoided pitfalls of RFC1918 -- for example, don't introduce gratuitous ambiguity by playing stupid schizodns tricks as described in §3.3; use a sane domain like 'company.internal' for site-local addresses.

I need to read it more carefully, but to be honest it doesn't really seem to justify the complete abolition of site-scope.

I suspect we're getting off-topic here though.

I suspect my implementation plan is going to revert to using site-local addressing, since it's trivial and does precisely what I want.

I'll just have to trust that whatever the replacement is, it also solves the address-selection issues which site-local scope solves _perfectly_ for internal networks.

Signature · 1 line
dwmw2
#17 lore raw
Quoted 11 lines · David Woodhouse
Quoted 2 lines · Pekka Savola

The bottom line is: it's just so much better idea to use global addresses and filtering.

Two separate global addresses -- one for the 'internal' communication, one for external communication without the routes sucking. And a half-baked 'most of the time it'll pick the right source address, hopefully' approach.

As opposed to a site address for intra-site communication and a global address for global communication.

The bottom line for that is: there is no longer a clear distinction of "inside" and "outside". Any design which assumes all the internal nodes can communicate freely with each other seems very subject to abuse, and multiple points of failure (where one node can compromise all of them). For such communication, globals are the best -- there has to be internal filtering -- and gives no false sense of security which would rely on addressing.

Note that this is slightly different wrt. RFC1918 addresses. Deploying both globals and site-locals makes the problem of "compromise one node, use it as a stepping stone to compromise all the local nodes" slightly worse.

Therefore, the use of "internal addresses" does not help with that except for very small sites (e.g. home, using dial-up and getting a different prefix every time, but the internal communication should stay stable), it only propagates bad design from IPv4 to IPv6.

Quoted 9 lines
Quoted 6 lines

There is a problem especially with multi-party applications, which do referrals. Consider theree nodes A, B, and C. A and B are in the same site and have both globals and site-locals. C has only globals. By the "site-local smallest scope rule", A and B talk using site-locals. However, if B tells C to contact A, he gives C a site-local address of A, instead of the global. And C can't handle it.

Don't Do That Then.

Quoted 8 lines

Seriously; this is a known problem already and it's trivially avoidable. Don't send a site-local address to a machine you're talking to using globals. With explicit knowledge of scope, applications can _do_ that.

Whereas in the vile 'hosts have both HQ-derived addresses for internal communication and addresses derived from their local IPv6 uplink for global communication' scenario, the application has _no_ chance of picking the right address.

Applications are not supposed to know the scope, or be able (or even WANT) to take any stance on the properties of addresses they're using.

Quoted 9 lines
Quoted 3 lines

If you're interested to go a bit deeper to the reasoning, you may be interested to read
http://www.ietf.org/internet-drafts/draft-wasserman-ipv6-sl-impact-02.txt

At first glance, it seems that a lot of the problems go away if you don't allow 'multi-sited' nodes, and more go away when you realise they're already known and easily-avoided pitfalls of RFC1918 -- for example, don't introduce gratuitous ambiguity by playing stupid schizodns tricks as described in §3.3;

True, to an extent.

Quoted 2 lines

use a sane domain like
'company.internal' for site-local addresses.

Right, but not everybody may be content with that kind of approach..

Quoted 3 lines

I'll just have to trust that whatever the replacement is, it also solves the address-selection issues which site-local scope solves _perfectly_ for internal networks.

I doubt that, because the address selection is something that caused a number of problems in the first place. However, longest prefix match gives a working communication in most cases.

Signature · 3 lines
Pekka Savola                 "You each name yourselves king, yet the
Netcore Oy                    kingdom bleeds."
Systems. Networks. Security. -- George R.R. Martin: A Clash of Kings
#18 lore raw
Quoted 2 lines · Pekka Savola

The bottom line for that is: there is no longer a clear distinction of "inside" and "outside".

To clarify... there currently is; you are saying that there shall not be, and appear to believe personally that there _should_ not be.

Quoted 6 lines

Any design which assumes all the internal nodes
can communicate freely with each other seems very subject to abuse, and multiple points of failure (where one node can compromise all of them). For such communication, globals are the best -- there has to be internal filtering -- and gives no false sense of security which would rely on addressing.

Whether you firewall your inter-office traffic at the borders is an orthogonal issue, surely? In practice, since most hosts run the same software, if you own one you might as well own them all _directly_ rather than via the one you owned. And since most people will log into the most important servers from their own workstations, if you trojan ssh you'll soon get there too... regardless of internal firewalling, which _can't_ block port 22.

Besides, if they own one host, they can already use the internal IPv4 network to attack the rest. That's not going to be taken down overnight.

Quoted 4 lines

Note that this is slightly different wrt. RFC1918 addresses. Deploying both globals and site-locals makes the problem of "compromise one node, use it as a stepping stone to compromise all the local nodes" slightly worse.

If there are no blocks in ingress to the global addresses. To be honest, I'd settle for putting the internal hosts behind NAT. We do not want ingress -- except by SSH only, via a limited set of trusted bastion hosts.

Quoted 4 lines

Therefore, the use of "internal addresses" does not help with that except for very small sites (e.g. home, using dial-up and getting a different prefix every time, but the internal communication should stay stable), it only propagates bad design from IPv4 to IPv6.

Its 'badness' is a matter of opinion. I think we can objectively say that it is a widely deployed and understood design, the absence of which causes significant conceptual barriers to those attempting to deploy IPv6.

Quoted 2 lines

Applications are not supposed to know the scope, or be able (or even WANT) to take any stance on the properties of addresses they're using.

So you advocate the non-routeable 'fc00::/7' addressses so that applications _cannot_ know the scope and make sane decisions; stuff just breaks instead. I don't see that this is an improvement.

Quoted 5 lines
Quoted 3 lines

At first glance, it seems that a lot of the problems go away if you don't allow 'multi-sited' nodes, and more go away when you realise they're already known and easily-avoided pitfalls of RFC1918

True, to an extent.

To a very large extent.

Quoted 3 lines
Quoted 1 line

use a sane domain like 'company.internal' for site-local addresses.

Right, but not everybody may be content with that kind of approach..

That is their problem. And it'll continue to cause the same kind of problems with 'leakage' that it does today; the kind of problem you want to stop. Only instead of site-local addresses 'leaking' it's site-local _names_. Are they going to ban schizodns too? :)

But again, that's an orthogonal problem. It didn't really live in the document to which you referred me. The authors really seemed to be clutching at straws by that point.

Quoted 7 lines
Quoted 3 lines

I'll just have to trust that whatever the replacement is, it also solves the address-selection issues which site-local scope solves _perfectly_ for internal networks.

I doubt that, because the address selection is something that caused a number of problems in the first place. However, longest prefix match gives a working communication in most cases.

OK.... so we go from a solution which gives a working communication in _all_ cases, including the current case where we engineers are using site-local addresses internally _long_ before persuading IS to allow global routing, and our connections to hosts with both IPv4 and IPv6-global addresses works fine since we only have site-local addresses... to a situation far far worse.

RFC1918 may be a 'flawed' design to some people but it's almost universally understood and deployed. The abolition of site-local addresses is seems to be a huge barrier to adoption of IPv6.

I suppose we could work with the fc00::/7 non-routeable addresses, and NAT. Are people as opposed to IPv6-NAT as I was told they are? I'd discounted that as a solution before even starting...

Signature · 1 line
dwmw2
#19 lore raw
Quoted 6 lines · David Woodhouse
Quoted 2 lines · Pekka Savola

The bottom line for that is: there is no longer a clear distinction of "inside" and "outside".

To clarify... there currently is; you are saying that there shall not be, and appear to believe personally that there _should_ not be.

Yep, and I'm not alone with this :-)

Quoted 15 lines
Quoted 6 lines

Any design which assumes all the internal nodes
can communicate freely with each other seems very subject to abuse, and multiple points of failure (where one node can compromise all of them). For such communication, globals are the best -- there has to be internal filtering -- and gives no false sense of security which would rely on addressing.

Whether you firewall your inter-office traffic at the borders is an orthogonal issue, surely? In practice, since most hosts run the same software, if you own one you might as well own them all _directly_ rather than via the one you owned. And since most people will log into the most important servers from their own workstations, if you trojan ssh you'll soon get there too... regardless of internal firewalling, which _can't_ block port 22.

Quoted 2 lines

Besides, if they own one host, they can already use the internal IPv4 network to attack the rest. That's not going to be taken down overnight.

It depends on your threat model. As far as I've seen, there is a vast difference in access controls you enable internally and externally. There are still internal access controls; the more the sites, the more the controls.

Which is why security by private addressing doesn't really fly.

Quoted 9 lines
Quoted 4 lines

Note that this is slightly different wrt. RFC1918 addresses. Deploying both globals and site-locals makes the problem of "compromise one node, use it as a stepping stone to compromise all the local nodes" slightly worse.

If there are no blocks in ingress to the global addresses. To be honest, I'd settle for putting the internal hosts behind NAT. We do not want ingress -- except by SSH only, via a limited set of trusted bastion hosts.

NAT doesn't help you at all here. It just limits the ingress visibility of your nodes. The identical external protection can be obtained by blocking *all* traffic at the border to those nodes you'd put behind the NAT.

Quoted 9 lines
Quoted 4 lines

Therefore, the use of "internal addresses" does not help with that except for very small sites (e.g. home, using dial-up and getting a different prefix every time, but the internal communication should stay stable), it only propagates bad design from IPv4 to IPv6.

Its 'badness' is a matter of opinion. I think we can objectively say that it is a widely deployed and understood design, the absence of which causes significant conceptual barriers to those attempting to deploy IPv6.

I certainly disagree with "understood" here.

Quoted 3 lines

RFC1918 may be a 'flawed' design to some people but it's almost universally understood and deployed. The abolition of site-local addresses is seems to be a huge barrier to adoption of IPv6.

Again, I really disagree with "understood" here. If folks really understood it, it wouldn't be so widely deployed. About the only more or less valid use for addresses like those are in the disconnected sites scenarios, or in cases where site prefix(es) keep changing all the time. And even then, there are severe disadvantages to using RFC1918 and NAT.

I'm not sure if anyone has ever bothered to write up these things, especially for RFC1918, but at least one aspect of it (NAT) is at:

http://www.cs.utk.edu/~moore/what-nats-break.html

Quoted 3 lines

I suppose we could work with the fc00::/7 non-routeable addresses, and NAT. Are people as opposed to IPv6-NAT as I was told they are? I'd discounted that as a solution before even starting...

Yep, people are pretty much against NATv6 :-)

Signature · 3 lines
Pekka Savola                 "You each name yourselves king, yet the
Netcore Oy                    kingdom bleeds."
Systems. Networks. Security. -- George R.R. Martin: A Clash of Kings