7554226ccaaa359154841d4298890806f01b0957
[groupbasedpolicy.git] / demos / gbp-devstack / devstack-scripts / tutorial / exampleSecurityGroups.sh
1 neutron security-group-create web_sg
2 neutron security-group-rule-create web_sg --direction ingress --protocol tcp --port-range-min 80 --port-range-max 80
3 neutron security-group-rule-create web_sg --direction egress --ethertype IPv4
4 neutron security-group-create secured_web_sg
5 neutron security-group-rule-create secured_web_sg --direction ingress --protocol tcp --port-range-min 443 --port-range-max 443
6 neutron security-group-rule-create secured_web_sg --direction egress --ethertype IPv4
7 neutron security-group-create client_sg
8 neutron security-group-rule-create client_sg --direction egress --protocol tcp --port-range-min 80 --port-range-max 80
9 neutron security-group-rule-create client_sg --direction egress --protocol tcp --port-range-min 443 --port-range-max 443
10 neutron security-group-rule-create client_sg --direction ingress --ethertype IPv4
11
12
13 neutron net-create net1
14 neutron subnet-create net1 10.1.1.0/24 --name sub1 --gateway 10.1.1.1
15 neutron net-create net2
16 neutron subnet-create net2 20.1.1.0/24 --name sub2 --gateway 20.1.1.1
17
18 novaboot.sh net1 client_sg
19 novaboot.sh net1 web_sg
20 novaboot.sh net1 secured_web_sg
21