docs: add server-client communication guide for HTTP/HTTPS/gRPC #165
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added documentation for bidirectional server/client communication through the firewall—running servers inside containers accessible from the host, and connecting to host services from inside containers.
Documentation
Created:
docs-site/src/content/docs/guides/server-client-communication.md(733 lines)Server Inside Firewall → Client on Host
172.30.0.200.0.0.0, notlocalhostsudo awf --allow-domains registry.npmjs.org --keep-containers -- node server.js curl http://172.30.0.20:8080 # From hostServer on Host → Client Inside Firewall
172.30.0.1# Host: python3 -m http.server 9000 --bind 0.0.0.0 sudo awf --allow-domains example.com -- curl http://172.30.0.1:9000Protocol Behavior
Troubleshooting
21 common issues documented:
0.0.0.0vslocalhost)Examples
Added executable scripts:
examples/server-inside-firewall.sh- HTTP server demoexamples/client-inside-firewall.sh- Host connection demoBoth demonstrate the network topology and binding requirements concretely.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
telemetry.astro.build/usr/local/bin/node node /home/REDACTED/work/gh-aw-firewall/gh-aw-firewall/docs-site/node_modules/.bin/astro build(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.