spacehub

surshar / claude-code

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

Built by Anthropic · github.com/anthropics

Merge pull request #6218 from rquintino/feat(devcontainer)use-firewall-reject-rule-for-immediate-feedback-instead-of-+2min-timeoutsBrowse files
feat(devcontainer): Use firewall reject rule for immediate feedback instead of +2min timeouts
ant-kurt authored on Aug 27, 2025 · GitHub committed on Aug 27, 2025 parents 70d5361 + 2b46e47 · commit 4607d83fa8ba
1 changed file+3 -0compared with 70d5361
M.devcontainer/init-firewall.sh
@@ -113,6 +113,9 @@
113113 # Then allow only specific outbound traffic to allowed domains
114114 iptables -A OUTPUT -m set --match-set allowed-domains dst -j ACCEPT
115115
116+# Explicitly REJECT all other outbound traffic for immediate feedback
117+iptables -A OUTPUT -j REJECT --reject-with icmp-admin-prohibited
118+
116119 echo "Firewall configuration complete"
117120 echo "Verifying firewall rules..."
118121 if curl --connect-timeout 5 https://example.com >/dev/null 2>&1; then