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

Can you support socks5h in the type field of redsocks.conf? #206

Open
yukeiyang opened this issue Oct 21, 2024 · 3 comments
Open

Can you support socks5h in the type field of redsocks.conf? #206

yukeiyang opened this issue Oct 21, 2024 · 3 comments

Comments

@yukeiyang
Copy link

yukeiyang commented Oct 21, 2024

@semigodking , thanks for your wonderful development works on redsocks after darkk stopped supporting redsocks in the past several years. It's cool and thanks a lot.

/etc/redsocks.conf

base {
  log_debug = on;
  log_info = on;
  log = "stderr";
  daemon = off;
  redirector = iptables;
}

redsocks {
  bind = "127.0.0.1:12345";
  relay = "gate.visitxiangtan.com:7000";
  type = socks5;
  timeout = 300;
}

I checked and tried many times for these 2 situations

curl -4 -x socks5://gate.visitxiangtan.com:7000 -v https://example.com/
If set as socks5, the access is not stable. seems 50% failed.

curl -4 -x socks5h://gate.visitxiangtan.com:7000 -v https://example.com/
If set as socks5h, the access is very stable. 100% succeeded.

So, Can you add socks5h support in type field?

@yukeiyang
Copy link
Author

yukeiyang commented Oct 21, 2024

Another, Seems all main proxy services are now supporting socks5h, and lots of them support socks5h only and not socks5, though we can use socks5 with some different ways, but officially, they do recommend socks5h only. For example, Smartproxy, Packetstream, etc.

@yukeiyang
Copy link
Author

yukeiyang commented Oct 21, 2024

Causes lots of proxy services provider support socks5h ONLY officially, socks5 maybe meet some auth issues in proxy provider end here and there. That's why socks5 access is so weak and not stable, I guess.

@yukeiyang yukeiyang changed the title Can you support socks5h in type field of redsocks.conf? Can you support socks5h in the type field of redsocks.conf? Oct 21, 2024
@semigodking
Copy link
Owner

semigodking commented Oct 24, 2024 via email

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

2 participants