Skip to content
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

Feature request: SOCKS5 UDP support #5

Open
ghost opened this issue Feb 10, 2020 · 3 comments
Open

Feature request: SOCKS5 UDP support #5

ghost opened this issue Feb 10, 2020 · 3 comments

Comments

@ghost
Copy link

ghost commented Feb 10, 2020

Would you consider supporting UDP over SOCKS5 with iptables TPROXY ? It would be great for DNS queries and gaming.

@phantomcraft
Copy link

I don't want to make spam, but there is a project which supports UDP and TPROXY, called ipt2socks:

https://github.com/zfl9/ipt2socks

As it uses libev, should support splice syscall.

@ghost
Copy link
Author

ghost commented Feb 29, 2020

@phantomcraft have you tried ipt2socks before? I have no luck trying that.. it just keeps crashing

@phantomcraft
Copy link

@ulinuxp Yes, I tested it but only the "redirect" scheme, not the "tproxy". I really don't know how to forward UDP to a subnet with "tproxy", with "redirect" I just use:

iptables -t nat -A PREROUTING -i subnet0 -p tcp --syn -j DNAT --to-destination <some_ip>:<some_port>

Worked well and seems to use splice syscall as the speed reached ~30gbps in my system.

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

No branches or pull requests

1 participant