Commit Graph
32 Commits
Author SHA1 Message Date
cfal 5fc319a13d Add indexed routing predicates and local rule sources (#201)
Compile routing rules into shared indexes while preserving ordered policy evaluation and DNS decisions. Add typed predicates and bounded local SRS, sing-box JSON, Mihomo YAML/text/MRS, and GeoSite/GeoIP DAT sources through named rule groups or inline masks, with format detection, source caching, pre-activation compilation, and source-aware reloads. Include configuration examples, regression coverage, benchmark tooling, and dependency notices.
2026-10-20 22:11:01 -04:00
cfal 76df520c34 Add route-only HTTP Host sniffing (#198)
Extend opt-in TCP sniffing to use cleartext HTTP/1.0 and HTTP/1.1 Host headers alongside TLS SNI for hostname-based routing. Preserve original destinations, byte replay, sniff limits, Fake DNS precedence, and one route per connection. Add strict parsing, transport and lifecycle coverage, documentation, and an authenticated example with local-address safeguards.
2026-10-20 02:01:12 -04:00
cfal f485914a93 Add opt-in Fake DNS and TLS SNI routing (#195)
Add opt-in Fake DNS and TLS SNI routing for clients that connect by IP. Restore synthetic destinations across TCP, UDP, and TUN while preserving reply identities; prefer sniffed SNI for hostname rules without rewriting connection targets. Add persistent fake-IP mappings, stable WireGuard server identities through optional names or public keys, upstream-address guards, deadline-aware DNS fallback, configuration documentation, and examples.
2026-10-19 10:54:40 -04:00
cfal c17693c001 Unify WireGuard client and server configuration (#191)
Make WireGuard use the same inline client and server protocol syntax as other proxies, replacing named endpoints before release. Add automatic sharing of equivalent clients, encrypted peer chains, explicit server routing policy, and validation that rejects conflicting settings while keeping unused clients inactive. Update examples, configuration documentation, and lifecycle and interoperability coverage.
2026-10-18 15:00:43 -04:00
cfal 2be0409531 Add userspace WireGuard endpoints (#186)
Add named userspace WireGuard endpoints so Shoes can route inbound and outbound traffic through WireGuard without a kernel interface. Includes TCP/UDP forwarding, proxy-chain transports, reload lifecycle management, configuration validation, documentation, and dependency notices for release artifacts.
2026-10-17 15:23:44 -04:00
cfal db35d96276 Add native VLESS Encryption and resumption (#185)
Add opt-in native VLESS Encryption with X25519 and ML-KEM key chains, authenticated record encryption, bounded session resumption, and native Vision support while preserving legacy TLS/REALITY behavior and outer transports. Include validated configuration, credential generation, examples, interoperability fixtures, and regression coverage.
2026-10-17 12:24:08 -04:00
cfal 001495285a Add HTTP/2 CONNECT proxy support (#184)
Add standard HTTP/2 CONNECT to HTTP and mixed listeners and opt-in HTTP proxy clients, allowing concurrent TCP tunnels to share a connection while preserving legacy HTTP/1 and NaiveProxy behavior. Keep the H2 transport independent of NaiveProxy, preserve route isolation and per-stream authentication, require matching TLS ALPN for explicit H2 clients, and handle flow control, cancellation, and graceful shutdown. Include configuration documentation, an example, compatibility regressions, and interoperability coverage for sing-box, Mihomo, and the native Caddy-based Naive server.
2026-10-16 17:54:08 -04:00
cfal 0cc416f8c5 Improve XHTTP backpressure and interoperability (#180)
Improve XHTTP transfer reliability under slow destinations and resource pressure with bounded packet pipelining, admission before body reads, queue-acceptance acknowledgements, and cancellation-safe session handling. Preserve reusable H1 uploads, correct H2/H3 finalization, add configurable receive windows and download-tail timeouts, validate effective request capacity, and expand Xray/Mihomo interoperability coverage with pinned peers in CI.
2026-10-16 07:49:20 -04:00
cfal 5b8da8fd61 Add XHTTP/SplitHTTP transport support (#179)
Adds Xray-compatible XHTTP/SplitHTTP with packet-up, stream-up, and stream-one modes over HTTP/1.1, HTTP/2, and HTTP/3, including REALITY and existing proxy chains. Bounded buffering, flow-control-aware admission, connection pooling, and inactivity-based timeouts maintain backpressure without imposing a minimum upload rate. Preserves TLS key-exchange and ML-DSA policies, adds configuration examples and interoperability coverage, and vendors an h3 fix to prevent empty DATA frames from truncating streams.
2026-10-15 13:39:44 -04:00
cfal 41dd02fd26 examples: add dns examples 2026-04-08 16:56:48 +08:00
cfal c5637d48bb examples/hysteria2.yaml: add ipv6 example 2026-01-21 06:58:23 +04:00
cfal 92408f822f update docs and examples 2026-01-20 02:10:35 +04:00
cfal 4eafedc5ee 0.2.5 update 2026-01-09 01:17:08 +04:00
cfal b2b7121622 0.2.1 update 2025-12-04 06:02:43 +04:00
cfal ced60d27e3 0.2.0 update 2025-11-26 22:59:30 +04:00
cfal 9e16b71f48 switch to named pem (#69)
* examples/named_certificates.yaml: update for named pems

* config: update for named pems

* thread_util.rs: allow re-setting

* CONFIG.md: updated for named pem

* main.rs: update for new validation flow

* Cargo.toml: add tempfile for tests

* inline format args for cargo clippy
2025-07-31 08:57:56 +04:00
cfal cfe5a8bf84 support named certs and keys (#66)
* support named certs and keys

* CONFIG.md: update

* .gitignore: only ignore root yamls

* examples: add more examples
2025-06-23 14:06:59 +04:00
cfal c624c6389e config: better errors, add tests (#65)
* add custom Serialize and Deserialize traits and remove serde untagged structs

* examples/shadowtls_v3_remote_handshake.yaml: fix example

* .github/workflows: add test workflows

* tcp/tcp_handler_util.rs: cargo fmt

* clippy fixes

* cargo fmt
2025-06-22 22:56:39 +04:00
cfal 6311f9dd5f examples: update ShadowTLS examples 2025-03-11 02:02:01 +04:00
cfal f0e1198154 examples/shadowtls_v3_remote_handshake.yaml: update example for user-specified 2025-03-10 04:03:52 +04:00
cfal cd71220a0e examples: add ShadowTLS v3 examples 2025-03-10 01:21:26 +04:00
cfal 708e4e7a3a examples/tuic_v5_port_range.yaml: add port range example 2025-03-06 22:20:27 +04:00
cfal 0b5fb4a872 examples: add TUIC v5 example 2025-03-06 22:20:27 +04:00
cfal 35b23f504a examples/hysteria2.yaml: fix hysteria2 alpn in example 2025-02-24 02:29:42 +09:00
cfal 3bf344233f examples/hysteria2.yaml: add hysteria2 example 2025-02-17 04:15:26 +04:00
cfal f860f448be examples/vless_over_tls.yaml: add vless example 2025-02-17 04:15:26 +04:00
cfal 7f7f66f07e examples/trojan_tls_through_socks.yaml: add example 2024-08-01 02:22:46 +02:00
cfal f65957fe3b examples: add socks through vmess 2023-03-28 00:27:20 +09:00
cfal 60c44a864e examples: add socks server through TLS vmess server example 2023-03-27 16:06:13 +09:00
cfal 7d5364e94e examples: add socks server through vmess example 2023-03-27 13:59:44 +09:00
cfal f5264f3789 Add more examples 2023-02-26 01:29:07 +09:00
cfal 321bc60f7c add some examples 2023-02-20 23:52:21 +09:00