How to run nmap in a container (openvz virtualization)

Issue:

#nmap --script ssl-enum-ciphers -p 443 server.droidzone.in

Starting Nmap 6.00 ( http://nmap.org ) at 2015-05-18 23:15 IST
route_dst_netlink: can't find interface "venet0"

Fix:
Add the --unprivileged option.

#nmap --script ssl-enum-ciphers -p 443 server.droidzone.in --unprivileged

Starting Nmap 6.00 ( http://nmap.org ) at 2015-05-18 23:16 IST
Nmap scan report for server.droidzone.in (104.28.29.30)
Host is up (0.0091s latency).
Other addresses for server.droidzone.in (not scanned): 104.28.28.30
PORT    STATE SERVICE
443/tcp open  https
| ssl-enum-ciphers:
|_  Least strength = strong

Nmap done: 1 IP address (1 host up) scanned in 2.55 seconds

You are reading this post on Joel G Mathew’s tech blog. Joel's personal blog is the Eyrie, hosted here.