Skip to content

Instantly share code, notes, and snippets.

@zh-f
Forked from jriguera/segurity_group_rules.sh
Created May 15, 2018 03:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zh-f/170f1ea45bc9163f1ddc0ad87e9faca3 to your computer and use it in GitHub Desktop.
Save zh-f/170f1ea45bc9163f1ddc0ad87e9faca3 to your computer and use it in GitHub Desktop.
Neutron cmd to add security group rules
# Add Neutron security groups for ping and ssh
neutron security-group-rule-create \
--protocol icmp \
--direction ingress \
--remote-ip-prefix 0.0.0.0/0 \
default
neutron security-group-rule-create \
--protocol tcp \
--port-range-min 22 \
--port-range-max 22 \
--direction ingress \
--remote-ip-prefix 0.0.0.0/0 \
default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment