在 Manus 中运行任何 Skill
一键导入
一键导入
一键在 Manus 中运行任何 Skill
开始使用gcp-firewall
星标10
分支4
更新时间2026年2月1日 08:28
GCP 방화벽 규칙 관리
安装
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
SKILL.md
readonly菜单
GCP 방화벽 규칙 관리
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
GCP 알림 정책 설정 (비용/에러/성능)
GCP 결제 계정 목록
GCP 결제 계정 프로젝트 목록
GCP Billing 조회
GCP 리소스 정리 (Read-Only 스캔)
GCP Cloud Run 서비스 배포/관리
| name | gcp-firewall |
| description | GCP 방화벽 규칙 관리 |
VPC 방화벽 규칙을 조회, 생성, 관리합니다.
/gcp-firewall # 규칙 목록 조회
/gcp-firewall allow 8080 # TCP 8080 허용 규칙 생성
/gcp-firewall allow 80,443 # 여러 포트 허용
/gcp-firewall delete my-rule # 규칙 삭제
PROJECT_ID=$(gcloud config get-value project)
gcloud compute firewall-rules list --project=$PROJECT_ID \
--format="table(name,network.basename(),direction,priority,allowed[].map().firewall_rule().list():label=ALLOW,sourceRanges.list():label=SRC_RANGES,targetTags.list():label=TARGET_TAGS)"
gcloud compute firewall-rules describe RULE_NAME
gcloud compute firewall-rules create allow-http \
--direction=INGRESS \
--priority=1000 \
--network=default \
--action=ALLOW \
--rules=tcp:80 \
--source-ranges=0.0.0.0/0 \
--target-tags=http-server
gcloud compute firewall-rules create allow-custom-port \
--direction=INGRESS \
--priority=1000 \
--network=default \
--action=ALLOW \
--rules=tcp:8080 \
--source-ranges=0.0.0.0/0 \
--target-tags=custom-server
gcloud compute firewall-rules create allow-ssh-office \
--direction=INGRESS \
--priority=900 \
--network=default \
--action=ALLOW \
--rules=tcp:22 \
--source-ranges=1.2.3.4/32 \
--target-tags=ssh-allowed
gcloud compute instances add-tags VM_NAME \
--zone=ZONE \
--tags=http-server,custom-server
gcloud compute firewall-rules delete RULE_NAME
| 용도 | 포트 | 명령어 |
|---|---|---|
| HTTP | 80 | --rules=tcp:80 --target-tags=http-server |
| HTTPS | 443 | --rules=tcp:443 --target-tags=https-server |
| SSH | 22 | --rules=tcp:22 --target-tags=ssh-allowed |
| MySQL | 3306 | --rules=tcp:3306 --target-tags=db-server |
| PostgreSQL | 5432 | --rules=tcp:5432 --target-tags=db-server |
| Redis | 6379 | --rules=tcp:6379 --target-tags=cache-server |
| Node.js | 3000 | --rules=tcp:3000 --target-tags=node-server |
| Flask/Django | 5000,8000 | --rules=tcp:5000,tcp:8000 |
## 방화벽 규칙 목록
| 규칙 이름 | 방향 | 허용 | 소스 | 대상 태그 |
|-----------|------|------|------|-----------|
| default-allow-ssh | INGRESS | tcp:22 | 0.0.0.0/0 | - |
| default-allow-http | INGRESS | tcp:80 | 0.0.0.0/0 | http-server |
| allow-custom | INGRESS | tcp:8080 | 0.0.0.0/0 | custom-server |
---
총 3개 규칙
0.0.0.0/0 대신 특정 IP0.0.0.0/0은 전체 인터넷에 노출