mirror of
https://github.com/anthropics/claude-code.git
synced 2026-01-30 04:02:03 +00:00
Merge pull request #6218 from rquintino/feat(devcontainer)use-firewall-reject-rule-for-immediate-feedback-instead-of-+2min-timeouts
feat(devcontainer): Use firewall reject rule for immediate feedback instead of +2min timeouts
This commit is contained in:
@@ -113,6 +113,9 @@ iptables -A OUTPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
|
|||||||
# Then allow only specific outbound traffic to allowed domains
|
# Then allow only specific outbound traffic to allowed domains
|
||||||
iptables -A OUTPUT -m set --match-set allowed-domains dst -j ACCEPT
|
iptables -A OUTPUT -m set --match-set allowed-domains dst -j ACCEPT
|
||||||
|
|
||||||
|
# Explicitly REJECT all other outbound traffic for immediate feedback
|
||||||
|
iptables -A OUTPUT -j REJECT --reject-with icmp-admin-prohibited
|
||||||
|
|
||||||
echo "Firewall configuration complete"
|
echo "Firewall configuration complete"
|
||||||
echo "Verifying firewall rules..."
|
echo "Verifying firewall rules..."
|
||||||
if curl --connect-timeout 5 https://example.com >/dev/null 2>&1; then
|
if curl --connect-timeout 5 https://example.com >/dev/null 2>&1; then
|
||||||
|
|||||||
Reference in New Issue
Block a user