utmapp / utmapp/UTM

Ping works from guest(linux) towards internet but Curl/Wget doest not

Open
#5,333 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
35.5k
Forks
1.8k
Avg merge
5d 5h
Merged PRs (30d)
7

Description

**Describe the issue**
I have a very weird networking issue on the guest side, so far all the things looks good and ping works but curl / wget doesnot works ( network mode is in shared network mode)

I have created a vm ubuntu 22.04 x86_64 which using the official iso image.

After installation and reboot i get the ipaddress from dhcp

and on Guest i see following
```
routes
ip r
default via 192.168.64.1 dev enp0s1 proto dhcp src 192.168.64.2 metric 100
192.168.64.0/24 dev enp0s1 proto kernel scope link src 192.168.64.2 metric 100
192.168.64.1 dev enp0s1 proto dhcp scope link src 192.168.64.2 metric 100

```
I am able to successfully login form hostVM to the guest VM using ssh
```
ssh sudhir@192.168.64.2
Welcome to Ubuntu 22.04.2 LTS (GNU/Linux 5.15.0-60-generic x86_64)

* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage

System information as of Thu May 25 02:20:20 PM UTC 2023

System load: 0.92626953125
Usage of /: 41.1% of 13.16GB
```

I am able to ping towards internet
```
ping goole.com
PING goole.com (217.160.0.201) 56(84) bytes of data.
64 bytes from 217-160-0-201.elastic-ssl.ui-r.com (217.160.0.201): icmp_seq=1 ttl=52 time=57.8 ms
64 bytes from 217-160-0-201.elastic-ssl.ui-r.com (217.160.0.201): icmp_seq=2 ttl=52 time=60.1 ms
64 bytes from 217-160-0-201.elastic-ssl.ui-r.com (217.160.0.201): icmp_seq=3 ttl=52 time=53.9 ms

```

However i cannot make Tcp based connection either via telnet or via curl

```
telnet goole.com 443
Trying 217.160.0.201...
telnet: Unable to connect to remote host: Connection refused

curl -v https://www.google.com
* Trying 142.250.74.68:443...
* connect to 142.250.74.68 port 443 failed: Connection refused
* Trying 2a00:1450:400f:802::2004:443...
* Immediate connect fail for 2a00:1450:400f:802::2004: Network is unreachable
* Failed to connect to www.google.com port 443 after 51 ms: Connection refused
* Closing connection 0
curl: (7) Failed to connect to www.google.com port 443 after 51 ms: Connection refused

```

On my host ( mac os i see this bridge interface)

```
bridge100: flags=8a63 mtu 1500
options=3
ether be:d0:74:94:6f:64
inet 192.168.64.1 netmask 0xffffff00 broadcast 192.168.64.255
inet6 fe80::bcd0:74ff:fe94:6f64%bridge100 prefixlen 64 scopeid 0x1c
inet6 fdea:8a95:8314:ecb0:10ec:e47d:9e71:f561 prefixlen 64 autoconf secured
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: vmenet0 flags=3
ifmaxaddr 0 port 27 priority 0 path cost 0
nd6 options=201
media: autoselect
status: active
```

**Configuration**
* UTM Version: 4.2.5
* macOS Version: 13.4 (22F66)
* Mac Chip (Intel, M1, ...): M1

**Debug log**
[debug.log](https://github.com/utmapp/UTM/files/11566049/debug.log)

Additionally , i am unble to make any changes in network mode via UI. ( ie can see all the 4 option ) but only can select shared network mode.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.