gh-aw-firewall-debug
Skill4 starsChanged 6 months agoMITView on GitHub
Debug the AWF firewall by inspecting Docker containers, analyzing Squid access logs, checking iptables rules, and troubleshooting network issues.
In this repository124 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/AGENTS.mdAGENTS.md
- .github/workflows/AGENTS.mdAGENTS.md
- .vscode/AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- agent-log-analysisSkill
- agent-mdSkill
- agent-md-writerSkill
- agent-skill-md-writerSkill
- agentskillsSkill
- agents-md-writerSkill
- ai-prompt-writerSkill
- ansibleSkill
- apache-airflow-apiSkill
- apache-airflow-dagsSkill
- astro-cliSkill
- astronomer-docsSkill
- awesome-copilotSkill
- brainstorm-agent-runsSkill
- brainstorm-github-prSkill
- brainstormSkill
- catSkill
- chrome-devtoolsSkill
- claude-docsSkill
- codeqlSkill
- code-reviewSkill
- code-tourSkill
- coding-standard-writerSkill
- context-aware-opsSkill
- copilot-cliSkill
- copilot-docsSkill
- critical-thinkingSkill
- datadog-agentSkill
- datadog-apiSkill
- datadog-mcpSkill
- datadog-monitorsSkill
- datadog-pulumiSkill
- devcontainerSkill
- dictationSkill
- direnvSkill
- dockerfileSkill
- dockerSkill
- docs-reviewSkill
- docs-writerSkill
- dot-claudeSkill
- dotfilesSkill
- dot-githubSkill
- editorconfigSkill
- fact-writerSkill
- gdpr-compliantSkill
- gh-agent-taskSkill
- gh-apiSkill
- gh-aw-compileSkill
- gh-aw-firewallSkill
- gh-aw-newSkill
- gh-awSkill
- gh-aw-troubleshootingSkill
- gh-codespaceSkill
- gh-issueSkill
- gh-modelsSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 1 is distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
Use this skill when you need to debug the awf firewall, inspect container state, analyze traffic, or troubleshoot network issues.
- Very specific: line 15
When an agentic workflow run fails with a blocked egress error.
- Very specific: line 17
When needing to view or analyze Squid access logs or iptables rules to troubleshoot network issues.
- Very specific: line 22
When diagnosing missing MCP tools (use gh aw audit instead of checking the network firewall).
- Very specific: line 75
Run with debug logging and keep containers: sudo awf --allow-domains github.com --log-level debug --keep-containers 'curl …
- Very specific: line 80
Domain blocked unexpectedly: Look at the Host header (3rd column) in /var/log/squid/access.log - it may need a subdomain allowlisted.
- Very specific: line 82
DNS resolution failing: Verify DNS allowed in iptables with sudo dmesg | grep "FW_DNS".
- Very specific: line 86
Avoid leaving debug containers running indefinitely.
- Very specific: line 87
Do not make persistent iptables changes outside of the FW_WRAPPER lifecycle.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AWF Firewall Debugging
<!-- markdownlint-disable MD013 MD023 MD031 MD032 -->Use this skill when you need to debug the awf firewall, inspect container state, analyze traffic, or troubleshoot network issues.
When to Use
- When an agentic workflow run fails with a
blocked egresserror. - To inspect Docker container states (
awf-squid,awf-agent) during local firewall debugging. - When needing to view or analyze Squid access logs or
iptablesrules to troubleshoot network issues.
When Not to Use
- For debugging simple YAML schema errors in the workflow frontmatter (use
gh aw compile --verbose). - When diagnosing missing MCP tools (use
gh aw auditinstead of checking the network firewall). - For standard GitHub Actions CI/CD network issues unrelated to the AWF infrastructure.
Common Pitfalls
- Stray Containers: Starting a debug session but forgetting to run the manual cleanup commands, leaving
awf-squidandawf-agentcontainers running and consuming resources. - Ignoring Subdomains: Assuming allowing
github.comimplicitly allowsapi.github.com, leading to confusing TCP_DENIED errors in the Squid log. - DNS Confusion: Failing to check
dmesgforFW_DNSblocks when a domain simply won't resolve, assuming it's a HTTP layer issue.
Core Principles
- Non-Interactive Debugging: Rely on
docker execandgrep/awkpipelines to extract logs and states. - Identify Access Blocks: Quickly trace
TCP_DENIEDin Squid logs orFW_BLOCKEDin dmesg.
Commands / Usage Patterns
Check Container Status
docker ps | grep awf
docker inspect awf-squid --format='{{.State.Running}}'
docker inspect awf-agent --format='{{.State.ExitCode}}'View and Analyze Logs
Squid proxy container (IP: 172.30.0.10) & Agent execution container (IP: 172.30.0.20).
docker exec awf-squid cat /var/log/squid/access.log
docker exec awf-squid grep "TCP_DENIED" /var/log/squid/access.log | awk '{print $3}' | sort -u
docker exec awf-squid tail -f /var/log/squid/access.log | grep --line-buffered TCP_DENIEDInspect iptables Rules
sudo iptables -t filter -L FW_WRAPPER -n -v
docker exec awf-agent iptables -t nat -L OUTPUT -n -v
sudo dmesg | grep "FW_BLOCKED"Network Inspection
docker network inspect awf-net
docker exec awf-agent nc -zv 172.30.0.10 3128
docker exec awf-agent cat /etc/resolv.confDiagnostics and Troubleshooting
Debug Mode Workflow:
- Run with debug logging and keep containers:
sudo awf --allow-domains github.com --log-level debug --keep-containers 'curl https://api.github.com' - Inspect containers:
docker ps | grep awf - Check iptables:
sudo iptables -t filter -L FW_WRAPPER -n - Manual cleanup when done:
docker rm -f awf-squid awf-agent && docker network rm awf-net
Domain blocked unexpectedly: Look at the Host header (3rd column) in /var/log/squid/access.log - it may need a subdomain allowlisted.
DNS resolution failing: Verify DNS allowed in iptables with sudo dmesg | grep "FW_DNS".
What to Avoid
- Avoid leaving debug containers running indefinitely. Always run cleanup (
docker rm -f awf-squid awf-agent && docker network rm awf-net). - Do not make persistent iptables changes outside of the
FW_WRAPPERlifecycle.
Limitations
- Logs inside normal executions are moved after cleanup and not accessible inside the container anymore. Access them via
/tmp/squid-logs-*/access.loginstead.
Related Skills
- robust-commands: You MUST load this skill when executing commands requiring resilient error recovery or fallbacks.
- shell: You MUST load this skill when handling shell commands with performance monitoring or timeouts.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

