Skip to content
BA
Berik Ashimov
Senior IT Engineer
Blog
Tools
Network
Subnet Calculator
Bandwidth Calculator
VXLAN/EVPN Calculator
Network Config Generator
Security
Password Generator
Hash Generator
Firewall Rules
DevOps
Kubernetes YAML
ArgoCD App
Terraform
Dockerfile
Linux
Cron Builder
Nginx Config
Systemd Unit
Cheat Sheets
Kubernetes
Docker
Terraform
Ansible
Helm
Linux
Git
Networking
VyOS
HTTP Status Codes
Learning
OSI Model
About
About Me
Uses
0
Search
⌘K
☀️
🌙
Book a call
vCard
Download CV
← Tools
Firewall Rule Generator
Generate rules for iptables, nftables, and pf (BSD)
Rule Configuration
Firewall Type
iptables (Linux)
nftables (Linux)
pf (BSD/macOS)
Action
Accept
Drop
Reject
Log
Chain / Direction
Input (incoming)
Output (outgoing)
Forward (routing)
Protocol
TCP
UDP
ICMP
Any
Interface (optional)
Source
IP / Network
Port
Destination
IP / Network
Port
Advanced
Connection State
None
New
Established
Related
Established + Related
All states
Comment (optional)
Add logging before rule
Generated Rule
Copy
Explanation
Common Presets
Allow SSH
Allow HTTP/HTTPS
Allow Ping
Allow Established
Drop All Input
Allow DNS