Network Security Groups

Network Security Groups

Guides an AI agent to configure network security groups, firewall rules and Kubernetes network policies for least-privilege access and network segmentation on AWS and GCP.

Skill files6 files

references/

scripts/

SKILL.md100 lines
1
---
2
name: network-security-groups
3
description: >
4
Configure network security groups and firewall rules to control
5
inbound/outbound traffic and implement network segmentation.
6
---
7
8
# Network Security Groups
9
10
## Table of Contents
11
12
- [Overview](#overview)
13
- [When to Use](#when-to-use)
14
- [Quick Start](#quick-start)
15
- [Reference Guides](#reference-guides)
16
- [Best Practices](#best-practices)
17
18
## Overview
19
20
Implement network security groups and firewall rules to enforce least privilege access, segment networks, and protect infrastructure from unauthorized access.
21
22
## When to Use
23
24
- Inbound traffic control
25
- Outbound traffic filtering
26
- Network segmentation
27
- Zero-trust networking
28
- DDoS mitigation
29
- Database access restriction
30
- VPN access control
31
- Multi-tier application security
32
33
## Quick Start
34
35
Minimal working example:
36
37
```yaml
38
# aws-security-groups.yaml
39
Resources:
40
# VPC Security Group
41
VPCSecurityGroup:
42
Type: AWS::EC2::SecurityGroup
43
Properties:
44
GroupDescription: VPC security group
45
VpcId: vpc-12345678
46
SecurityGroupIngress:
47
# Allow HTTP from anywhere
48
- IpProtocol: tcp
49
FromPort: 80
50
ToPort: 80
51
CidrIp: 0.0.0.0/0
52
Description: "HTTP from anywhere"
53
54
# Allow HTTPS from anywhere
55
- IpProtocol: tcp
56
FromPort: 443
57
ToPort: 443
58
CidrIp: 0.0.0.0/0
59
Description: "HTTPS from anywhere"
60
61
# Allow SSH from admin network only
62
- IpProtocol: tcp
63
// ... (see reference guides for full implementation)
64
```
65
66
## Reference Guides
67
68
Detailed implementations in the `references/` directory:
69
70
| Guide | Contents |
71
|---|---|
72
| [AWS Security Groups](references/aws-security-groups.md) | AWS Security Groups |
73
| [Kubernetes Network Policies](references/kubernetes-network-policies.md) | Kubernetes Network Policies |
74
| [GCP Firewall Rules](references/gcp-firewall-rules.md) | GCP Firewall Rules |
75
| [Security Group Management Script](references/security-group-management-script.md) | Security Group Management Script |
76
77
## Best Practices
78
79
### ✅ DO
80
81
- Implement least privilege access
82
- Use security groups for segmentation
83
- Document rule purposes
84
- Regularly audit rules
85
- Separate inbound and outbound rules
86
- Use security group references
87
- Monitor rule changes
88
- Test access before enabling
89
90
### ❌ DON'T
91
92
- Allow 0.0.0.0/0 for databases
93
- Open all ports unnecessarily
94
- Mix environments in single SG
95
- Ignore egress rules
96
- Allow all protocols
97
- Forget to document rules
98
- Use single catch-all rule
99
- Deploy without firewall
100

© AJ Geddes · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 13,690 prompts

More by @OpenSourceBuffGuy

See all
Four city outfit change with depth reference prompt image

Four city outfit change with depth reference

Directs a 12-second vertical video where one woman spins through four city outfit changes, locked to outfit pictures, a face crop and a depth-video motion reference.

video-prompt, reference-image, character-consistency, face-reference, timed-beats, multi-shot, vertical-format, transformation, video-ad, travel, scene-transitions, camera-movement, fashion, cityscape, landmarks, short-form-video, long-form, structured-output, woman, fashion-shoot

Quiet Kyoto autumn travel vlog, 30 seconds prompt image

Quiet Kyoto autumn travel vlog, 30 seconds

Generates a slow, natural 30-second autumn travel vlog in Kyoto of the woman from a reference image, with short casual dialogue, handheld camera and film grain, avoiding an ad look.

video-prompt, vlog, reference-image, character-consistency, handheld, film-grain, home-video, travel, japan, multi-shot, lip-sync, natural-light, guardrails, seedance, for-content-creators, timed-beats, long-form, casual, candid, autumn

Ice heroine fights hunters in Seoul parking garage prompt image

Ice heroine fights hunters in Seoul parking garage

Plans a 30-second supernatural action film where an ice-powered heroine defends a puppy from hunters in a Seoul parking garage, with identity locked to two reference images.

video-prompt, kling, timed-beats, multi-shot, action, martial-arts, visual-effects, character-consistency, reference-image, korea, cityscape, night-scene, slow-motion, tracking-shot, cinematic, creatures, film-score, negative-prompt, dramatic-lighting, neon, advanced, lip-sync, woman

Reviews

Loading reviews…

Discussion

Loading comments…