Repository navigation
External HTTP and HTTPS access - #7
Open
markrwilliams wants to merge 2 commits into
Open
markrwilliams wants to merge 2 commits into
markrwilliams wants to merge 2 commits into
Conversation
Run a Go/Wasm gVisor Ethernet endpoint at 192.168.2.3:8080, assign unique guest addresses without a default route, and tunnel HTTP and HTTPS CONNECT through the local SOCKS5 service. Package both programs with Nix and exercise the full path in Chromium and QEMU.
Include the NIC in the shared machine layout, assign guest addresses after resume, refresh wall time, and install the system CA bundle for HTTPS verification. Restrict WebSocket origins to trynix.dev or an explicit local development origin and log proxy connections with slog. Extend Chromium coverage for snapshot resume, CA validation, and disabled networking. The replacement snapshot has been generated and tested locally; release publication and pin updates remain deferred.
markrwilliams
force-pushed
the
markrwilliams/http-https
branch
from
September 13, 2026 06:30
467f866 to
d8fd0df
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR allows commands running in a booted qemu VM to connect to external web sites through an HTTP/HTTPS proxy system, half of which runs alongside the VM in the browser, and the other half which runs on the host. Running half of the proxy system on the host gets around the browser's limitations on which sites the VM can connect to.
The VM connects to the half that runs in the web browser, called
trynixnet.trynixnetis itself a SOCKS5 client of the half that runs on the host, calledtrynixsproxy, sending the SOCKS5 protocol over a WebSocket totrynixsproxywhich then connects to the target website.trynixsproxyonly accepts WebSocket clients whose origin is eithertrynix.devor one passed on the command line (likehttp://localhost:8137).A worked example:
curlin it and runcurl https://example.com;https_proxyenvironment variablehttp://192.168.2.3:8080(remember that such a proxy supports HTTPS through theCONNECTrequest method, so it's ok to host the proxy as a plaintext site); curl doesn't connect toexample.com, but instead connects to192.168.2.3:8080and sends a request withCONNECT example.com:443trynixruns alongside the VM and hosts an HTTPS proxy on192.168.2.3:8080; it sees theCONNECT example.com:443and translates it to a SOCKS5 operation that means "resolve example.com" and another that says "connect to that IP on port 443"trynixinitiates a WebSocket connection to127.0.0.1:1080trynixsproxyaccepts the connection because itsOriginislocalhost:8137and pulls the SOCKS5 messages out and performs the operations (resolvingexample.comand connecting to it at 443)