pyvmomi icon indicating copy to clipboard operation
pyvmomi copied to clipboard

socks5 proxy from environment variables is ignored

Open cmeissner opened this issue 4 years ago • 8 comments

We need a socks5 proxy to connect to our vcenter server. Normally we set all_proxy to point to our local socks5 proxy and it works well.

But if we try to connect to vcenter with pyvmomi (SmartConnect) all proxy related environment variables are ignored:

$ for p in ${!http*} ${!HTT*} all_proxy ; do echo -n "$p: " && eval echo \$${p} ; done
http_proxy: socks5://localhost:1337
https_proxy: socks5://localhost:1337
HTTPS_proxy: socks5://localhost:1337
HTTP_proxy: socks5://localhost:1337
all_proxy: socks5://localhost:1337

Is there another way to make socks5 proxy work for connections?

cmeissner avatar Jan 27 '21 09:01 cmeissner

I switched to govmoni that is working well with socks5.

sestegra avatar May 11 '21 17:05 sestegra

govmomi isn't an option. We need pyvmomi as python library for our software. Which is written in python.

cmeissner avatar May 11 '21 17:05 cmeissner

+1 for SOCKS5 proxy support, of course with Auth too (basic auth). Actually HTTP proxy with basic auth is not supported. I hope this support can be added too

kladiv avatar May 31 '22 10:05 kladiv

+1 We need SOCKS5 support too. This module is heavy used in Ansible automations too (by community.vmware Ansible collection)

serjtk avatar May 31 '22 10:05 serjtk

I just ran into this issue as well

jeeftor avatar Jun 09 '22 11:06 jeeftor

HTTP proxy with basic auth is not supported. Is there a workaround I can use to support this?

VedaNiks avatar Jun 21 '23 11:06 VedaNiks

+1 need sock5 proxy

schwannden avatar Jan 02 '24 07:01 schwannden