implementing-container-network-policies-with-calico
하는 일
이 도구는 Calico를 사용해 컨테이너(가상 상자 안에서 실행되는 프로그램) 사이의 네트워크 트래픽을 제어하도록 돕습니다. 어떤 컨테이너끼리 통신할 수 있는지 결정하는 보안 규칙을 만들고, 컨테이너가 실행되는 ‘메인 서버(호스트)’를 보호하며, 웹사이트 이름으로 인터넷 접근을 제어할 수 있습니다.
사용하는 경우
- ✓여러 ‘방’(네임스페이스)에 한꺼번에 영향을 주는 보안 규칙이 필요할 때.
- ✓컨테이너가 실행되는 ‘메인 서버(호스트)’를 보호하고 싶을 때.
- ✓특정 웹사이트(예: google.com처럼 이름으로)에만 인터넷 접근을 허용해야 하는 경우.
스킬 링크
https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/implementing-container-network-policies-with-calico/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“영업팀 컨테이너만 데이터베이스에 접근하고, 나머지는 모두 뉴스 웹사이트에만 접근하도록 규칙을 만들어 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
이 도구는 네트워크 규칙을 만들고 확인하는 특별한 명령(calicoctl)을 사용합니다. 이 규칙은 컨테이너 네트워크 안에서 누가 누구와 통신할 수 있는지 정의합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Implementing Container Network Policies with Calico
Overview
Calico provides Kubernetes-native and extended network policy enforcement through its CNI plugin. This skill covers creating and auditing Calico NetworkPolicy and GlobalNetworkPolicy resources to implement pod-to-pod traffic control, namespace isolation, egress restrictions, and DNS-based policy rules using calicoctl and the Kubernetes API.
When to Use
- When deploying or configuring implementing container network policies with calico capabilities in your environment
- When establishing security controls aligned to compliance requirements
- When building or improving security architecture for this domain
- When conducting security assessments that require this implementation
Prerequisites
- Kubernetes cluster with Calico CNI installed
- Python 3.9+ with
kubernetesclient library - calicoctl CLI tool installed and configured
- kubectl access with RBAC permissions for network policy management
Steps
Step 1: Audit Existing Network Policies
Use calicoctl and kubectl to inventory current network policies and identify unprotected namespaces.
Step 2: Implement Default-Deny Policies
Create default-deny ingress and egress policies per namespace as a zero-trust baseline.
Step 3: Create Workload-Specific Allow Rules
Define granular allow rules for legitimate pod-to-pod and pod-to-service communication.
Step 4: Validate Policy Enforcement
Test connectivity between pods to verify policies are correctly enforced.
Expected Output
JSON audit report listing all network policies, unprotected namespaces, policy rule counts, and connectivity test results.
자주 묻는 질문
‘네임스페이스’란 무엇인가요?
서버 안의 독립된 ‘방’과 같습니다. 서로 다른 애플리케이션이나 팀을 정리하고 분리하는 데 도움을 줍니다.
‘calicoctl’이란 무엇인가요?
Calico의 네트워크 규칙을 관리하는 명령줄 도구이며, 네트워크 보안을 위한 원격 조종기와 같습니다.
‘default-deny’는 무엇을 의미하나요?
기본적으로 아무것도 허용하지 않는다는 뜻입니다. 필요한 것만 허용하도록 구체적인 규칙을 만들어야 하므로 네트워크가 더 안전해집니다.
상세 정보
작성자의 원본 설명
Uses Calico's own policy CRDs beyond the upstream Kubernetes API - GlobalNetworkPolicy, HostEndpoint, NetworkSet, policy tiers, and DNS-based egress rules - applied and audited with calicoctl. Use when a policy must span namespaces or protect the host itself, when egress has to be expressed by domain name, or when ordering policies into tiers. Keywords: calicoctl, GlobalNetworkPolicy, HostEndpoint
인기도
- GitHub 스타
- 35k
- 순위
- #8020
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 8. 31.
댓글
- …
이 저장소의 다른 스킬
abusing-dpapi-for-credential-access
35kAI 에이전트에게 특정 작업을 위한 준비된 지침을 제공해, 더 잘하고 더 빠르게 처리하도록 합니다.
abusing-shadow-credentials-for-privesc
35kAI 에이전트가 명확하고 잘 구성된 텍스트를 쓰도록 가르칩니다.
achieving-cmmc-level-2-compliance
35kCMMC Level 2 규정 준수를 위한 환경을 준비하도록 돕습니다. 보안 요구 사항을 구현하고 필요한 문서를 관리합니다.
acquiring-disk-image-with-dd-and-dcfldd
35k에이전트가 하드 드라이브의 정확한 복사본을 만들도록 돕습니다. 조사 중 정보가 손실되거나 변경되지 않도록 하는 데 유용합니다.
비슷한 스킬
openclaw-update
394k에이전트가 설치 방식에 맞는 방법을 골라 기존 OpenClaw Gateway를 업데이트하고, 세션이 계속 작동하도록 돕습니다.
diagnose-gateway
394k에이전트가 설정, 채널, 포트를 확인해 OpenClaw Gateway가 왜 실패하는지 찾되, 아무것도 바꾸지 않도록 돕습니다.
crabbox-apps
394k에이전트가 임시 클라우드 머신에서 앱을 열고 실행한 뒤, 그 화면을 채팅의 측면 패널에 보여 주도록 돕습니다.