nadoo / glider

glider is a forward proxy with multiple protocols support, and also a dns/dhcp server with ipset management features(like dnsmasq).
GNU General Public License v3.0
3.18k stars 437 forks source link

[Feature Request] add redirect or dokodemo-door to listen #358

Closed pcmid closed 1 year ago

pcmid commented 1 year ago

I want to use wireguard over glider which means it would listen a udp port and redirect the traffic over proxy.

I know it is possible to do it using glider -listen=udp://:10000 -forward=socks5://127.0.0.1:1080,udp://[wireguard_server]:[port]. But this requires a new instance of the glider and unable to reuse existing forwarding options, so I want to a option like

-listen redirect://127.0.0.1:10000:[wireguard_server]:[port]

or

-listen udp://127.0.0.1:10000,redirect://[wireguard_server]:[port]

to redirect request from udp://127.0.0.1:10000 to udp://[wireguard_server]:[port] via forward.

I would be more honored if you had a better design.

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days.