d5b9a8611d
- aura-cli config gains [transport] (order + per-transport ports + obfuscate/ masquerade); server binds all enabled transports via MultiServer, client uses dial() with UDP->TCP->QUIC handover. Config examples updated; backward-compatible (defaults to udp,tcp,quic). 21 cli tests incl. a real-UDP-transport loopback. - docs/sing-box.md: integration approach note (process-bridge now; native Go outbound for phones, with crypto-library mapping + KAT requirement). - Normalize rustfmt across the v2 transport files (tcp/dial/udp contract). Whole workspace: 97 tests pass, clippy -D warnings clean, fmt clean. Deploy flow (pki init/issue-server/issue-client) validated with the release binary. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
70 lines
2.5 KiB
TOML
70 lines
2.5 KiB
TOML
# Aura VPN client configuration (project §9).
|
|
# Copy to client.toml and adjust. Paths may begin with `~` (expands to your home directory).
|
|
|
|
[client]
|
|
# Human-readable client name / id.
|
|
name = "laptop"
|
|
# Server UDP socket address.
|
|
server_addr = "203.0.113.10:443"
|
|
# Outer-TLS SNI (camouflage hostname) presented to the server. Also the name verified
|
|
# inside the Aura handshake against the server certificate's SAN.
|
|
sni = "cdn.example.com"
|
|
|
|
[pki]
|
|
# Trust anchor (the Aura CA) and this client's leaf cert/key, all PEM.
|
|
# Issue with: aura pki issue-client --id laptop --out ~/.aura --ca ~/.aura
|
|
ca_cert = "~/.aura/ca.crt"
|
|
cert = "~/.aura/client.crt"
|
|
key = "~/.aura/client.key"
|
|
|
|
[tunnel]
|
|
# Requested TUN interface name (advisory on macOS, where the kernel assigns utunN).
|
|
tun_name = "aura0"
|
|
# Local address assigned to the TUN device, and its prefix length.
|
|
local_ip = "10.7.0.2"
|
|
prefix = 24
|
|
# TUN MTU.
|
|
mtu = 1420
|
|
# Tunnel resolver DNS (informational; the system resolver is used in v1).
|
|
dns = "10.7.0.1"
|
|
|
|
# Split-tunnel routing: the default action plus per-destination overrides.
|
|
[tunnel.split]
|
|
# Default for destinations matching no rule below: "VPN" or "DIRECT".
|
|
default = "VPN"
|
|
|
|
# Send these directly (bypass the tunnel): RFC1918 ranges stay on the LAN...
|
|
[[tunnel.split.direct]]
|
|
cidr = "192.168.0.0/16"
|
|
|
|
[[tunnel.split.direct]]
|
|
cidr = "10.0.0.0/8"
|
|
|
|
# ...and a corporate domain egresses directly (resolved to host routes at startup).
|
|
[[tunnel.split.direct]]
|
|
domain = "intranet.example.com"
|
|
|
|
# Force a more-specific range back through the VPN (longest-prefix wins over 10.0.0.0/8).
|
|
[[tunnel.split.vpn]]
|
|
cidr = "10.7.0.0/24"
|
|
|
|
[mimicry]
|
|
# Enable traffic padding to blend packet sizes into HTTPS buckets.
|
|
padding = false
|
|
|
|
[transport]
|
|
# Fallback order tried left-to-right ("handover"): the first transport that connects wins. Aura's
|
|
# own UDP transport is primary; TCP/443 and QUIC (HTTP/3 mimicry) are fallbacks for networks that
|
|
# throttle or block plain UDP. Omitting this whole section uses ["udp","tcp","quic"] on 443/443/444.
|
|
order = ["udp", "tcp", "quic"]
|
|
# Per-transport server ports. The server IP comes from [client] server_addr above (its port there is
|
|
# ignored). The UDP transport and QUIC both ride UDP, so udp_port and quic_port MUST differ; TCP may
|
|
# reuse the UDP port number.
|
|
udp_port = 443
|
|
tcp_port = 443
|
|
quic_port = 444
|
|
# UDP: pad datagrams up to HTTPS size buckets to blur the on-wire size distribution.
|
|
obfuscate = true
|
|
# TCP: prepend a minimal HTTP/1.1 preamble (Host = [client] sni) so the open resembles plain HTTP.
|
|
masquerade = true
|