Can Resty Use SOCKS5 Proxy? Need Help Setting It Up!

9 Replies, 1705 Views

Hey folks,
I’m trying to figure out if resty can use socks5 proxy. I’ve been googling around but can’t find a clear answer.

I’m working on a project where I need resty to connect through a socks5 proxy, but I’m kinda stuck on how to set it up. Anyone here managed to get resty use socks5 proxy successfully?

If you’ve got any tips or code snippets, that’d be awesome. Or even just pointing me in the right direction would help.

Thanks in advance!
(Also, sorry if this has been asked before—I’m new to this forum and still figuring things out.)

Cheers!
Hey! I had the same issue with resty use socks5 proxy a while back. I found that resty itself doesn’t natively support socks5, but you can use a workaround with `proxychains`.

Just install proxychains, configure it with your socks5 proxy, and then run your resty script through it. It’s not perfect, but it gets the job done.

Here’s a quick guide I used: [link to proxychains setup]. Hope this helps!
Yo, I’ve been down this rabbit hole too. Resty use socks5 proxy isn’t straightforward, but you can use `curl` with socks5 and then pipe the output to resty.

Something like:
`curl --socks5-hostname 127.0.0.1:1080 http://example.com | resty`

Not the cleanest solution, but it works in a pinch. Let me know if you need more details!
Hey there! I don’t think resty use socks5 proxy is supported out of the box, but you can try using a tunneling tool like `ssh -D` to create a socks5 proxy and then route resty through that.

It’s a bit of a hack, but it’s worked for me in the past. If you’re on Linux, this might be worth a shot. Good luck!
Hmm, I’ve been looking into this too. From what I’ve seen, resty use socks5 proxy isn’t directly possible, but you can use a library like `requests` in Python with a socks5 proxy and then integrate it with resty.

It’s a bit of a workaround, but it’s doable. Here’s a snippet:
```python
import requests
proxies = {'http': 'socks5://127.0.0.1:1080', 'https': 'socks5://127.0.0.1:1080'}
response = requests.get('http://example.com', proxies=proxies)
```
Then you can pass the response to resty. Hope that helps!
Wow, thanks everyone for the awesome suggestions! I didn’t expect so many workarounds for resty use socks5 proxy. I tried the proxychains method, and it worked like a charm.

I’m still curious about the mitmproxy approach though—anyone got a more detailed guide on that? Also, big thanks for the curl and privoxy tips. You guys rock!
Hey! I’ve been using resty with socks5 proxy by setting up a local HTTP proxy that converts socks5 to HTTP. Tools like `privoxy` can do this.

Once you have privoxy running, you can point resty to the local HTTP proxy, and it’ll route through socks5. It’s a bit of setup, but it’s reliable. Let me know if you need help with the config!
I feel your pain, man. Resty use socks5 proxy isn’t well-documented, but I managed to get it working with `mitmproxy`.

You can configure mitmproxy to use a socks5 upstream proxy and then point resty to mitmproxy. It’s a bit overkill, but it works like a charm. Here’s a quick guide: [link to mitmproxy setup]. Good luck!
Hey, I’m not sure if this helps, but I’ve seen people use `socksify` to force resty to use socks5 proxy. It’s a bit of a hack, but it works.

Just install socksify, configure it, and run your resty command through it. It’s not the most elegant solution, but it gets the job done. Let me know if you need more details!
Yo, I’ve been messing with resty use socks5 proxy for a while now. Honestly, the easiest way I found is to just use a VPN that supports socks5 and route everything through that.

It’s not a direct solution, but it saves a lot of headaches. If you’re open to that, I can recommend a few good VPNs. Cheers!



Users browsing this thread: 1 Guest(s)