neutron/neutron/agent
LIU Yulong 64a0916d2b [Security] fix allowed-address-pair 0.0.0.0/0 issue
When add allowed-address-pair 0.0.0.0/0 to one port, it will
unexpectedly open all others' protocol under same security
group. IPv6 has the same problem.

The root cause is the openflow rules calculation of the
security group, it will unexpectedly allow all IP(4&6)
traffic to get through.

For openvswitch openflow firewall, this patch adds a source
mac address match for the allowed-address-pair which has
prefix lenght 0, that means all ethernet packets from this
mac will be accepted. It exactly will meet the request of
accepting any IP address from the configured VM.

Test result shows that the remote security group and
allowed address pair works:
1. Port has 0.0.0.0/0 allowed-address-pair clould send any
   IP (src) packet out.
2. Port has x.x.x.x/y allowed-address-pair could be accepted
   for those VMs under same security group.
3. Ports under same network can reach each other (remote
   security group).
4. Protocol port number could be accessed only when there
   has related rule.

Closes-bug: #1867119
Change-Id: I2e3aa7c400d7bb17cc117b65faaa160b41013dde
(cherry picked from commit 00298fe6e8)
2020-07-31 11:23:18 +00:00
..
common Merge "[OVS] Make QoS OVS agent deletion operations more resilient" into stable/rocky 2020-07-08 18:27:08 +00:00
dhcp Prioritize port create and update ready messages 2020-04-06 16:51:30 -04:00
l2 Clear residual qos rules after l2-agent restarts. 2019-01-22 12:59:24 +00:00
l3 [stable only] Configure logging in keepalived_state_change 2020-07-17 09:26:04 +00:00
linux [Security] fix allowed-address-pair 0.0.0.0/0 issue 2020-07-31 11:23:18 +00:00
metadata Remove extra header fields in proxied metadata requests 2020-03-03 20:11:38 +00:00
ovsdb Make OVSDB debug logging optional 2018-04-18 15:57:18 -05:00
windows Fix neutron-openvswitch-agent Windows support 2018-08-28 06:53:11 +00:00
__init__.py Empty files should not contain copyright or license 2014-10-20 00:50:32 +00:00
_topics.py Add binding_deactivate method to Linux bridge agent 2018-07-14 16:46:01 -05:00
agent_extensions_manager.py Make code follow log translation guideline 2017-08-14 02:01:48 +00:00
dhcp_agent.py Enable mutable config in Neutron 2018-03-21 20:35:19 +00:00
firewall.py use EGRESS_DIRECTION and INGRESS_DIRECTION from neutron-lib 2018-02-23 10:36:36 -07:00
l3_agent.py Enable mutable config in Neutron 2018-03-21 20:35:19 +00:00
metadata_agent.py Remove deprecated cache_url 2017-11-10 00:47:19 -05:00
resource_cache.py Ignore first local port update notification 2019-07-10 18:15:24 +00:00
rpc.py Ignore first local port update notification 2019-07-10 18:15:24 +00:00
securitygroups_rpc.py Add accepted egress direct flow 2020-03-26 08:23:32 +00:00