implementing-container-network-policies-with-calico
यह क्या करती है
यह टूल Calico का इस्तेमाल करके आपके containers (virtual boxes में चल रहे programs) के बीच network traffic को control करने में मदद करता है। इसकी मदद से आप security rules बना सकते हैं जो तय करें कि कौन से containers एक-दूसरे से बात कर सकते हैं, server खुद को कैसे सुरक्षित रखे, और internet access को website के नाम से कैसे control करें।
कब इस्तेमाल करें
- ✓जब आपको एक security rule की ज़रूरत हो जो एक साथ कई 'rooms' (namespaces) पर लागू हो।
- ✓जब आप उस 'main server' (host) को सुरक्षित करना चाहते हों जहाँ containers चलते हैं।
- ✓जब आपको internet access सिर्फ़ कुछ खास websites को देना हो (नाम से, जैसे google.com)।
Skill का लिंक
https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/implementing-container-network-policies-with-calico/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“ऐसे rules बनाओ कि सिर्फ़ sales team के containers database तक पहुँच सकें, और बाकी सभी सिर्फ़ news website तक पहुँच सकें।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
यह टूल special commands (calicoctl) का इस्तेमाल करके network rules बनाता और जाँचता है। ये rules तय करते हैं कि आपके container network के अंदर कौन किससे बात कर सकता है।
तकनीकी सामग्री (मूल 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.
अक्सर पूछे जाने वाले सवाल
'namespaces' क्या होते हैं?
namespaces को अपने server के अंदर अलग-अलग 'rooms' समझिए। ये अलग-अलग applications या teams को व्यवस्थित और एक-दूसरे से अलग रखने में मदद करते हैं।
'calicoctl' क्या है?
यह एक command-line tool है, जिससे आप Calico के network rules manage करते हैं। इसे network security का remote control समझिए।
'default-deny' का क्या मतलब है?
इसका मतलब है कि डिफ़ॉल्ट रूप से कुछ भी allowed नहीं है। ज़रूरी चीज़ों की अनुमति देने के लिए आपको खास rules बनाने होते हैं, जिससे network ज़्यादा सुरक्षित रहता है।
जानकारी
लेखक का मूल विवरण
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
- अपडेट की गई
- 31/8/2026
कमेंट
- …
इस repository की और skills
abusing-dpapi-for-credential-access
35kआपके AI एजेंट को किसी खास काम के लिए तैयार instructions देता है, ताकि वह उसे बेहतर और तेज़ी से कर सके।
abusing-shadow-credentials-for-privesc
35kआपके AI एजेंट को साफ़ और अच्छी तरह से व्यवस्थित लिखना सिखाता है।
achieving-cmmc-level-2-compliance
35kयह आपके एजेंट को CMMC Level 2 compliance के लिए environment तैयार करने में मदद करता है। यह security requirements लागू करता है और ज़रूरी documentation संभालता है।
acquiring-disk-image-with-dd-and-dcfldd
35kआपके एजेंट को hard drives की exact copies बनाने में मदद करता है। जाँच के दौरान किसी भी जानकारी के खोने या बदलने से बचाने के लिए यह उपयोगी है।
मिलती-जुलती skills
openclaw-update
394kयह आपके एजेंट को चल रहे OpenClaw Gateway को अपडेट करने में मदद करती है, इंस्टॉल के तरीके के अनुसार सही विधि चुनकर और सेशन बनाए रखकर।
diagnose-gateway
394kयह आपके एजेंट को सेटिंग्स, चैनल और पोर्ट जांचकर पता लगाने देती है कि OpenClaw Gateway क्यों फ़ेल हो रहा है, बिना कुछ बदले।
crabbox-apps
394kयह आपके एजेंट को किसी अस्थायी क्लाउड मशीन पर ऐप खोलने और चलाने देती है, फिर उसका व्यू आपके चैट के साइड पैनल में दिखाती है।