shadowsocks / go-shadowsocks2

Modern Shadowsocks in Go
Apache License 2.0
4.45k stars 1.39k forks source link

tcp.go:67: failed to get target address: SOCKS error: 8 #246

Closed houxinlin closed 1 year ago

houxinlin commented 1 year ago

The server is ubuntu, and I'm running on the client (my client is manjaro). I got this error by setting the proxy address 127.0.0.1:1080 through the system

chenyu1990 commented 1 year ago
export http_proxy=socks5://127.0.0.1:1080   
export https_proxy=socks5://127.0.0.1:1080
MrDkVV commented 5 months ago

How was this fixed?

Changing poxy config on the host, should and had no effect on the results?

PreReq: iptables -t nat -A PREROUTING -i ens9f1 -p tcp -j REDIRECT --to-port 12345 iptables -t nat -A PREROUTING -i ens9f1 -p udp -j REDIRECT --to-port 12345 iptables -t nat -A POSTROUTING -o ens9f1 -j MASQUERADE # iptables -t nat -L`

Using: go-shadowsocks2 -verbose -c '10.10.10.138:58888' -socks ':12345'

Error: 2024/01/30 02:18:19 tcp.go:67: failed to get target address: SOCKS error: 8 2024/01/30 02:18:19 tcp.go:67: failed to get target address: SOCKS error: 8

Suggestion, should and does not help. export http_proxy=socks5://192.168.12.3:12345 export https_proxy=socks5://192.168.12.3:12345

Issue should have remained open.