相关配置¶
- network_api_class - 设置 network 模块所用的api
nova.network.api.API
- 通过rpc与nova-network交互nova.network.neutronv2.API
- 通过http与neutron-server交互
- security_group_api - 设置 security group 模块所用的api类
nova
(nova.compute.api.SecurityGroupAPI
) - 通过rcp与nova-compute交互neutron
(nova.network.security_group.neutron_driver.SecurityGroupAPI
) - 通过http与neutron-server交互
- linuxnet_interface_driver - 在机器与 ethernet interface plug&unplug时调用 。
nova.network.linux_net.LinuxBridgeInterfaceDriver
- used in nova-networknova.network.linux_net.linuxOVSInterfaceDriver
- use in neutron + ml2 + ovsnova.network.linux_net.NeutronLinuxBridgeInterfaceDriver
- use in neutron + ml2 + linuxbridge
- firewall_driver - 虚拟化层所用的 firewall。在nova-network时代,security group由iptables和ebtables实现。在neutron时代,这个已经不需要了。但是neutron里现在还有arp-spoofing的bug, 参见[2]
nova.virt.firewall.IptablesFirewallDrive
-nova.virt.firewall.NoopFirewallDriver
使用组合:¶
nova-network + libvirt
nova_api_class=nova.network.api.API
security_group_ap=nova
linuxnet_interface_driver=nova.network.linux_net.LinuxBridgeInterfaceDriver
firewall_driver=nova.virt.firewall.IptablesFirewallDrive
neutron + ml2 + linuxbridge plugin + libvirt
nova_api_class=nova.network.neutronv2.API
security_group_ap=neutron
linuxnet_interface_driver=nova.network.linux_net.NeutronLinuxBridgeInterfaceDriver
firewall_driver=nova.virt.firewall.NoopFirewallDriver
neutron + ml2 + ovs plugin + libvirt
nova_api_class=nova.network.neutronv2.API
security_group_ap=neutron
linuxnet_interface_driver=nova.network.linux_net.linuxOVSInterfaceDriver
firewall_driver=nova.virt.firewall.NoopFirewallDriver
REF¶
- ebtables in Openstack Nova - nwfilter explaination
- Preventing ARP spoofing via ebtables - Neutron BP for preventing arp snoofing. Expected in Kilo
原始链接:http://xcodest.me/nova-security-groupxiang-guan-pei-zhi.html
许可协议:"署名-非商用-相同方式共享 3.0" 转载请保留原文链接及作者。
Comments