VirtualBox

21 月 前 建立

13 月 前 結束

13 月 前 更新

#21513 closed defect (fixed)

HTTP not working for ip adresses ending with .2 => fixed in SVN/next 7.0.x maintenance

回報者: Nestom 負責人:
元件: other 版本: VirtualBox-7.0.6
關鍵字: 副本: maxime.accadia@…
Guest type: Linux Host type: Linux

描述

How I reproduce this bug :

  1. Download Ubuntu cloud image from https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.ova
  1. Import and run the VM using this to add a password for root. NAT networking.
  1. Start the VM and try
    dhclient enp0s3
    wget 1.1.1.2
    

Result : Timeout (1.1.1.1 an other IPs work fine) an other IP ending with .2 fails.

I found this bug using Vagrant which is easier to use in order to reproduce this bug.

Discussed on the forum before : https://forums.virtualbox.org/viewtopic.php?f=7&t=108212&p=530016

附加檔案 (1)

vm.log (160.2 KB ) - 21 月 前, 由 Nestom 新增
VBox.log

下載所有附檔: .zip

更動歷史 (6)

21 月 前Nestom 編輯

附檔: 新增 vm.log

VBox.log

comment:1 21 月 前fth0 編輯

FWIW, I could easily reproduce the issue, which indicates that it does not depend on some special property of your setup.

I created a VM in VirtualBox 7.0.6 clicking through the wizard and booted it with a "randomly" selected Linux ISO. Executing "wget 1.1.1.1" over the NAT adapter worked as expected. When executing "wget 1.1.1.2", the TCP-SYN packets didn't reach a Wireshark capture on the host OS, but could be captured in VirtualBox's "nictrace".

comment:2 21 月 前fth0 編輯

A comparison of the VirtualBox slirp source code between 6.1.42 and 7.0.6 revealed the responsible change, which was introduced with Changeset 92093: In the ICMP and UDP implementations, the macro CTL_CHECK is used, which compares both the host and network parts of the IPv4 address. In the TCP implementation, only the host part gets compared, which is the ".2" in this case.

最後由 fth0 編輯於 21 月 前 (上一筆) (差異)

comment:3 15 月 前aeichner 編輯

摘要: HTTP not working for ip adresses ending with .2HTTP not working for ip adresses ending with .2 => fixed in SVN/next 7.0.x maintenance

Sorry for taking so long to fix this, and thanks fth0 for the analysis. Will be fixed in the next 7.0.x maintenance release.

comment:4 13 月 前galitsyn 編輯

狀態: newclosed
處理結果: fixed

Hi guys,

We just released a new version of VirtualBox today. This issue should be fixed there. Closing it. Please leave a comment if it is still actual for you. As usual, builds are available on Downloads page. Thank you for reporting.

comment:5 13 月 前fth0 編輯

Successfully verified with VirtualBox 7.0.12.

注意: 瀏覽 TracTickets 來幫助您使用待辦事項功能

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette