Skip to content

chore: add docs for routing#18

Merged
markwylde merged 7 commits intomainfrom
feat/policy-based-routing
Jun 26, 2025
Merged

chore: add docs for routing#18
markwylde merged 7 commits intomainfrom
feat/policy-based-routing

Conversation

@markwylde
Copy link
Member

No description provided.

- Add RoutingEngine to manage routing decisions for WireGuard peers
- Support routing policies with destination CIDR, protocol, and port ranges
- Implement FindPeerForDestination to select appropriate peer for traffic
- Add parsing functions for routing policies and port ranges
- Add --exit-node flag to route all traffic through a specific peer
- Add --route flag to define custom routing policies (CIDR:peerIP)
- Implement ApplyCLIRoutes to apply routing policies from CLI
- Support for policy-based routing in config file with Route= directive
- Add RoutingEngine to tunnel for peer selection
- Update SOCKS5 dialer to use routing engine for destination selection
- Route traffic through appropriate peer based on policies
- Add routing engine to tunnel initialization
- Add routing section to README with exit node and policy-based routing
- Create example-routing.conf showing advanced routing configurations
- Add example-usage.sh with practical routing examples
- Update example config with routing policy examples
@markwylde markwylde merged commit 6ef4c4d into main Jun 26, 2025
3 checks passed
@markwylde markwylde deleted the feat/policy-based-routing branch June 26, 2025 22:49
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