VMware Cloud Community
lbocquet
Contributor
Contributor

[6.7.0] httpClient true but wget: error getting response: Cannot assign requested address

Dear all,

With ESXi 6.7.0 up-to-date, I have a problem with wget and https links.
wget and http links, it works but it is not secure.

How to solve it?
It is a major bug from the company?

------------------------------------------------------------------------------
default host:
esxcli network firewall ruleset set -e false -r httpClient

esxcli network firewall ruleset list | grep -E '^Name|^---|http'
Name Enabled
---------------------- -------
httpClient false

wget https://domain.tld/iso.iso
Connecting to domain.tld (XXX.XXX.XXX.XXX:443)

We enable:
esxcli network firewall ruleset set -e true -r httpClient

esxcli network firewall ruleset list | grep -E '^Name|^---|http'
Name Enabled
---------------------- -------
httpClient true


We can test wget https link:

wget https://domain.tld/iso.iso
Connecting to domain.tld (XXX.XXX.XXX.XXX:443)
wget: error getting response: Cannot assign requested address

You can see the error.

In http (not secure), it works:
wget http://domain.tld/iso.iso
Connecting to domain.tld (XXX.XXX.XXX.XXX:80)
saving to 'iso.iso'
iso.iso 100% |*********************************************************************************************************************************************| XXXM 0:00:00 ETA
'iso.iso' saved

Labels (4)
Tags (4)
Reply
0 Kudos
3 Replies
RS_1
Enthusiast
Enthusiast

same issue on 7.0U2 18538813

Reply
0 Kudos
RS_1
Enthusiast
Enthusiast

it looks like wget --no-check-certificate works

terafil
Contributor
Contributor

I have resolved with this: wget --no-check-certificate --user-agent="Mozilla" 'https://....'