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

[x/net] How to proxy udp traffic over a tcp-based socks5? #38015

Closed
saito-mayumi opened this issue Mar 23, 2020 · 1 comment
Closed

[x/net] How to proxy udp traffic over a tcp-based socks5? #38015

saito-mayumi opened this issue Mar 23, 2020 · 1 comment

Comments

@saito-mayumi
Copy link

What version of Go are you using (go version)?

$ go version
go version go1.14 darwin/amd64

What did you do?

dialer, _ := proxy.SOCKS5("tcp", "localhost:1080", nil, nil)

_, err := dialer.Dial("udp", "8.8.8.8:53")
fmt.Println(err.Error()) // socks connect udp localhost:1080->8.8.8.8:53: network not implemented

What did you expect to see?

err should be nil. I wish that it can relay my udp traffic over my TCP SOSCKS5 proxy.

What did you see instead?

socks connect udp localhost:1080->8.8.8.8:53: network not implemented

Here is the code I found which raised the error. I'm looking forward to ways which are able to approach my goal.

https://github.com/golang/net/blob/a7b16738d86b947dd0fadb08ca2c2342b51958b6/internal/socks/socks.go#L242

@andybons
Copy link
Member

Hi there,

Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only.

For asking questions, see:

Please ask the question on one of the above forums.

(Quoted from https://golang.org/wiki/Questions)

@golang golang locked and limited conversation to collaborators Mar 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants