moby/libnetwork/drivers
Cory Snider 142f46cac1 libn/d/overlay: enforce encryption on sandbox init
The iptables rules which make encryption mandatory on an encrypted
overlay network are only programmed once there is a second node
participating in the network. This leaves single-node encrypted overlay
networks vulnerable to packet injection. Furthermore, failure to program
the rules is not treated as a fatal error.

Program the iptables rules to make encryption mandatory before creating
the VXLAN link to guarantee that there is no window of time where
incoming cleartext VXLAN packets for the network would be accepted, or
outgoing cleartext packets be transmitted. Only create the VXLAN link if
programming the rules succeeds to ensure that it fails closed.

Signed-off-by: Cory Snider <csnider@mirantis.com>
2023-03-15 19:28:11 -04:00
..
bridge libnet: convert to new-style driver registration 2023-01-27 11:47:42 -05:00
host libnet: convert to new-style driver registration 2023-01-27 11:47:42 -05:00
ipvlan libnet/d/ipvlan: gracefully migrate from older dbs 2023-02-06 12:08:28 -05:00
macvlan libnet: convert to new-style driver registration 2023-01-27 11:47:42 -05:00
null libnet: convert to new-style driver registration 2023-01-27 11:47:42 -05:00
overlay libn/d/overlay: enforce encryption on sandbox init 2023-03-15 19:28:11 -04:00
remote libnet: convert to new-style driver registration 2023-01-27 11:47:42 -05:00
windows libnet: convert to new-style driver registration 2023-01-27 11:47:42 -05:00