Skip to contentSkip to conversation

New: macvlan and proxy ARP can be accidentally configured to respond to ARP requests for all IPs

Bug 206885 Stephen Hemminger 1 participant 1 message Mar 19, 2020

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

My gut feeling is this a user error, but forwarding to get more eyes.

Begin forwarded message:

Date: Thu, 19 Mar 2020 13:48:01 +0000
From: [email protected]
To: [email protected]
Subject: [Bug 206885] New: macvlan and proxy ARP can be accidentally configured to respond to ARP requests for all IPs

https://bugzilla.kernel.org/show_bug.cgi?id=206885

            Bug ID: 206885
           Summary: macvlan and proxy ARP can be accidentally configured
                    to respond to ARP requests for all IPs
           Product: Networking
           Version: 2.5
    Kernel Version: 5.3.0-42-generic
          Hardware: All
                OS: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: IPV4
          Assignee: [email protected]
          Reporter: [email protected]
        Regression: No

Using the following approach it is possible to accidentally configure a macvlan interface to respond to ARP requests for all IPs.

Reproducer:

ip link add link enp3s0 address f6:83:72:e4:77:0a vtest type macvlan ip addr add 192.168.1.200/32 dev vtest
ip link set vtest up

sysctl -w net.ipv4.conf.vtest.rp_filter=2
sysctl -w net.ipv4.conf.vtest.proxy_arp=1
sysctl -w net.ipv4.conf.vtest.forwarding=1

On a separate host on the same segment:

arping -c 1 -I eth1 -s 192.168.1.2 10.1.2.3 ARPING 10.1.2.3 from 192.168.1.2 eth1
Unicast reply from 10.1.2.3 [f6:83:72:e4:77:0a] 419.288ms Sent 1 probe(s) (0 broadcast(s))
Received 1 response(s) (0 request(s), 0 broadcast(s))

arping -c 1 -I eth1 -s 192.168.1.2 8.8.8.8 ARPING 10.1.2.3 from 192.168.1.2 eth1
Unicast reply from 10.1.2.3 [f6:83:72:e4:77:0a] 27.754ms Sent 1 probe(s) (0 broadcast(s))
Received 1 response(s) (0 request(s), 0 broadcast(s))

See https://github.com/lxc/lxc/issues/775 for more information.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.