mirror of
https://github.com/floci-io/floci.git
synced 2026-12-03 02:07:58 -05:00
With security-group enforcement on, a managed ENI's identity was its IPv4 address alone, so a rule naming an IPv6 range never matched a peer on the IPv6 addresses its ENI now holds. Each protected endpoint now carries its ENI's IPv6 addresses next to the IPv4 one, and its helper's Docker IPv6 address next to the IPv4 transport. The compiler writes a peer's rules per identity: a rule matching one of its IPv6 addresses admits it on the IPv6 transport only, never on the IPv4 one, and on a Docker network without IPv6 there is no IPv6 identity to match. Every transport a peer has is dropped after its rules, as the IPv4 one already was. The EC2 and ECS registrations pass the ENI's IPv6 addresses, the firewall manager reads the helper's Docker IPv6 address, and AssignIpv6Addresses and UnassignIpv6Addresses update the ENI's firewall identity. Every Docker address a managed peer has is dropped after its rules, its IPv6 one included when its ENI holds no IPv6 address, and an ICMP rule is written only for the family it belongs to. IPv6 changes to one ENI serialize through their firewall update; an assign the firewall refuses is taken back out of the store, and an unassign reaches the firewall before it is stored. The README now documents enforcement: what it filters, that it needs rootful Docker with Linux containers, how to turn it on, and that an application port opened after launch is not published while it is on. Part of #2564.