Skip to contentSkip to conversation

forwarding of ipv4 link local addresses

DISCUSSION David Ahern 3 participants 5 messages Dec 1, 2015 – Dec 9, 2015

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

RFC 3927 states that packets from/to IPv4 link-local addresses (169.254/16) should not be forwarded, yet the Linux networking stack happily forwards them. Before sending in a patch I wanted to inquire if this behavior is intentional.

Thanks,
David

maintainer
#1 lore raw

From: David Ahern <[email protected]>
Date: Tue, 1 Dec 2015 13:35:58 -0800

Quoted 4 lines

RFC 3927 states that packets from/to IPv4 link-local addresses (169.254/16) should not be forwarded, yet the Linux networking stack happily forwards them. Before sending in a patch I wanted to inquire if this behavior is intentional.

It probably won't break anything if we prohibit this, so sure send a patch.

#2 lore raw
Quoted 10 lines · David Miller

From: David Ahern <[email protected]>
Date: Tue, 1 Dec 2015 13:35:58 -0800

Quoted 4 lines

RFC 3927 states that packets from/to IPv4 link-local addresses (169.254/16) should not be forwarded, yet the Linux networking stack happily forwards them. Before sending in a patch I wanted to inquire if this behavior is intentional.

It probably won't break anything if we prohibit this, so sure send a patch.

I don't have the full email context so apologies if this is not relevant. The RFC states that such addresses should not be forwarded _beyond the local link_. So as long as you are not breaking forwarding of these addresses on the local host, I'm perfectly fine.

I bring this up specifically because of:

commit d0daebc3d622f95db181601cb0c4a0781f74f758

Author: Thomas Graf <[email protected]>
Date:   Tue Jun 12 00:44:01 2012 +0000

ipv4: Add interface option to enable routing of 127.0.0.0/8

Routing of 127/8 is tradtionally forbidden, we consider packets from that address block martian when routing and do not process corresponding ARP requests.

[...]

This feature is being used by a popular PaaS which leverages the 127/8 address space locally without polluting an entire routeable address space.

#3 lore raw
Quoted 3 lines · Thomas Graf

This feature is being used by a popular PaaS which leverages the 127/8 address space locally without polluting an entire routeable address space.

Kubernetes also wants to rely on this eventually, so please let's not break it ;-)

#4 lore raw
In reply to Thomas Graf
Quoted 9 lines · Thomas Graf
Quoted 8 lines · David Miller

From: David Ahern <[email protected]>
Date: Tue, 1 Dec 2015 13:35:58 -0800

Quoted 4 lines

RFC 3927 states that packets from/to IPv4 link-local addresses (169.254/16) should not be forwarded, yet the Linux networking stack happily forwards them. Before sending in a patch I wanted to inquire if this behavior is intentional.

Quoted 7 lines
Quoted 2 lines

It probably won't break anything if we prohibit this, so sure send a patch.

I don't have the full email context so apologies if this is not relevant. The RFC states that such addresses should not be forwarded _beyond the local link_. So as long as you are not breaking forwarding of these addresses on the local host, I'm perfectly fine.

Hi Thomas:

The above is the full email context.

The behavior that one of our testers tripped over is packets sent to 169.254 addresses received on link A are forwarded out link B. That's the behavior that was surprising and seems to violate the RFC.

Quoted 13 lines

I bring this up specifically because of:

commit d0daebc3d622f95db181601cb0c4a0781f74f758

Author: Thomas Graf <[email protected]>
Date:   Tue Jun 12 00:44:01 2012 +0000

ipv4: Add interface option to enable routing of 127.0.0.0/8

Routing of 127/8 is tradtionally forbidden, we consider packets from that address block martian when routing and do not process corresponding ARP requests.

Quoted 6 lines

[...]

This feature is being used by a popular PaaS which leverages the 127/8 address space locally without polluting an entire routeable address space.

Daniel pointed out this commit as well. I am referring strictly to 169.254/16 addresses.