Skip to content

IP forwarding detection should check at interface-level #2095

@ewindisch

Description

@ewindisch

It is possible and preferable to perform IP forwarding detection at the interface level by manipulating sysctls such as net.ipv4.conf.eth0.forwarding. Because some systems operators might prefer to granularly configure these forwarding tables without enabling it for all interfaces, docker should only check for forwarding on those interfaces it requires, rather than then 'default allow' sysctl of net.ipv4.ip_forward.

I have confirmed that containers may still reach out if I perform:

sysctl -w net.ipv4.ip_forward=0
sysctl -w net.ipv4.conf.eth0.forwarding=1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions