Skip to content

Instantly share code, notes, and snippets.

@gertd
Created September 25, 2016 00:01
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 gertd/e77c2a5f9896584109b8dee0cb98c46d to your computer and use it in GitHub Desktop.
Save gertd/e77c2a5f9896584109b8dee0cb98c46d to your computer and use it in GitHub Desktop.
#!/bin/bash
cat > ./internal-sc.json <<EOL
[
{
"protocol": "all",
"destination": "172.16.0.0/16"
}
]
EOL
cf create-security-group all-internal internal-sc.json
cf bind-running-security-group all-internal
cf bind-staging-security-group all-internal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment