pyvmomi
pyvmomi copied to clipboard
socks5 proxy from environment variables is ignored
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?
I switched to govmoni that is working well with socks5.
govmomi isn't an option. We need pyvmomi as python library for our software. Which is written in python.
+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
+1 We need SOCKS5 support too. This module is heavy used in Ansible automations too (by community.vmware Ansible collection)
I just ran into this issue as well
HTTP proxy with basic auth is not supported. Is there a workaround I can use to support this?
+1 need sock5 proxy