-
Notifications
You must be signed in to change notification settings - Fork 286
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for UDP proxying #154
base: master
Are you sure you want to change the base?
Conversation
To comply with current architecture this also needs a landlock config rules section wireproxy/cmd/wireproxy/main.go Lines 133 to 153 in d710683
|
I looked into this but there seems to be no specific method for restricting UDP bindings/connects similar to TCP. As of right now |
Ah sorry I thought this already hit kernel, it appears it did not. https://lore.kernel.org/all/[email protected]/ Latest dec 24th There was plans to follow up in landlock with udp support. |
This PR adds support for a proxying a UDP server through Wireguard. It can listen on IPv4 while tunneling to an IPv6 address or vice versa.
When sending, it goes through BindAddress -> Wireguard -> Target and the opposite when receiving.
For example, if you wanted to proxy Cloudflare's DNS server, an example config would be: