Opened 14 months ago

Closed 6 months ago

Last modified 6 months ago

#21513 closed defect (fixed)

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

Reported by: Nestom Owned by:
Component: other Version: VirtualBox-7.0.6
Keywords: Cc: maxime.accadia@…
Guest type: Linux Host type: Linux


How I reproduce this bug :

  1. Download Ubuntu cloud image from
  1. Import and run the VM using this to add a password for root. NAT networking.
  1. Start the VM and try
    dhclient enp0s3

Result : Timeout ( 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 :

Attachments (1)

vm.log (160.2 KB ) - added by Nestom 14 months ago.

Download all attachments as: .zip

Change History (6)

by Nestom, 14 months ago

Attachment: vm.log added


comment:1 by fth0, 14 months ago

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" over the NAT adapter worked as expected. When executing "wget", the TCP-SYN packets didn't reach a Wireshark capture on the host OS, but could be captured in VirtualBox's "nictrace".

comment:2 by fth0, 14 months ago

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.

Last edited 14 months ago by fth0 (previous) (diff)

comment:3 by aeichner, 8 months ago

Summary: 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 by galitsyn, 6 months ago

Resolution: fixed
Status: newclosed

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 by fth0, 6 months ago

Successfully verified with VirtualBox 7.0.12.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use