Commit Graph
11 Commits
Author SHA1 Message Date
Frog Rocky 756d3dd6bd feat: send prelude once per endpoint session 2026-05-23 17:32:06 +02:00
Frog Rocky f8b2d2ba5a feat: add conceal fallback port proxying
Add fallback_port support so invalid TCP/UDP conceal traffic is proxied to a local fallback service instead of being dropped.

Also add typed conceal format errors, preserve consumed bytes for TCP fallback replay, wire fallback config through UAPI/binds/Outline, and cover TCP, UDP, and UAPI behavior with tests.
2026-05-11 16:59:04 +02:00
Frog Rocky 4b261410f2 fix(conn): move UDP conceal to the bind layer for Windows UDP
Move UDP conceal above the UDP bind so conceal-enabled Windows UDP can run
over WinRingBind instead of forcing a StdNetBind fallback.

Add a bind-level UDP conceal middleware that:
- encodes outbound WireGuard packets with framed and masquerade rules
- injects prelude decoys and junk before initiation packets
- wraps ReceiveFuncs to decode inbound datagrams and drop invalid decoy,
  junk, and prelude packets before they reach device

Extract transport-agnostic UDP packet helpers in conceal so framing,
masquerade, and prelude logic is shared across WinRingBind and StdNetBind.

Keep the TCP conceal path unchanged in BindStream, remove the old Windows
fast/fallback UDP selector, and add focused bind-level conceal tests.
2026-04-27 13:08:28 +02:00
Frog Rocky 374f91fe4c omit junk on tcp 2026-03-25 02:45:18 +01:00
Frog Rocky 8b17d27361 added stream record layer to conceal 2026-03-25 02:45:18 +01:00
Frog Rocky 6a110d4319 implemented prelude connection layer for net.Conn 2026-03-25 02:45:18 +01:00
Yaroslav Gurov da95c8cd6d feat: prelude conn H1-H4 compat support 2026-01-21 11:38:52 +00:00
Yaroslav Gurov b91d651ae0 chore: [WIP] common awg features refactoring 2026-01-20 14:00:43 +00:00
Yaroslav Gurov 0d55ebccb3 feat: add conceal to stdbind 2026-01-19 13:59:58 +00:00
Yaroslav Gurov b7111a7841 chore: stream bind reformatting 2026-01-15 23:05:39 +00:00
Yaroslav Gurov 8241945a66 chore: general cleanup and refactoring
* [WIP] moved out classic AWG params to conceal conns
* refactor of conceal rules locations
* refactor of working with concealment parameters
2026-01-15 21:44:01 +00:00