-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proxy settings are ignored by xbps-install #152
Comments
The code 0 where the I guess |
This is not done, it requires bigger changes to the URL parsing to allow scheme less URLs and needs to be handled correctly in every place where URLs are parsed. |
I would be willing to test it with the current installation images, but at the moment we are working remotely and not from behind the corporate proxy. So I will only be able to do any testing once the lockdown is over, which will take a few more weeks. |
Good news! The VM I just set up with the current ISO version (void-live-x86_64-musl-20191109.iso) does work behind the proxy just fine. I was able to update the system as well as install new packages. The only intervention on my part was to set the relevant environment variables. This means that the problem originally reported in #75 which lead to the creation of this issue seems to have been resolved. The network situation didn't change since then, the same proxy is still in place. Are there any more specific tests you would like me to do? |
Maybe I should open another ticket for this; xbps-fetch has a |
Correction: I'm not seeing this on a dual-stacked host, just on an IPv6-only host. The setup for my IPv6-only-host is a bit different. It's on another network. My test case is the following:
That's a good smoke-test, because github has no IPv6 in 2021. |
I think for a HTTP proxy you need |
I think for a HTTP proxy you need HTTP_PROXY='http://my-proxy-hostname:8123'
That worked. So yeah at least one person (me) is using xbps-fetch and
xbps-install behind a proxy.
|
Then perhaps we just need better error handling if HTTP_PROXY does not make sense to xbps. |
It is not a problem of xbps-install. I think it can be closed. |
In some cases xbps-install seems to totally ignore proxy settings.
Note: this is not a sudo related issue as previously described here.
Note: Trials are made behind a corporate NTLM proxy, therefore outbound connections are made through a (hopefully well configured) CNTLM daemon.
Sanity check
Environment variables are set:
wget downloads files, NTLM authentication is nicely handled by CNTLM
Wireshark log
The issue
The following command seem to ignore proxy settings
Wireshark log, no connection is made to parent proxy, neither to CNTLM daemon.
TCP SYN attempt is dropped by the firewall
Quick and dirty workaround
I found today that the problem can be temporarily 'fixed' by forcing all TCP connections through the corporate proxy using proxychains
ie: App -> Proxychains -> CNTLM proxy -> Corporate Proxy -> Internet
Wireshark logs, now connection begins with a proxy negociation.
So finally I can't tell if this is really an unexpected behavior or maybe the consequence of a paranoid corporate proxy?
The text was updated successfully, but these errors were encountered: