Repository navigation
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…and bypass names direct in smart Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The chain grades answers: SERVFAIL, REFUSED and truncated ones go on to the next step; NXDOMAIN and stub answers go on too, and the best one seen comes back when nothing better does (local and company names keep working). - Only DoH steps stick; a plain UDP answer can be forged on the path. - A DoH step is not rested when the question was cancelled. - At most 64 questions at once; DNS over TCP lives on the run's context, answers in one write, and both UDP and TCP get SERVFAIL instead of silence. - QUIC is refused before the program is known and without asking the route: the pump must not wait, and a refused flow only falls back to TCP. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Start in mode "bypass" brings up the adapter with no server route and the firewall in its DNS-only form, and a bridge whose "VPN" is the DNS chain: every flow goes direct, TLS with a name through the ladder (no fallback), QUIC refused for the names whose QUIC the set turns off, and HTTPS records dropped for the names the bypass works on. Rules read as in smart: the direct selection are exceptions, the block list blocks. The ladder's memory is opened once per service (bypass-memory.json in the data directory), told the network at start and at every sign of a change, and saved once a minute and when the run ends. Probe passes a bypass run, EffectiveRoute and RoutePath say "bypass", and the geo store gets the set's services as its catalogue. Also fixes the routes.check row of docs/ipc.md, broken since the bypass selection was added. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Session: - A switch to the bypass (or a new attempt in it) does not hold the network; a DNS change does not reconnect the bypass, which reads none. - Auto's machinery stays out of a bypass session: no Auto mark in the status, no measuring, proofs or round of servers, no dead path "". Engine: - TCP the bridge would send to a VPN goes direct in the bypass: private addresses beyond the gateway open, and the IPv6 probe now finds out whether the machine has IPv6 instead of turning it off. - The memory is told the network before the first flow, and again on a new network (then the country is found again) or every 10 minutes at most; the manager's probes wake the run, and a probe without a default route fails so that the session waits for a network. - DNS flows read the bypass settings at each question. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Steps 7–9 of the serverless DPI bypass: the mode
bypassnow connects with no VPN server.Step 7: DNS with no server (9e02481, 3a94495)
Step 8: the ladder in the bridge (e4d24ff, 3a94495)
mistgate-bypassflow.Open, with an optional fallback to the VPN.Step 9: the mode with no server (1fbee54, 1c2319d)
Startwithmode: bypassbrings up the adapter with no server route and the firewall in its DNS-only form, and every flow goes direct. Rules read as in smart: the direct selection are exceptions, the block list blocks.bypass-memory.jsonin the data directory. It is told the network before the first flow and on every change, and saved once a minute.Probepasses a bypass run (it fails without a default route), and the route isbypass.routes.checkrow ofdocs/ipc.md, broken since the bypass selection was added.Not in this PR: delivery of newer strategy sets, IPC
bypass.*, the fast and deep tiers, the ladder in VPN modes (bypass_direct), UDP to private addresses in the bypass, and the local proxy in the bypass.Checks:
go vet ./...andgo test ./...pass on Windows;go vet ./internal/...passes for darwin/arm64. Every step had independent reviews (Opus and Codex), and their findings are fixed in these commits. The adapter path has not run on a real machine yet; that needs the test VM.🤖 Generated with Claude Code