Skip to content

Instantly share code, notes, and snippets.

@qushot
Created September 11, 2017 07:33
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 qushot/8ab70a35157e0b466df1b94933b7a6d1 to your computer and use it in GitHub Desktop.
Save qushot/8ab70a35157e0b466df1b94933b7a6d1 to your computer and use it in GitHub Desktop.
検証1で使用するファイアウォールルール設定スクリプト
#!/bin/sh
# 検証1で使用
# Project set for Cloud SDK
PROJECT_ID=YOUR_PROJECT_ID
gcloud config set project $PROJECT_ID
# default update
gcloud beta app firewall-rules update default \
--action=allow
# instance-a deny
gcloud beta app firewall-rules create 1 \
--action=deny \
--source-range='35.187.194.104' \
--description='default -> allow, instance-a -> deny'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment