)]}'
{"specs/juno/ovs-firewall-driver.rst":[{"author":{"_account_id":4149,"name":"Itsuro Oda","email":"oda@valinux.co.jp","username":"oda-g"},"change_message_id":"b482d4be8efbddc034aaf399c77c2e0671cd6351","unresolved":false,"context_lines":[{"line_number":21,"context_line":"iptables-based implementations. In Icehouse, the existing openvswitch plugin is"},{"line_number":22,"context_line":"being deprecated, so the blueprint is compatible with the ML2 plugin with the"},{"line_number":23,"context_line":"openvswitch mechanism driver."},{"line_number":24,"context_line":""},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"Proposed change"},{"line_number":27,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":3,"id":"7adec928_5dbbdb71","line":24,"updated":"2014-05-13 05:33:11.000000000","message":"(comment)\n\nSecurity group does not work on XenServer + Neutron(OVS).\n\nhttps://bugs.launchpad.net/neutron/+bug/1245809\n\nIt is waiting this function.\nSo this is important from the view point of nova-network parity.","commit_id":"563691d8e4a33445ec92c0012587d270a43c1c2b"},{"author":{"_account_id":4149,"name":"Itsuro Oda","email":"oda@valinux.co.jp","username":"oda-g"},"change_message_id":"0875c3b1323c265ed4bd80dd1377bd092597899a","unresolved":false,"context_lines":[{"line_number":21,"context_line":"iptables-based implementations. In Icehouse, the existing openvswitch plugin is"},{"line_number":22,"context_line":"being deprecated, so the blueprint is compatible with the ML2 plugin with the"},{"line_number":23,"context_line":"openvswitch mechanism driver."},{"line_number":24,"context_line":""},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"Proposed change"},{"line_number":27,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":3,"id":"7adec928_6bf43f87","line":24,"in_reply_to":"7adec928_3aaa8ad4","updated":"2014-05-14 02:06:21.000000000","message":"I just pointed out that ovs-firewall-driver is thought as only solution of 1245809. (1245809 is now waiting ovs-firewall-driver.)\nSo this bule print is important :-)\n\nNote that the essence of the problem of 1245809 is the lack of ovs-hybrid interface on XenServer. I think it is necessary to modify a xenapi script to support ovs-hybrid and it is not so glad.","commit_id":"563691d8e4a33445ec92c0012587d270a43c1c2b"},{"author":{"_account_id":6670,"name":"Amir Sadoughi","email":"amir.sadoughi@rackspace.com","username":"amir-sadoughi"},"change_message_id":"453e044a3d529e9f27ca0c04eb340442684bc2c4","unresolved":false,"context_lines":[{"line_number":21,"context_line":"iptables-based implementations. In Icehouse, the existing openvswitch plugin is"},{"line_number":22,"context_line":"being deprecated, so the blueprint is compatible with the ML2 plugin with the"},{"line_number":23,"context_line":"openvswitch mechanism driver."},{"line_number":24,"context_line":""},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"Proposed change"},{"line_number":27,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":3,"id":"7adec928_3aaa8ad4","line":24,"in_reply_to":"7adec928_5dbbdb71","updated":"2014-05-13 23:58:37.000000000","message":"The stdin issue was solved with https://bugs.launchpad.net/neutron/+bug/1259748. iptables are no longer required with the implementation of ovs-firewall-driver. Did I miss anything else from the bug you referenced?","commit_id":"563691d8e4a33445ec92c0012587d270a43c1c2b"},{"author":{"_account_id":105,"name":"Kyle Mestery","email":"mestery@mestery.com","username":"mestery"},"change_message_id":"7648945030bf44573a31d7a9612e72aaa39f0b98","unresolved":false,"context_lines":[{"line_number":40,"context_line":""},{"line_number":41,"context_line":"  Upon startup the agent removes all flows on all relevant bridges. This issue"},{"line_number":42,"context_line":"  is outside the scope of this particular blueprint and is being covered by"},{"line_number":43,"context_line":"  blueprint neutron-agent-soft-restart."},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"* Agent removes a VIF\u0027s flows on port_bound"},{"line_number":46,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"7adec928_60a9e37a","line":43,"updated":"2014-05-10 01:46:08.000000000","message":"It\u0027s worth noting that I am currently working a bug [1] where if OVS is restarted, flows are not always reprogrammed back into the flow table. The reason for this is documented in the bug, but the fix will likely be critical to this feature, as otherwise an OVS crash would cause all security groups to be lost when OVS restarted.\n\n[1] https://bugs.launchpad.net/neutron/+bug/1290486","commit_id":"563691d8e4a33445ec92c0012587d270a43c1c2b"},{"author":{"_account_id":6670,"name":"Amir Sadoughi","email":"amir.sadoughi@rackspace.com","username":"amir-sadoughi"},"change_message_id":"453e044a3d529e9f27ca0c04eb340442684bc2c4","unresolved":false,"context_lines":[{"line_number":40,"context_line":""},{"line_number":41,"context_line":"  Upon startup the agent removes all flows on all relevant bridges. This issue"},{"line_number":42,"context_line":"  is outside the scope of this particular blueprint and is being covered by"},{"line_number":43,"context_line":"  blueprint neutron-agent-soft-restart."},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"* Agent removes a VIF\u0027s flows on port_bound"},{"line_number":46,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"7adec928_3a81aa4a","line":43,"in_reply_to":"7adec928_60a9e37a","updated":"2014-05-13 23:58:37.000000000","message":"Noted.","commit_id":"563691d8e4a33445ec92c0012587d270a43c1c2b"},{"author":{"_account_id":105,"name":"Kyle Mestery","email":"mestery@mestery.com","username":"mestery"},"change_message_id":"7648945030bf44573a31d7a9612e72aaa39f0b98","unresolved":false,"context_lines":[{"line_number":51,"context_line":"  propose using a distinct cookie on flows that belong to the firewall and a"},{"line_number":52,"context_line":"  separate, distinct cookie on flows that belong to the agent. This will"},{"line_number":53,"context_line":"  require OVS version 1.5.0+ to delete flows based on a cookie (current version"},{"line_number":54,"context_line":"  in XenServer 6.2 and Ubuntu P/Q-release is 1.4.6)."},{"line_number":55,"context_line":""},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"2. Extension of security groups extension"}],"source_content_type":"text/x-rst","patch_set":3,"id":"7adec928_c0b1d7e2","line":54,"updated":"2014-05-10 01:46:08.000000000","message":"I\u0027m fine with this limitation. We\u0027ll just need to disable this feature for OVS 1.4.x, which is what Precise uses.","commit_id":"563691d8e4a33445ec92c0012587d270a43c1c2b"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"cebc5d28e75a03333d175b49937e85f778685345","unresolved":false,"context_lines":[{"line_number":70,"context_line":""},{"line_number":71,"context_line":"In the case of the instance being a UDP server and default security groups"},{"line_number":72,"context_line":"already allowing all egress, adding a rule to allow ingress on UDP destination"},{"line_number":73,"context_line":"port 9987 will behave as expected."},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"Example 2. An instance UDP client connecting to a remote UDP server::"},{"line_number":76,"context_line":"   C. nw_src\u003d$instance_ip, tp_src\u003drandom, nw_dst\u003d$remote_ip, tp_dst\u003d9987"}],"source_content_type":"text/x-rst","patch_set":3,"id":"7adec928_4e49435f","line":73,"updated":"2014-05-14 22:39:06.000000000","message":"does this mean it doesn\u0027t work with non-default egress?","commit_id":"563691d8e4a33445ec92c0012587d270a43c1c2b"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"cdf9ef0718e3cba3a8373e39b9ad41ffebe37f04","unresolved":false,"context_lines":[{"line_number":70,"context_line":""},{"line_number":71,"context_line":"In the case of the instance being a UDP server and default security groups"},{"line_number":72,"context_line":"already allowing all egress, adding a rule to allow ingress on UDP destination"},{"line_number":73,"context_line":"port 9987 will behave as expected."},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"Example 2. An instance UDP client connecting to a remote UDP server::"},{"line_number":76,"context_line":"   C. nw_src\u003d$instance_ip, tp_src\u003drandom, nw_dst\u003d$remote_ip, tp_dst\u003d9987"}],"source_content_type":"text/x-rst","patch_set":3,"id":"7adec928_89c6da66","line":73,"in_reply_to":"7adec928_0ea57ba1","updated":"2014-05-15 16:36:13.000000000","message":"Example:\n\nEgress rules: None (why? because you want to prevent outgoing unsolicited connections from compromised servers.)\n\nIngress rules: One allow rule to the UDP port of the service (e.g. UDP DST  53)\n\nStateless firewalls cannot handle this case without a generic rule that allows all traffic sourced from the UDP port of the above service to everything on the Internet on client UDP ports, which is a loss of security (albeit minor).","commit_id":"563691d8e4a33445ec92c0012587d270a43c1c2b"},{"author":{"_account_id":6670,"name":"Amir Sadoughi","email":"amir.sadoughi@rackspace.com","username":"amir-sadoughi"},"change_message_id":"a82e2a9b9c37eef7847cb7eb4ddc9f658706ce57","unresolved":false,"context_lines":[{"line_number":70,"context_line":""},{"line_number":71,"context_line":"In the case of the instance being a UDP server and default security groups"},{"line_number":72,"context_line":"already allowing all egress, adding a rule to allow ingress on UDP destination"},{"line_number":73,"context_line":"port 9987 will behave as expected."},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"Example 2. An instance UDP client connecting to a remote UDP server::"},{"line_number":76,"context_line":"   C. nw_src\u003d$instance_ip, tp_src\u003drandom, nw_dst\u003d$remote_ip, tp_dst\u003d9987"}],"source_content_type":"text/x-rst","patch_set":3,"id":"7adec928_0ea57ba1","line":73,"in_reply_to":"7adec928_4e49435f","updated":"2014-05-15 01:45:46.000000000","message":"Can you give an example of a non-default security group ruleset to discuss? It\u0027s easier to explain with a concrete case.","commit_id":"563691d8e4a33445ec92c0012587d270a43c1c2b"},{"author":{"_account_id":6670,"name":"Amir Sadoughi","email":"amir.sadoughi@rackspace.com","username":"amir-sadoughi"},"change_message_id":"2d71c66ce2f3619b72949b5f008cae9ca0fae0e1","unresolved":false,"context_lines":[{"line_number":70,"context_line":""},{"line_number":71,"context_line":"In the case of the instance being a UDP server and default security groups"},{"line_number":72,"context_line":"already allowing all egress, adding a rule to allow ingress on UDP destination"},{"line_number":73,"context_line":"port 9987 will behave as expected."},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"Example 2. An instance UDP client connecting to a remote UDP server::"},{"line_number":76,"context_line":"   C. nw_src\u003d$instance_ip, tp_src\u003drandom, nw_dst\u003d$remote_ip, tp_dst\u003d9987"}],"source_content_type":"text/x-rst","patch_set":3,"id":"7adec928_bc9108f3","line":73,"in_reply_to":"7adec928_89c6da66","updated":"2014-05-16 15:15:48.000000000","message":"Right, this case won\u0027t be handled automatically by a stateless UDP firewall. In this case, an egress rule of source-port-range-min/-max of 53 will need to be added in addition to the ingress rule you described.","commit_id":"563691d8e4a33445ec92c0012587d270a43c1c2b"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"cebc5d28e75a03333d175b49937e85f778685345","unresolved":false,"context_lines":[{"line_number":77,"context_line":"   D. nw_src\u003d$remote_ip, tp_src\u003d9987, nw_dst\u003d$instance_ip, tp_dst\u003drandom"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"In the case of the instance being a UDP client and default security groups"},{"line_number":80,"context_line":"already allowing all egress, we will need a new security group rule to allow"},{"line_number":81,"context_line":"ingress from source port 9987 from the remote UDP server in a stateless"},{"line_number":82,"context_line":"firewall. This is different behavior than the iptables-based stateful firewall"},{"line_number":83,"context_line":"implementation because iptables is able to add the reverse flow in its state"}],"source_content_type":"text/x-rst","patch_set":3,"id":"7adec928_8e76eba2","line":80,"updated":"2014-05-14 22:39:06.000000000","message":"again, what to do for non-default sec groups?","commit_id":"563691d8e4a33445ec92c0012587d270a43c1c2b"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"cebc5d28e75a03333d175b49937e85f778685345","unresolved":false,"context_lines":[{"line_number":91,"context_line":""},{"line_number":92,"context_line":"To solve the lack of source port information, I propose the following"},{"line_number":93,"context_line":"addition to the security groups extension API to allow a match on source port:"},{"line_number":94,"context_line":"—source-port-range-min, —source-port-range-max."},{"line_number":95,"context_line":""},{"line_number":96,"context_line":""},{"line_number":97,"context_line":"3. OVSFirewallDriver implementation"}],"source_content_type":"text/x-rst","patch_set":3,"id":"7adec928_ee712fa9","line":94,"updated":"2014-05-14 22:39:06.000000000","message":"does this mean a user needs to tweak their configurations to use OVS-firewall?","commit_id":"563691d8e4a33445ec92c0012587d270a43c1c2b"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"b9c7db859b4c3b61f4ddf5e3d699e3bab3734bc0","unresolved":false,"context_lines":[{"line_number":91,"context_line":""},{"line_number":92,"context_line":"To solve the lack of source port information, I propose the following"},{"line_number":93,"context_line":"addition to the security groups extension API to allow a match on source port:"},{"line_number":94,"context_line":"—source-port-range-min, —source-port-range-max."},{"line_number":95,"context_line":""},{"line_number":96,"context_line":""},{"line_number":97,"context_line":"3. OVSFirewallDriver implementation"}],"source_content_type":"text/x-rst","patch_set":3,"id":"7adec928_a07b4779","line":94,"in_reply_to":"7adec928_1349c230","updated":"2014-05-19 23:09:11.000000000","message":"at the least documentation is necessary, yes.\nbut i\u0027m not sure if it\u0027s enough.\ngiven the security nature of this functionality, runtime error is better.","commit_id":"563691d8e4a33445ec92c0012587d270a43c1c2b"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"a52a77d1fed9c071b12d7242981a606b802bc23f","unresolved":false,"context_lines":[{"line_number":91,"context_line":""},{"line_number":92,"context_line":"To solve the lack of source port information, I propose the following"},{"line_number":93,"context_line":"addition to the security groups extension API to allow a match on source port:"},{"line_number":94,"context_line":"—source-port-range-min, —source-port-range-max."},{"line_number":95,"context_line":""},{"line_number":96,"context_line":""},{"line_number":97,"context_line":"3. OVSFirewallDriver implementation"}],"source_content_type":"text/x-rst","patch_set":3,"id":"7adec928_a4b92d7b","line":94,"in_reply_to":"7adec928_a07b4779","updated":"2014-05-23 08:28:26.000000000","message":"a problem is the base security group is too rich to support for lower level mechanisms like ovs.\nideally there should be a way to reject configuration attempts which requires functionalities unsupported by the underlying implementation.","commit_id":"563691d8e4a33445ec92c0012587d270a43c1c2b"},{"author":{"_account_id":6670,"name":"Amir Sadoughi","email":"amir.sadoughi@rackspace.com","username":"amir-sadoughi"},"change_message_id":"f7d6ac1f70197383a223c91788f91083809371c9","unresolved":false,"context_lines":[{"line_number":91,"context_line":""},{"line_number":92,"context_line":"To solve the lack of source port information, I propose the following"},{"line_number":93,"context_line":"addition to the security groups extension API to allow a match on source port:"},{"line_number":94,"context_line":"—source-port-range-min, —source-port-range-max."},{"line_number":95,"context_line":""},{"line_number":96,"context_line":""},{"line_number":97,"context_line":"3. OVSFirewallDriver implementation"}],"source_content_type":"text/x-rst","patch_set":3,"id":"7adec928_1349c230","line":94,"in_reply_to":"7adec928_ad6e222d","updated":"2014-05-19 16:52:18.000000000","message":"Ah, how should we expose the behavioral differences? It won\u0027t be clear from the API requests what behavior the user expects necessarily. Is it a matter of documentation?","commit_id":"563691d8e4a33445ec92c0012587d270a43c1c2b"},{"author":{"_account_id":6670,"name":"Amir Sadoughi","email":"amir.sadoughi@rackspace.com","username":"amir-sadoughi"},"change_message_id":"a82e2a9b9c37eef7847cb7eb4ddc9f658706ce57","unresolved":false,"context_lines":[{"line_number":91,"context_line":""},{"line_number":92,"context_line":"To solve the lack of source port information, I propose the following"},{"line_number":93,"context_line":"addition to the security groups extension API to allow a match on source port:"},{"line_number":94,"context_line":"—source-port-range-min, —source-port-range-max."},{"line_number":95,"context_line":""},{"line_number":96,"context_line":""},{"line_number":97,"context_line":"3. OVSFirewallDriver implementation"}],"source_content_type":"text/x-rst","patch_set":3,"id":"7adec928_ee9ccf5f","line":94,"in_reply_to":"7adec928_ee712fa9","updated":"2014-05-15 01:45:46.000000000","message":"I hadn\u0027t considered a migration from iptables-based FirewallDriver implementations to the proposed OVSFirewallDriver implementation. That\u0027s a good point for the UDP case.","commit_id":"563691d8e4a33445ec92c0012587d270a43c1c2b"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"ae116dc1d60bf3267d5cc0682185d1885c6d9d17","unresolved":false,"context_lines":[{"line_number":91,"context_line":""},{"line_number":92,"context_line":"To solve the lack of source port information, I propose the following"},{"line_number":93,"context_line":"addition to the security groups extension API to allow a match on source port:"},{"line_number":94,"context_line":"—source-port-range-min, —source-port-range-max."},{"line_number":95,"context_line":""},{"line_number":96,"context_line":""},{"line_number":97,"context_line":"3. OVSFirewallDriver implementation"}],"source_content_type":"text/x-rst","patch_set":3,"id":"7adec928_ad6e222d","line":94,"in_reply_to":"7adec928_ee9ccf5f","updated":"2014-05-19 03:13:01.000000000","message":"my concern is not about a migration.\ngiven the incompatibilities, without knowing which implementation is being used, a user can\u0027t set up rules appropriately.\nand as far as i understand tcp case is not completely compatible with iptables either.\n\nmaking this compatible with iptables sounds like a nearly impossible goal to me.  it\u0027s better to admit differences and tell users so.\neg. raise \"not supported\" error loudly when a user is trying to set up rules which needs egress filtering.  (once we decide to desupport egress filtering, stateless ingress filtering would be easy.)","commit_id":"563691d8e4a33445ec92c0012587d270a43c1c2b"},{"author":{"_account_id":4149,"name":"Itsuro Oda","email":"oda@valinux.co.jp","username":"oda-g"},"change_message_id":"b482d4be8efbddc034aaf399c77c2e0671cd6351","unresolved":false,"context_lines":[{"line_number":100,"context_line":"iptables (neutron/agent/linux/iptables_firewall.py: IptablesFirewallDriver,"},{"line_number":101,"context_line":"OVSHybridIptablesFirewallDriver). This blueprint describes implementing a"},{"line_number":102,"context_line":"FirewallDriver sub-class with Open vSwitch flow programming."},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"* drop all packets by default"},{"line_number":105,"context_line":"* prevent IP spoofing based on port\u0027s mac address (compatible with"},{"line_number":106,"context_line":"  allowed_address_pairs extension)"}],"source_content_type":"text/x-rst","patch_set":3,"id":"7adec928_9d73a3e6","line":103,"updated":"2014-05-13 05:33:11.000000000","message":"This is a part which has not been submitted in Icehouse cycle.\n\nI\u0027d like to examin this function. Do you have a code anywhere ?\nWould you submit the code to gerrit if it exists ?","commit_id":"563691d8e4a33445ec92c0012587d270a43c1c2b"},{"author":{"_account_id":6670,"name":"Amir Sadoughi","email":"amir.sadoughi@rackspace.com","username":"amir-sadoughi"},"change_message_id":"a82e2a9b9c37eef7847cb7eb4ddc9f658706ce57","unresolved":false,"context_lines":[{"line_number":100,"context_line":"iptables (neutron/agent/linux/iptables_firewall.py: IptablesFirewallDriver,"},{"line_number":101,"context_line":"OVSHybridIptablesFirewallDriver). This blueprint describes implementing a"},{"line_number":102,"context_line":"FirewallDriver sub-class with Open vSwitch flow programming."},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"* drop all packets by default"},{"line_number":105,"context_line":"* prevent IP spoofing based on port\u0027s mac address (compatible with"},{"line_number":106,"context_line":"  allowed_address_pairs extension)"}],"source_content_type":"text/x-rst","patch_set":3,"id":"7adec928_6eed1fb7","line":103,"in_reply_to":"7adec928_0e6adbb2","updated":"2014-05-15 01:45:46.000000000","message":"Beyond the discussion of reflexive learned flows vs stateless ACLs, I don\u0027t think flow rule implementations should be discussed as part of the blueprint, but rather the code review.","commit_id":"563691d8e4a33445ec92c0012587d270a43c1c2b"},{"author":{"_account_id":6670,"name":"Amir Sadoughi","email":"amir.sadoughi@rackspace.com","username":"amir-sadoughi"},"change_message_id":"f7d6ac1f70197383a223c91788f91083809371c9","unresolved":false,"context_lines":[{"line_number":100,"context_line":"iptables (neutron/agent/linux/iptables_firewall.py: IptablesFirewallDriver,"},{"line_number":101,"context_line":"OVSHybridIptablesFirewallDriver). This blueprint describes implementing a"},{"line_number":102,"context_line":"FirewallDriver sub-class with Open vSwitch flow programming."},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"* drop all packets by default"},{"line_number":105,"context_line":"* prevent IP spoofing based on port\u0027s mac address (compatible with"},{"line_number":106,"context_line":"  allowed_address_pairs extension)"}],"source_content_type":"text/x-rst","patch_set":3,"id":"7adec928_937a3286","line":103,"in_reply_to":"7adec928_55a8d28c","updated":"2014-05-19 16:52:18.000000000","message":"Right, let\u0027s discuss types of flows, but the not the exact enumeration of flows to be applied.","commit_id":"563691d8e4a33445ec92c0012587d270a43c1c2b"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"38fc0eb61a358f71a4006561f5a502d1afd17eae","unresolved":false,"context_lines":[{"line_number":100,"context_line":"iptables (neutron/agent/linux/iptables_firewall.py: IptablesFirewallDriver,"},{"line_number":101,"context_line":"OVSHybridIptablesFirewallDriver). This blueprint describes implementing a"},{"line_number":102,"context_line":"FirewallDriver sub-class with Open vSwitch flow programming."},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"* drop all packets by default"},{"line_number":105,"context_line":"* prevent IP spoofing based on port\u0027s mac address (compatible with"},{"line_number":106,"context_line":"  allowed_address_pairs extension)"}],"source_content_type":"text/x-rst","patch_set":3,"id":"7adec928_55a8d28c","line":103,"in_reply_to":"7adec928_6eed1fb7","updated":"2014-05-16 21:07:58.000000000","message":"But this should be discussed here because this is essentially a proposal to change what security group rules mean. That\u0027s more than just an implementation detail.","commit_id":"563691d8e4a33445ec92c0012587d270a43c1c2b"},{"author":{"_account_id":6670,"name":"Amir Sadoughi","email":"amir.sadoughi@rackspace.com","username":"amir-sadoughi"},"change_message_id":"453e044a3d529e9f27ca0c04eb340442684bc2c4","unresolved":false,"context_lines":[{"line_number":100,"context_line":"iptables (neutron/agent/linux/iptables_firewall.py: IptablesFirewallDriver,"},{"line_number":101,"context_line":"OVSHybridIptablesFirewallDriver). This blueprint describes implementing a"},{"line_number":102,"context_line":"FirewallDriver sub-class with Open vSwitch flow programming."},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"* drop all packets by default"},{"line_number":105,"context_line":"* prevent IP spoofing based on port\u0027s mac address (compatible with"},{"line_number":106,"context_line":"  allowed_address_pairs extension)"}],"source_content_type":"text/x-rst","patch_set":3,"id":"7adec928_c819d989","line":103,"in_reply_to":"7adec928_9d73a3e6","updated":"2014-05-13 23:58:37.000000000","message":"neutron/agent/firewall.py:FirewallDriver has been in Neutron for a while.  I haven\u0027t pushed any OVSFirewallDriver implementation to Gerrit yet.","commit_id":"563691d8e4a33445ec92c0012587d270a43c1c2b"},{"author":{"_account_id":4149,"name":"Itsuro Oda","email":"oda@valinux.co.jp","username":"oda-g"},"change_message_id":"0875c3b1323c265ed4bd80dd1377bd092597899a","unresolved":false,"context_lines":[{"line_number":100,"context_line":"iptables (neutron/agent/linux/iptables_firewall.py: IptablesFirewallDriver,"},{"line_number":101,"context_line":"OVSHybridIptablesFirewallDriver). This blueprint describes implementing a"},{"line_number":102,"context_line":"FirewallDriver sub-class with Open vSwitch flow programming."},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"* drop all packets by default"},{"line_number":105,"context_line":"* prevent IP spoofing based on port\u0027s mac address (compatible with"},{"line_number":106,"context_line":"  allowed_address_pairs extension)"}],"source_content_type":"text/x-rst","patch_set":3,"id":"7adec928_0b857bcf","line":103,"in_reply_to":"7adec928_c819d989","updated":"2014-05-14 02:06:21.000000000","message":"I know. This is my request to you to push it to Gerrit.","commit_id":"563691d8e4a33445ec92c0012587d270a43c1c2b"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"cebc5d28e75a03333d175b49937e85f778685345","unresolved":false,"context_lines":[{"line_number":100,"context_line":"iptables (neutron/agent/linux/iptables_firewall.py: IptablesFirewallDriver,"},{"line_number":101,"context_line":"OVSHybridIptablesFirewallDriver). This blueprint describes implementing a"},{"line_number":102,"context_line":"FirewallDriver sub-class with Open vSwitch flow programming."},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"* drop all packets by default"},{"line_number":105,"context_line":"* prevent IP spoofing based on port\u0027s mac address (compatible with"},{"line_number":106,"context_line":"  allowed_address_pairs extension)"}],"source_content_type":"text/x-rst","patch_set":3,"id":"7adec928_0e6adbb2","line":103,"in_reply_to":"7adec928_c819d989","updated":"2014-05-14 22:39:06.000000000","message":"can you provide an example of a flow at least?","commit_id":"563691d8e4a33445ec92c0012587d270a43c1c2b"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"cdf9ef0718e3cba3a8373e39b9ad41ffebe37f04","unresolved":false,"context_lines":[{"line_number":139,"context_line":"  initiate a new connection.\""},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"The preferred implementation is \u0027stateless ACLs with tcp_flags\u003dack\u0027 to emulate"},{"line_number":142,"context_line":"stateful behavior (at least in TCP) because reflexive learning is not as performant."},{"line_number":143,"context_line":""},{"line_number":144,"context_line":""},{"line_number":145,"context_line":"3. OVSFirewallDriver implementation"}],"source_content_type":"text/x-rst","patch_set":3,"id":"7adec928_a94476b7","line":142,"updated":"2014-05-15 16:36:13.000000000","message":"This may be preferred for performance, but it\u0027s a security feature loss. Deployers will need to be warned of this because it\u0027s now a stateless ACL, which cannot fully implement the behavior of a stateful firewall. For example, how can you emulate the iptables RELATED keyword for protocols like FTP?","commit_id":"563691d8e4a33445ec92c0012587d270a43c1c2b"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"38fc0eb61a358f71a4006561f5a502d1afd17eae","unresolved":false,"context_lines":[{"line_number":139,"context_line":"  initiate a new connection.\""},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"The preferred implementation is \u0027stateless ACLs with tcp_flags\u003dack\u0027 to emulate"},{"line_number":142,"context_line":"stateful behavior (at least in TCP) because reflexive learning is not as performant."},{"line_number":143,"context_line":""},{"line_number":144,"context_line":""},{"line_number":145,"context_line":"3. OVSFirewallDriver implementation"}],"source_content_type":"text/x-rst","patch_set":3,"id":"7adec928_f5c55e5c","line":142,"in_reply_to":"7adec928_64945343","updated":"2014-05-16 21:07:58.000000000","message":"Well it won\u0027t be stateful for TCP either because of the missing RELATED functionality.","commit_id":"563691d8e4a33445ec92c0012587d270a43c1c2b"},{"author":{"_account_id":6670,"name":"Amir Sadoughi","email":"amir.sadoughi@rackspace.com","username":"amir-sadoughi"},"change_message_id":"2d71c66ce2f3619b72949b5f008cae9ca0fae0e1","unresolved":false,"context_lines":[{"line_number":139,"context_line":"  initiate a new connection.\""},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"The preferred implementation is \u0027stateless ACLs with tcp_flags\u003dack\u0027 to emulate"},{"line_number":142,"context_line":"stateful behavior (at least in TCP) because reflexive learning is not as performant."},{"line_number":143,"context_line":""},{"line_number":144,"context_line":""},{"line_number":145,"context_line":"3. OVSFirewallDriver implementation"}],"source_content_type":"text/x-rst","patch_set":3,"id":"7adec928_64945343","line":142,"in_reply_to":"7adec928_a94476b7","updated":"2014-05-16 15:15:48.000000000","message":"Right, I agree, this needs to be well-documented that it\u0027s no longer a stateful firewall for the UDP case. OVS today doesn\u0027t have a way to emulate the iptables RELATED state.","commit_id":"563691d8e4a33445ec92c0012587d270a43c1c2b"},{"author":{"_account_id":2031,"name":"Nachi Ueno","email":"nati.ueno@gmail.com","username":"nati-ueno"},"change_message_id":"94276a5b9100fa8e615be3c623526b410173d77b","unresolved":false,"context_lines":[{"line_number":162,"context_line":"APIChangeGuidelines[3], this change would fall under \"Adding an optional"},{"line_number":163,"context_line":"property to a resource representation which may be supplied by clients,"},{"line_number":164,"context_line":"assuming the API previously would ignore this property\"."},{"line_number":165,"context_line":""},{"line_number":166,"context_line":""},{"line_number":167,"context_line":"Security impact"},{"line_number":168,"context_line":"---------------"}],"source_content_type":"text/x-rst","patch_set":3,"id":"7adec928_f6723648","line":165,"updated":"2014-05-22 00:30:58.000000000","message":"IMO, this API change should have an separate BP","commit_id":"563691d8e4a33445ec92c0012587d270a43c1c2b"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"216e50a955287e3f93c7514774bc6250b1fa34a8","unresolved":false,"context_lines":[{"line_number":162,"context_line":"APIChangeGuidelines[3], this change would fall under \"Adding an optional"},{"line_number":163,"context_line":"property to a resource representation which may be supplied by clients,"},{"line_number":164,"context_line":"assuming the API previously would ignore this property\"."},{"line_number":165,"context_line":""},{"line_number":166,"context_line":""},{"line_number":167,"context_line":"Security impact"},{"line_number":168,"context_line":"---------------"}],"source_content_type":"text/x-rst","patch_set":3,"id":"7adec928_442b09eb","line":165,"in_reply_to":"7adec928_f6723648","updated":"2014-05-23 06:05:36.000000000","message":"+1","commit_id":"563691d8e4a33445ec92c0012587d270a43c1c2b"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"cdf9ef0718e3cba3a8373e39b9ad41ffebe37f04","unresolved":false,"context_lines":[{"line_number":165,"context_line":""},{"line_number":166,"context_line":""},{"line_number":167,"context_line":"Security impact"},{"line_number":168,"context_line":"---------------"},{"line_number":169,"context_line":"Security group rules can now be programmed through the API as OVS flows."},{"line_number":170,"context_line":""},{"line_number":171,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"7adec928_291066a7","line":168,"updated":"2014-05-15 16:36:13.000000000","message":"Loss of stateful firewall functionality.","commit_id":"563691d8e4a33445ec92c0012587d270a43c1c2b"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"9366443c438b703d367ba09be9fc59bc9584e02d","unresolved":false,"context_lines":[{"line_number":50,"context_line":""},{"line_number":51,"context_line":"* OVS crashes"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"  See https://bugs.launchpad.net/neutron/+bug/1290486"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"* Agent removes a VIF\u0027s flows on port_bound"},{"line_number":56,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"1ae5cdf2_e5bc7708","line":53,"updated":"2014-06-06 11:03:03.000000000","message":"What will be done related to this?","commit_id":"7bdac654a6c62d3c945b813875aa46e45e39fef5"},{"author":{"_account_id":6670,"name":"Amir Sadoughi","email":"amir.sadoughi@rackspace.com","username":"amir-sadoughi"},"change_message_id":"65bfba704bc39be565d7799581d49077efefcaa3","unresolved":false,"context_lines":[{"line_number":50,"context_line":""},{"line_number":51,"context_line":"* OVS crashes"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"  See https://bugs.launchpad.net/neutron/+bug/1290486"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"* Agent removes a VIF\u0027s flows on port_bound"},{"line_number":56,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"1ae5cdf2_39ec7ff3","line":53,"in_reply_to":"1ae5cdf2_e5bc7708","updated":"2014-06-09 20:35:51.000000000","message":"Follow the bug for updates.","commit_id":"7bdac654a6c62d3c945b813875aa46e45e39fef5"},{"author":{"_account_id":11785,"name":"henry.hly","email":"henry4hly@gmail.com","username":"hly"},"change_message_id":"60e73f5b1f545583742e192d88c1b91989c4f5bd","unresolved":false,"context_lines":[{"line_number":62,"context_line":"  separate, distinct cookie on flows that belong to the agent. This will"},{"line_number":63,"context_line":"  require OVS version 1.5.0+ to delete flows based on a cookie (current version"},{"line_number":64,"context_line":"  in XenServer 6.2 and Ubuntu P/Q-release is 1.4.6)."},{"line_number":65,"context_line":""},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"2. Extension of security groups extension"},{"line_number":68,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"1ae5cdf2_d2021209","line":65,"updated":"2014-06-06 03:15:53.000000000","message":"If we put all the sg firewall rules in a separate ovs bridge(just like qbr in ovs hybrid model), may we avoid some of these problems? At least, it looks clearer and easier for programming and debugging\n\nSome of other BP like DVR is also programming br-int, I\u0027m afraid that adding more and more rules to a single br-int bridge will make it so complex and out of control.","commit_id":"7bdac654a6c62d3c945b813875aa46e45e39fef5"},{"author":{"_account_id":6670,"name":"Amir Sadoughi","email":"amir.sadoughi@rackspace.com","username":"amir-sadoughi"},"change_message_id":"65bfba704bc39be565d7799581d49077efefcaa3","unresolved":false,"context_lines":[{"line_number":62,"context_line":"  separate, distinct cookie on flows that belong to the agent. This will"},{"line_number":63,"context_line":"  require OVS version 1.5.0+ to delete flows based on a cookie (current version"},{"line_number":64,"context_line":"  in XenServer 6.2 and Ubuntu P/Q-release is 1.4.6)."},{"line_number":65,"context_line":""},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"2. Extension of security groups extension"},{"line_number":68,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"1ae5cdf2_1c1df166","line":65,"in_reply_to":"1ae5cdf2_65f22707","updated":"2014-06-09 20:35:51.000000000","message":"I\u0027m pursuing a multiple table based implementation currently. Regarding separate bridges, port security (i.e. matching MAC address, OpenFlow port, and IP address) would have to have flows programmed on the integration bridge, where the vif is plugged into. I imagine security flows above that could be programmed on another bridge. Vishal Thapar was experimenting with such an implementation.","commit_id":"7bdac654a6c62d3c945b813875aa46e45e39fef5"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"9366443c438b703d367ba09be9fc59bc9584e02d","unresolved":false,"context_lines":[{"line_number":62,"context_line":"  separate, distinct cookie on flows that belong to the agent. This will"},{"line_number":63,"context_line":"  require OVS version 1.5.0+ to delete flows based on a cookie (current version"},{"line_number":64,"context_line":"  in XenServer 6.2 and Ubuntu P/Q-release is 1.4.6)."},{"line_number":65,"context_line":""},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"2. Extension of security groups extension"},{"line_number":68,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"1ae5cdf2_65f22707","line":65,"in_reply_to":"1ae5cdf2_d2021209","updated":"2014-06-06 11:03:03.000000000","message":"Or using dedicated table.","commit_id":"7bdac654a6c62d3c945b813875aa46e45e39fef5"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"9366443c438b703d367ba09be9fc59bc9584e02d","unresolved":false,"context_lines":[{"line_number":101,"context_line":""},{"line_number":102,"context_line":"To solve the lack of source port information, I propose the following"},{"line_number":103,"context_line":"addition to the security groups extension API to allow a match on source port:"},{"line_number":104,"context_line":"—source-port-range-min, —source-port-range-max."},{"line_number":105,"context_line":""},{"line_number":106,"context_line":""},{"line_number":107,"context_line":"3. OVSFirewallDriver implementation"}],"source_content_type":"text/x-rst","patch_set":5,"id":"1ae5cdf2_859bb364","line":104,"updated":"2014-06-06 11:03:03.000000000","message":"Does this apply to only UDP?","commit_id":"7bdac654a6c62d3c945b813875aa46e45e39fef5"},{"author":{"_account_id":6670,"name":"Amir Sadoughi","email":"amir.sadoughi@rackspace.com","username":"amir-sadoughi"},"change_message_id":"65bfba704bc39be565d7799581d49077efefcaa3","unresolved":false,"context_lines":[{"line_number":101,"context_line":""},{"line_number":102,"context_line":"To solve the lack of source port information, I propose the following"},{"line_number":103,"context_line":"addition to the security groups extension API to allow a match on source port:"},{"line_number":104,"context_line":"—source-port-range-min, —source-port-range-max."},{"line_number":105,"context_line":""},{"line_number":106,"context_line":""},{"line_number":107,"context_line":"3. OVSFirewallDriver implementation"}],"source_content_type":"text/x-rst","patch_set":5,"id":"1ae5cdf2_fc34c5e0","line":104,"in_reply_to":"1ae5cdf2_859bb364","updated":"2014-06-09 20:35:51.000000000","message":"This would affect any non-TCP flows (i.e. UDP and ICMP).","commit_id":"7bdac654a6c62d3c945b813875aa46e45e39fef5"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"9366443c438b703d367ba09be9fc59bc9584e02d","unresolved":false,"context_lines":[{"line_number":114,"context_line":"* drop all packets by default"},{"line_number":115,"context_line":"* prevent IP spoofing based on port\u0027s mac address (compatible with"},{"line_number":116,"context_line":"  allowed_address_pairs extension)"},{"line_number":117,"context_line":"* handles ARP, DHCP, ICMPv6 RA"},{"line_number":118,"context_line":"* convert security group rules to OVS flows (IPv4, IPv6, TCP, UDP, ICMP,"},{"line_number":119,"context_line":"  ICMPv6)"},{"line_number":120,"context_line":"* single TCP/UDP port per OVS flow"}],"source_content_type":"text/x-rst","patch_set":5,"id":"1ae5cdf2_9815d641","line":117,"updated":"2014-06-06 11:03:03.000000000","message":"How will ARP be handled? ovs agent has already arp responder which is implemented by openflow.\n\nWhat will DHCP be handled?\nOpenflow doesn\u0027t manipulate dhcp payload. So packet_in hand handle it? or run daemon locally and resend to it?","commit_id":"7bdac654a6c62d3c945b813875aa46e45e39fef5"},{"author":{"_account_id":6670,"name":"Amir Sadoughi","email":"amir.sadoughi@rackspace.com","username":"amir-sadoughi"},"change_message_id":"65bfba704bc39be565d7799581d49077efefcaa3","unresolved":false,"context_lines":[{"line_number":114,"context_line":"* drop all packets by default"},{"line_number":115,"context_line":"* prevent IP spoofing based on port\u0027s mac address (compatible with"},{"line_number":116,"context_line":"  allowed_address_pairs extension)"},{"line_number":117,"context_line":"* handles ARP, DHCP, ICMPv6 RA"},{"line_number":118,"context_line":"* convert security group rules to OVS flows (IPv4, IPv6, TCP, UDP, ICMP,"},{"line_number":119,"context_line":"  ICMPv6)"},{"line_number":120,"context_line":"* single TCP/UDP port per OVS flow"}],"source_content_type":"text/x-rst","patch_set":5,"id":"1ae5cdf2_5cd3f937","line":117,"in_reply_to":"1ae5cdf2_9815d641","updated":"2014-06-09 20:35:51.000000000","message":"I\u0027m not sure if the ARP responder has any conflicts with security groups as it programs flows on the tunnel bridge.\n\n\nI\u0027m not sure what you\u0027re asking about DHCP. The iptables-based FirewallDriver drops DHCP by default. That\u0027s what I intend to emulate as well.","commit_id":"7bdac654a6c62d3c945b813875aa46e45e39fef5"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"42c3421d6ab1379737a6d9f2b968cfa7d783fa77","unresolved":false,"context_lines":[{"line_number":123,"context_line":"4. Connection-tracking security group rules validation"},{"line_number":124,"context_line":""},{"line_number":125,"context_line":"At the neutron-server level, we\u0027ll add a configuration flag,"},{"line_number":126,"context_line":"enable_connection_tracking, to validate the difference between security group"},{"line_number":127,"context_line":"rules that require a connection tracking firewall versus those that do not."},{"line_number":128,"context_line":"Based on the flag we will reject the user\u0027s input if the speficied security"},{"line_number":129,"context_line":"group rule requires connection tracking and the flag is disabled."}],"source_content_type":"text/x-rst","patch_set":5,"id":"3ae8d1ca_8da0dc44","line":126,"range":{"start_line":126,"start_character":0,"end_line":126,"end_character":26},"updated":"2014-05-29 03:01:34.000000000","message":"please make this more than a boolean so that other firewall drivers can use the same mechanism rather than introducing their own.","commit_id":"7bdac654a6c62d3c945b813875aa46e45e39fef5"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"52b60c76fb5b428e9a47bdce54eee91475aae14d","unresolved":false,"context_lines":[{"line_number":123,"context_line":"4. Connection-tracking security group rules validation"},{"line_number":124,"context_line":""},{"line_number":125,"context_line":"At the neutron-server level, we\u0027ll add a configuration flag,"},{"line_number":126,"context_line":"enable_connection_tracking, to validate the difference between security group"},{"line_number":127,"context_line":"rules that require a connection tracking firewall versus those that do not."},{"line_number":128,"context_line":"Based on the flag we will reject the user\u0027s input if the speficied security"},{"line_number":129,"context_line":"group rule requires connection tracking and the flag is disabled."}],"source_content_type":"text/x-rst","patch_set":5,"id":"1ae5cdf2_1208752c","line":126,"in_reply_to":"1ae5cdf2_48519261","updated":"2014-06-02 05:42:02.000000000","message":"it\u0027s what i mentioned.  isn\u0027t it relevant?","commit_id":"7bdac654a6c62d3c945b813875aa46e45e39fef5"},{"author":{"_account_id":6670,"name":"Amir Sadoughi","email":"amir.sadoughi@rackspace.com","username":"amir-sadoughi"},"change_message_id":"14eadf993f9ebd816c9ba17eb67ba53126d6ed0a","unresolved":false,"context_lines":[{"line_number":123,"context_line":"4. Connection-tracking security group rules validation"},{"line_number":124,"context_line":""},{"line_number":125,"context_line":"At the neutron-server level, we\u0027ll add a configuration flag,"},{"line_number":126,"context_line":"enable_connection_tracking, to validate the difference between security group"},{"line_number":127,"context_line":"rules that require a connection tracking firewall versus those that do not."},{"line_number":128,"context_line":"Based on the flag we will reject the user\u0027s input if the speficied security"},{"line_number":129,"context_line":"group rule requires connection tracking and the flag is disabled."}],"source_content_type":"text/x-rst","patch_set":5,"id":"1ae5cdf2_48519261","line":126,"in_reply_to":"1ae5cdf2_ce3ea629","updated":"2014-05-30 19:35:51.000000000","message":"Do you have a link? I found this[0], but I don\u0027t think it\u0027s relevant.\n\n[0] http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_SecurityGroups.html#VPC_Security_Group_Differences","commit_id":"7bdac654a6c62d3c945b813875aa46e45e39fef5"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"2f0ac5932020eb88e466913a39a4b24b9a7e7c46","unresolved":false,"context_lines":[{"line_number":123,"context_line":"4. Connection-tracking security group rules validation"},{"line_number":124,"context_line":""},{"line_number":125,"context_line":"At the neutron-server level, we\u0027ll add a configuration flag,"},{"line_number":126,"context_line":"enable_connection_tracking, to validate the difference between security group"},{"line_number":127,"context_line":"rules that require a connection tracking firewall versus those that do not."},{"line_number":128,"context_line":"Based on the flag we will reject the user\u0027s input if the speficied security"},{"line_number":129,"context_line":"group rule requires connection tracking and the flag is disabled."}],"source_content_type":"text/x-rst","patch_set":5,"id":"1ae5cdf2_ce3ea629","line":126,"in_reply_to":"3ae8d1ca_0d9bd367","updated":"2014-05-30 07:23:26.000000000","message":"i\u0027ve heard that amazon ec2 has two variants of security groups with different set of features.\n(\"classic\" and \"vpc\")\nprobably we can learn from it?","commit_id":"7bdac654a6c62d3c945b813875aa46e45e39fef5"},{"author":{"_account_id":6670,"name":"Amir Sadoughi","email":"amir.sadoughi@rackspace.com","username":"amir-sadoughi"},"change_message_id":"ed9c082e2afaeb659f7a5e91517911158d94b0e1","unresolved":false,"context_lines":[{"line_number":123,"context_line":"4. Connection-tracking security group rules validation"},{"line_number":124,"context_line":""},{"line_number":125,"context_line":"At the neutron-server level, we\u0027ll add a configuration flag,"},{"line_number":126,"context_line":"enable_connection_tracking, to validate the difference between security group"},{"line_number":127,"context_line":"rules that require a connection tracking firewall versus those that do not."},{"line_number":128,"context_line":"Based on the flag we will reject the user\u0027s input if the speficied security"},{"line_number":129,"context_line":"group rule requires connection tracking and the flag is disabled."}],"source_content_type":"text/x-rst","patch_set":5,"id":"3ae8d1ca_0d9bd367","line":126,"in_reply_to":"3ae8d1ca_8da0dc44","updated":"2014-05-29 17:09:35.000000000","message":"Sure. This parameter can be an exact list of firewall features, where the values are strings which are pre-defined and documented. i.e. \"enable_firewall_features \u003d connection_tracking\". How does that sound?","commit_id":"7bdac654a6c62d3c945b813875aa46e45e39fef5"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"8ae969ef1858d0aad5e57c2d390977fd8ac91a05","unresolved":false,"context_lines":[{"line_number":127,"context_line":"rules that require a connection tracking firewall versus those that do not."},{"line_number":128,"context_line":"Based on the flag we will reject the user\u0027s input if the speficied security"},{"line_number":129,"context_line":"group rule requires connection tracking and the flag is disabled."},{"line_number":130,"context_line":""},{"line_number":131,"context_line":""},{"line_number":132,"context_line":"Alternatives"},{"line_number":133,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":5,"id":"3ae8d1ca_419cdbc0","line":130,"updated":"2014-05-29 05:52:17.000000000","message":"Will there be a way to query neutron to determine what type of security group rules are expected? I suspect we will need something like this so GUI\u0027s (e.g. horizon) can display the correct input form.","commit_id":"7bdac654a6c62d3c945b813875aa46e45e39fef5"},{"author":{"_account_id":6670,"name":"Amir Sadoughi","email":"amir.sadoughi@rackspace.com","username":"amir-sadoughi"},"change_message_id":"ed9c082e2afaeb659f7a5e91517911158d94b0e1","unresolved":false,"context_lines":[{"line_number":127,"context_line":"rules that require a connection tracking firewall versus those that do not."},{"line_number":128,"context_line":"Based on the flag we will reject the user\u0027s input if the speficied security"},{"line_number":129,"context_line":"group rule requires connection tracking and the flag is disabled."},{"line_number":130,"context_line":""},{"line_number":131,"context_line":""},{"line_number":132,"context_line":"Alternatives"},{"line_number":133,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":5,"id":"3ae8d1ca_6dca976f","line":130,"in_reply_to":"3ae8d1ca_419cdbc0","updated":"2014-05-29 17:09:35.000000000","message":"No, the API request will look the same regardless of the type.","commit_id":"7bdac654a6c62d3c945b813875aa46e45e39fef5"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"475db54b95504abcb8f2bce6392b15cdc4a6e6b3","unresolved":false,"context_lines":[{"line_number":127,"context_line":"rules that require a connection tracking firewall versus those that do not."},{"line_number":128,"context_line":"Based on the flag we will reject the user\u0027s input if the speficied security"},{"line_number":129,"context_line":"group rule requires connection tracking and the flag is disabled."},{"line_number":130,"context_line":""},{"line_number":131,"context_line":""},{"line_number":132,"context_line":"Alternatives"},{"line_number":133,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":5,"id":"3ae8d1ca_90e8d611","line":130,"in_reply_to":"3ae8d1ca_6dca976f","updated":"2014-05-29 17:29:52.000000000","message":"What\u0027s the intended way to communicate to the users the behavior of the security groups so they can configure them correctly?","commit_id":"7bdac654a6c62d3c945b813875aa46e45e39fef5"},{"author":{"_account_id":6670,"name":"Amir Sadoughi","email":"amir.sadoughi@rackspace.com","username":"amir-sadoughi"},"change_message_id":"2eef9e53db26d27fd1075c68f95f0b11c076e1ec","unresolved":false,"context_lines":[{"line_number":127,"context_line":"rules that require a connection tracking firewall versus those that do not."},{"line_number":128,"context_line":"Based on the flag we will reject the user\u0027s input if the speficied security"},{"line_number":129,"context_line":"group rule requires connection tracking and the flag is disabled."},{"line_number":130,"context_line":""},{"line_number":131,"context_line":""},{"line_number":132,"context_line":"Alternatives"},{"line_number":133,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":5,"id":"1ae5cdf2_db1f53b6","line":130,"in_reply_to":"3ae8d1ca_90e8d611","updated":"2014-05-29 20:52:43.000000000","message":"Cloud operators will have the appropriate documentation for enabled firewall features to provide their end users. In addition, the API response will notify the user of invalid input for the configured firewall features.","commit_id":"7bdac654a6c62d3c945b813875aa46e45e39fef5"},{"author":{"_account_id":11785,"name":"henry.hly","email":"henry4hly@gmail.com","username":"hly"},"change_message_id":"60e73f5b1f545583742e192d88c1b91989c4f5bd","unresolved":false,"context_lines":[{"line_number":221,"context_line":"implementation is available. We\u0027d expect the OVSFirewallDriver to be more"},{"line_number":222,"context_line":"performant than the OVSHybridIptablesFirewallDriver due to the lack of an"},{"line_number":223,"context_line":"extra bridge."},{"line_number":224,"context_line":""},{"line_number":225,"context_line":""},{"line_number":226,"context_line":"Other deployer impact"},{"line_number":227,"context_line":"---------------------"}],"source_content_type":"text/x-rst","patch_set":5,"id":"1ae5cdf2_32b7b6f6","line":224,"updated":"2014-06-06 03:15:53.000000000","message":"It\u0027s a trade off between datapath and controll path. we have some very basic testing in ovs 2.1:\n\nNative OVS ACL rule is more efficient in datapath, but when our nginx server guest VM received huge concurrent tcp connections, vswitchd daemon stopped working. \n\nIptable hooked qbr will cause a 50% performance decrease in UDP, while TCP show less difference (depending on the http requesting object size, larger is more efficient). But for huge connections setup, the OVS works well.\n\nFor the fastpath-slowpath desing of OVS, any L3/L4 flow may cause the OVS behavior unpredictable.(concurrent connections)","commit_id":"7bdac654a6c62d3c945b813875aa46e45e39fef5"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"9366443c438b703d367ba09be9fc59bc9584e02d","unresolved":false,"context_lines":[{"line_number":221,"context_line":"implementation is available. We\u0027d expect the OVSFirewallDriver to be more"},{"line_number":222,"context_line":"performant than the OVSHybridIptablesFirewallDriver due to the lack of an"},{"line_number":223,"context_line":"extra bridge."},{"line_number":224,"context_line":""},{"line_number":225,"context_line":""},{"line_number":226,"context_line":"Other deployer impact"},{"line_number":227,"context_line":"---------------------"}],"source_content_type":"text/x-rst","patch_set":5,"id":"1ae5cdf2_785acaf2","line":224,"updated":"2014-06-06 11:03:03.000000000","message":"What about re-startup time?\nMaybe this will be address by soft-restart BP, though.","commit_id":"7bdac654a6c62d3c945b813875aa46e45e39fef5"},{"author":{"_account_id":11785,"name":"henry.hly","email":"henry4hly@gmail.com","username":"hly"},"change_message_id":"45f0368c352fc6cfe4a1aa08894e6b4217695991","unresolved":false,"context_lines":[{"line_number":221,"context_line":"implementation is available. We\u0027d expect the OVSFirewallDriver to be more"},{"line_number":222,"context_line":"performant than the OVSHybridIptablesFirewallDriver due to the lack of an"},{"line_number":223,"context_line":"extra bridge."},{"line_number":224,"context_line":""},{"line_number":225,"context_line":""},{"line_number":226,"context_line":"Other deployer impact"},{"line_number":227,"context_line":"---------------------"}],"source_content_type":"text/x-rst","patch_set":5,"id":"1ae5cdf2_75d36338","line":224,"in_reply_to":"1ae5cdf2_785acaf2","updated":"2014-06-10 01:00:54.000000000","message":"I think OVS implementation has more impact on re-starup than iptable, because rebuilding huge amount of cached flows in kernel datapath need to bother the user land vswitchd.It will be better if OVS can hook iptable itself.","commit_id":"7bdac654a6c62d3c945b813875aa46e45e39fef5"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"ea49cc75ddbdb9f51c183e6b132fc499b1c4c291","unresolved":false,"context_lines":[{"line_number":160,"context_line":"  initiate a new connection.\""},{"line_number":161,"context_line":""},{"line_number":162,"context_line":"The preferred implementation is \u0027stateless ACLs with tcp_flags\u003dack\u0027 to emulate"},{"line_number":163,"context_line":"stateful behavior (at least in TCP) because reflexive learning is not as performant."},{"line_number":164,"context_line":""},{"line_number":165,"context_line":""},{"line_number":166,"context_line":"3. OVSFirewallDriver implementation"}],"source_content_type":"text/x-rst","patch_set":6,"id":"baada198_b0185377","line":163,"updated":"2014-07-25 06:29:56.000000000","message":"i realise this has been retargeted to k but using reflexive learning would allow the driver to also support usersapce versions of openvswitch ie the netdev and netdev-dpdk datapath and also the intel (R) dpdk vswitch\n\nat present i am working to add support for dpdk userspace vhost into openstack via a new vif type. orginally we had hoped to extend vif_ovs to support this feature but as a new vif  would now be added perhaps the firewall driver could be extended to use reflexive learning when VIF_TYPE_VHOST_CUSE is used. this would allow use of the firwall driver with the hightroughput dpdk accelerated datapaths as connection tracking will not be available.\n\nwhile some of the performance gains of the dpdk datapaths might be mitigated by reflexive learning my intuition is that it would still be more performant then the kernel datapath and connection tracking however this is just speculation on my part.\n\ndo you have metrics for the perfomance impact of useing reflexive learing?","commit_id":"53807916a55a44290b43bb29a46dae26c04a6abe"},{"author":{"_account_id":105,"name":"Kyle Mestery","email":"mestery@mestery.com","username":"mestery"},"change_message_id":"8fbe4e163db838f3167bcc510dd5daa18d1df101","unresolved":false,"context_lines":[{"line_number":229,"context_line":""},{"line_number":230,"context_line":"Other deployer impact"},{"line_number":231,"context_line":"---------------------"},{"line_number":232,"context_line":"* A new firewall_driver option will be available, OVSFirewallDriver."},{"line_number":233,"context_line":"* a new flag to enable connection tracking security group rule validation,"},{"line_number":234,"context_line":"  enable_connection_tracking."},{"line_number":235,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"1ae5cdf2_b1e3bba2","line":232,"updated":"2014-06-13 02:19:37.000000000","message":"Do we want to make mention this will be marked as \"experimental\" for Juno?","commit_id":"53807916a55a44290b43bb29a46dae26c04a6abe"}]}
