Open InfoSec812 opened 5 years ago
As a workaround for those impacted by this issue. You can use SSHuttle as a "poor man's VPN" and openshift-applier will work. My SSHuttle command looks like:
sshuttle -r infosec812@FQDN:2222 -D --dns 192.168.0.0/24
This issue should be looked at broadly to ensure the openshift-applier can work behind proxies in general. The information above is a good example of a scenario that should work, but there are most likely other scenarios as well that needs to be covered.
The typical method of using SOCKS proxies in Linux is to set
http(s)_proxy
environment variables using a protocol prefix ofsocks5://
. The pythonurllib
library cannot handle SOCKS proxies in that manner and you cannot simply usehttp://
with a SOCKS proxy.We will need to import a SOCKS library and add logic to detect when a SOCKS proxy protocol prefix is in use in order to configure urllib to use that proxy.