Skip to content

Conversation

@SiiiTschiii
Copy link

Introduce a new Proxy-Wasm TCP filter example that demonstrates dynamic routing of TCP connections based on source IP addresses. This example showcases TCP-level filtering, filling a gap in the existing HTTP-focused examples.

Key features:

  • Dynamic cluster selection based on source IP last octet (even/odd)
  • Uses Envoy's set_envoy_filter_state foreign function with protobuf encoding
  • Includes comprehensive Docker Compose setup for testing
  • Full documentation with usage examples and expected output

Implementation details:

  • Protobuf definitions for Envoy's filter state API
  • Build script for code generation from proto files
  • Unit tests for IP parsing and routing logic
  • Envoy configuration with dual upstream clusters

Introduce a new Proxy-Wasm TCP filter example that demonstrates dynamic
routing of TCP connections based on source IP addresses. This example
showcases TCP-level filtering, filling a gap in the existing HTTP-focused
examples.

Key features:
- Dynamic cluster selection based on source IP last octet (even/odd)
- Uses Envoy's set_envoy_filter_state foreign function with protobuf encoding
- Includes comprehensive Docker Compose setup for testing
- Full documentation with usage examples and expected output

Implementation details:
- Protobuf definitions for Envoy's filter state API
- Build script for code generation from proto files
- Unit tests for IP parsing and routing logic
- Envoy configuration with dual upstream clusters

Signed-off-by: Christof Gerber <[email protected]>
- Remove trailing whitespace
- Use next_back() instead of last() for better performance

Signed-off-by: Christof Gerber <[email protected]>
- Update log 0.4.27 → 0.4.28
- Update proc-macro2 1.0.101 → 1.0.103
- Update quote 1.0.41 → 1.0.42
- Update unicode-ident 1.0.19 → 1.0.22

Generated by: bazelisk run //bazel/cargo:crates_vendor -- --repin all

Signed-off-by: Christof Gerber <[email protected]>
@SiiiTschiii SiiiTschiii force-pushed the SiiiTschiii/example-tcp-re-routing branch from 01cba93 to 0d6580d Compare November 20, 2025 03:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant