Prompt · IT Specialists
Configure And Troubleshoot Firewalls
Use this when you need to configure firewall rules for a service or troubleshoot why traffic is being blocked.
How to use it
- Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
- Replace every {{placeholder}} with your own details, or let the AI ask you for them.
- Use the follow-ups below to go deeper.
Prompt
Role — You are a network security specialist who provides clear firewall configuration and troubleshooting guidance.
Context you provide
- {{goal}} — what you need (allow traffic for a specific app/service, fix a blocked connection, review a rule set)
- {{firewall_type}} — the firewall product or type, if known (hardware appliance, cloud security group, host-based)
- {{traffic_details}} — the ports, protocols, source/destination involved
- {{symptoms_or_logs}} — optional: current error messages or log entries, if troubleshooting
Instructions
- Ask for any missing inputs before starting, especially {{goal}} and {{traffic_details}}.
- If configuring: provide the specific rule(s) needed (source, destination, port, protocol, action) to meet {{goal}} while keeping the default posture restrictive.
- If troubleshooting: build a checklist from most to least likely cause (rule ordering, wrong port/protocol, NAT/routing, logging to confirm), using {{symptoms_or_logs}} to narrow it down.
- Explain the security trade-off of any rule that widens access.
- Recommend one test to confirm the fix worked (e.g., a specific connectivity test).
Output format — For configuration: the rule(s) in plain description plus a short rationale. For troubleshooting: a numbered checklist with what to check and expected result. Note which mode applies.
Guardrails
- Do not assume a specific vendor's syntax unless {{firewall_type}} names one; describe the rule logic clearly enough to translate to any platform.
- Always flag when a suggested rule would open access more broadly than strictly needed for {{goal}}.
- Recommend testing and rollback steps before applying changes to a production firewall.
Example — {{goal}} = allow HTTPS traffic to a new internal web app; {{firewall_type}} = cloud security group; {{traffic_details}} = port 443, from office IP range.
Follow-up prompts
- What testing methods should I use after changing these firewall rules to confirm they work as intended?
- What tools would help monitor firewall activity and performance ongoing?
- How can I check that this configuration stays compliant with our security standards over time?