HTTPS requests fail when network is in bridge mode.
- Dominant language
- Swift
- Stars
- 35.5k
- Forks
- 1.8k
- Avg merge
- 5d 5h
- Merged PRs (30d)
- 7
Description
**Describe the issue**
I had this is issue with 2.2.0 and 2.2.1.
Most of https requests fail when the VM runs on bridge mode.
This is an Ubuntu 20.04.3, trying to install guest tools with:
`sudo apt install spice-vdagent spice-webdavd`
Symptom when installing a package with `apt`.
```
Get:1 http://fr.archive.ubuntu.com/ubuntu focal-updates/main amd64 libjpeg-turbo8 amd64 2.0.3-0ubuntu1.20.04.1 [117 kB]
Get:2 http://fr.archive.ubuntu.com/ubuntu focal-updates/main amd64 libwebp6 amd64 0.6.1-2ubuntu0.20.04.1 [185 kB]
Err:2 http://fr.archive.ubuntu.com/ubuntu focal-updates/main amd64 libwebp6 amd64 0.6.1-2ubuntu0.20.04.1
Hash Sum mismatch
Hashes of expected file:
- SHA512:4e40330543ebdadc83c2e051ede67cfe91a62491fd77af4d857a776e1a52bd13519d26a8d3900f7aae71542ac21ff5020b8c6a1aa49c3bfc7fbc30b3cd684753
- SHA256:0bc2cc4bf2e3625d29d2c999d837214394a4f9907f5f4f08d89102c68cb46348
- SHA1:7e6adcc218856b1e668ce9db296cca7f012afd0b [weak]
- MD5Sum:82711b79ad4b250ea9b4335ea0ab860a [weak]
- Filesize:184752 [weak]
Hashes of received file:
- SHA512:6fb30628673a281f998b5fcd8bccffca4d0aff43e3c5be0a1c6846af3866228439f0fcd3cafe179a2bb6af6f75033cc8e652ab6bada7fdadfdefd04785cea54d
- SHA256:dd5ab0bf479d52a47d2967b93a71b7a7a71d8a819d3f9f9839f1b518ec265ace
- SHA1:5bc523dbbedb165ec615fe75baacca09e0c30c04 [weak]
- MD5Sum:7b91016582789719cfded60aa4b1b9be [weak]
- Filesize:184752 [weak]
Last modification reported: Tue, 01 Jun 2021 11:26:10 +0000
```
I had same type of issue when installing `k3s` with `curl -sfL https://get.k3s.io | sh -` : bash complains about syntax errors in script.
So it seems that the payload was corrupted.
I had experienced such behavior with VMware Fusion too.
No anti-virus installed on host computer.
See: [VmWare forum](https://communities.vmware.com/t5/VMware-Fusion-Discussions/Kali-Linux-apt-update-returns-Hash-Sum-mismatch-error-Fusion-12/td-p/2816761)
**UPDATE**:
after bridging over a USB/LAN ethernet adapter instead of integrated WiFi of my MacBook Pro 16, the problem is gone.
See: [VmWare Forum](https://communities.vmware.com/t5/VMware-Fusion-Discussions/Big-Sur-Bridged-Wifi-Download-Issues/m-p/2858859)
I have exactly the same issue with UTM, notice the MACNAT flag on en0:
```
bridge100: flags=8863 mtu 1500
options=3
ether fa:ff:c2:94:e7:64
Configuration:
id 0:0:0:0:0:0 priority 0 hellotime 0 fwddelay 0
maxage 0 holdcnt 0 proto stp maxaddr 100 timeout 1200
root id 0:0:0:0:0:0 priority 0 ifcost 0 port 0
ipfilter disabled flags 0x0
member: en0 flags=8003
ifmaxaddr 0 port 10 priority 0 path cost 0
member: en8 flags=3
ifmaxaddr 0 port 22 priority 0 path cost 0
nd6 options=201
media: autoselect
status: active
```
Is this a limitation of the WiFi card?
**Configuration**
* UTM Version: 2.2.1.beta
* OS Version: 11.5.2
* Intel or Apple Silicon? Intel
**Debug log**
[missing]
**VM**
[config.plist.txt](https://github.com/utmapp/UTM/files/7073062/config.plist.txt)
Contributor guide
Assessment
This issue has not been assessed yet.