HewlettPackard / python-redfish-utility

Python-based utility for interacting with devices supporting a Redfish Service
Other
86 stars 41 forks source link

Support for SOCKS5 proxy #9

Closed gadamiak closed 4 years ago

gadamiak commented 5 years ago

Does the ilorest client support connecting via SOCKS5 proxy?

I want to connect to remote systems which I can access via an SSH gateway. Exporting https_proxy does work with curl, but not with ilorest:

$ export https_proxy=socks5://localhost:8012/
$ curl https://192.168.100.29/redfish/v1/ -Lk -u user:pass
# JSON output
$ ilorest login https://192.168.100.29 -u user -p pass
iLOrest : RESTful Interface Tool version 2.3
Copyright (c) 2014, 2018 Hewlett Packard Enterprise Development LP
...
Error: Could not reach URL. Retries have been exhausted.

I would expect the client to support proxy as curl (and other CLI utilities) do.

Yergidy commented 5 years ago

@gadamiak While it currently does not we will look into adding support for the SOCKS5 proxy.

gadamiak commented 5 years ago

Thanks! That will be very helpful.

dirkvdplas commented 5 years ago

+1 support for HTTP_PROXY would also be a nice improvement!

Yergidy commented 5 years ago

Version 2.5 adds support for SOCKS and HTTP proxies with a global flag --proxy