Article ID: 123813, created on Dec 7, 2014, last review on Dec 7, 2014

  • Applies to:
  • Virtuozzo
  • Virtuozzo containers for Linux
  • Virtuozzo hypervisor


The network scanner nmap version 5.51 (Redhat/CentOS 6.x) does not provide port details if it is invoked in a container operating in host-routed mode.

~# nmap -P0 -p 22,80,443 -sU

Starting Nmap 5.51 ( ) at 2014-11-24 18:48 EET
Nmap done: 1 IP address (0 hosts up) scanned in 0.50 seconds


There is a problem with "nmap" itself in Virtuozzo environment: nmap version 5.51 will not work properly in container, providing no output.

For more information, check the discussion from developers..

The affected version is 5.51 (Redhat/Centos 6), for version 6.40 (Redhat/Centos 7), and version 4.11 (Redhat/Centos 5), nmap works as expected.

The affected version does not detect interfaces correctly - venet0 is marked as ethernet whereas it should be other:

~# nmap --iflist

Starting Nmap 5.51 ( ) at 2014-11-24 23:27 NOVT
DEV      (SHORT)  IP/MASK        TYPE     UP MTU   MAC
lo       (lo)    loopback up 16436
venet0   (venet0)   ethernet up 1500  00:00:00:00:00:00
venet0:0 (venet0) ethernet up 1500  00:00:00:00:00:00

DST/MASK       DEV    GATEWAY venet0      venet0


Apply the patch and rebuild the package, or install any of known 'good' versions.

Switching the container to bridged mode should workaround the issue as well.

Search Words

NMAP error

a26b38f94253cdfbf1028d72cf3a498b 2897d76d56d2010f4e3a28f864d69223 d02f9caf3e11b191a38179103495106f e8e50b42231236b82df27684e7ec0beb 0dd5b9380c7d4884d77587f3eb0fa8ef

Email subscription for changes to this article
Save as PDF