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

socks5 proxy work for some website , but not for some #1032

Closed
oldunclez opened this issue May 17, 2024 · 3 comments
Closed

socks5 proxy work for some website , but not for some #1032

oldunclez opened this issue May 17, 2024 · 3 comments

Comments

@oldunclez
Copy link

There are two hosts

  1. socks5-server(3proxy server) (192.168.1.100)
  2. client-host (192.168.1.200)

I can curl any websites on socks5-server,
but if I curl websites on client-host via socks5-server ,
some websites work ,for example , www.baidu.com , www.qq.com .
some websites not work : www.google.com , www.youtube.com .

Any hints for debug why fail to curl google and youtube ?
Thank you

myuser@client-host~% curl -kvL  -x socks5://192.168.1.100:1080  https://www.google.com/
*   Trying 192.168.1.100:1080...
* TCP_NODELAY set
* SOCKS5 communication to www.google.com:443
* SOCKS5 connect to IPv4 31.13.94.36:443 (locally resolved)
* SOCKS5 request granted.
* Connected to 192.168.1.100 (192.168.1.100) port 1080 (#0)
..............................
..............................
> GET / HTTP/2
> Host: www.google.com
> user-agent: curl/7.68.0
> accept: */*
> 
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* Connection state changed (MAX_CONCURRENT_STREAMS == 100)!
< HTTP/2 400 
< vary: Accept-Encoding
< content-type: text/html; charset="utf-8"
< x-fb-debug: ipdxg8o5CYFf8c8ToRf7Ihbg0V5FxepDAEOnrRbMxyyCMcJLF7tqdmclxXJ799PfB+FY2ES6bdLYIt5OjlglEQ==
myuser@client-host~% curl -vk -x socks5://192.168.1.100:1080  https://www.youtube.com/
*   Trying 192.168.1.100:1080...
* TCP_NODELAY set
* SOCKS5 communication to www.youtube.com:443
* SOCKS5 connect to IPv4 174.37.175.229:443 (locally resolved)
* Can't complete SOCKS5 connection to 174.37.175.229:443. (5)
* Closing connection 0
curl: (7) Can't complete SOCKS5 connection to 174.37.175.229:443. (5)
root@socks5-server:~# cat /etc/3proxy/conf/3proxy.cfg   
nscache 65536
nserver 8.8.8.8
nserver 8.8.4.4

config /conf/3proxy.cfg
monitor /conf/3proxy.cfg

log /logs/3proxy-%y%m%d.log D
rotate 7
counter /count/3proxy.3cf

users $/conf/passwd

include /conf/counters
include /conf/bandlimiters

auth none
allow *
socks -p1080
flush
@ezbik
Copy link

ezbik commented May 17, 2024

it means somewhere between Client and Server there is something that blocks it.

@oldunclez
Copy link
Author

oldunclez commented May 20, 2024

It turns out that the client-host is dns-hijacking .
so I have to use curl -vk -x socks5h://192.168.1.100:1080 https://www.youtube.com/ on it .

@z3APA3A
Copy link
Collaborator

z3APA3A commented May 21, 2024

31.13.94.36 belongs to facebook rather than google,
% host 31.13.94.36
36.94.13.31.in-addr.arpa domain name pointer edge-z-m-mini-shv-01-eze1.facebook.com.

174.37.175.229 belongs to Softlayer, rather than google. You definitely have DNS issues.

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

3 participants