Skip to content

feat: transparent routing through agent tunnel#1741

Draft
irvingouj@Devolutions (irvingoujAtDevolution) wants to merge 1 commit intofeat/quic-tunnel-1-corefrom
feat/quic-tunnel-2-routing
Draft

feat: transparent routing through agent tunnel#1741
irvingouj@Devolutions (irvingoujAtDevolution) wants to merge 1 commit intofeat/quic-tunnel-1-corefrom
feat/quic-tunnel-2-routing

Conversation

@irvingoujAtDevolution
Copy link
Copy Markdown
Contributor

Summary

Transparent routing through QUIC agent tunnel (PR 2 of 4, stacked on #1738).

When a connection target matches an agent's advertised subnets or domains, the gateway automatically routes through the QUIC tunnel instead of connecting directly.

Depends on: #1738 (must merge first)

Changes

  • Routing pipeline: explicit agent_id → subnet match → domain suffix (longest wins) → direct
  • Integrated into all proxy paths: RDP (clean path), SSH, VNC, ARD, KDC proxy
  • ServerTransport enum (Tcp/Quic) in rd_clean_path.rs for RDP tunnel support
  • 7 routing unit tests

PR stack

  1. Protocol + Tunnel Core (feat: QUIC agent tunnel — protocol, listener, agent client #1738)
  2. Transparent Routing (this PR)
  3. Auth + Webapp
  4. Deployment + Installer

🤖 Generated with Claude Code

When a connection target matches an agent's advertised subnets or
domains, the gateway automatically routes through the QUIC tunnel
instead of connecting directly. This enables access to private
network resources without VPN or inbound firewall rules.

- Add routing pipeline (subnet match → domain suffix → direct)
- Integrate tunnel routing into RDP, SSH, VNC, ARD, and KDC proxy paths
- Support ServerTransport enum (Tcp/Quic) in rd_clean_path
- Add 7 routing unit tests

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@irvingoujAtDevolution
Copy link
Copy Markdown
Contributor Author

⚠️ Not ready to merge — depends on #1738. Will rebase and mark ready once #1738 is merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant