An assessor with a signed scope must run an Nmap scan of a fragile production /24 without disturbing it. Which pacing options and scan choices do you set, and how do you confirm the limit held?
answer
- less work first, then slower
- a global ceiling in packets per second
- one fragile host needs its own spacing
- bound the run so the window ends
- compare the cap with what the target saw
basics
~20 sRun the lightest scan that answers the question: no version detection or scripts, a canary first. Cap the global rate with --max-rate, space probes to fragile hosts, bound the run with --max-retries and --host-timeout, then check the observed rate.
solid answer
~30 sStart by reducing what Nmap does, because the reference guide says omitting version detection cuts load far more than tuning timing. Then pace it: `--max-rate` sets a global ceiling in packets per second, `--scan-delay` or `--max-parallelism 1` space probes to a single fragile device, and `-T3` (or `-T4` on a reliable network) is the sane template. Bound the run with `--max-retries` and `--host-timeout` so it ends inside the window. Scan a small canary subset first, watch progress with `--stats-every`, and compare the scanner's rate and the owners' health graphs with the cap you set.
code
bash · 6 lines# a paced, bounded port check of a hosts list taken from the signed scope
nmap -sS -p 22,443 \
--max-rate 50 --scan-delay 200ms \
--max-retries 2 --host-timeout 30m \
--stats-every 30s \
-iL scope-hosts.txt -oA prod-auditgo deeper
Know that scanning production needs written scope and that heavier options like version detection and scripts add load.
Name the pacing options and what each limits: --max-rate globally, --scan-delay and --max-parallelism per host, --max-retries and --host-timeout for bounds.
Order the choices: shrink the work first, pace second, canary third, then verify the observed rate and target health, and be clear about what the cap does not cover.
Define a standard pacing profile and canary rule for fragile estates, with the owner's right to stop a scan, instead of tuning each scan by feel.
## The question behind the question A scan that must not disturb production has two separate dials. The first is **how much work Nmap does** (which techniques, which phases, how many ports). The second is **how fast it does it** (rate, parallelism, delay). The reference guide is blunt about the order: omitting version detection is far more effective at reducing crashes and bandwidth problems than playing with timing values. Pacing comes after that choice, not instead of it. ## Step 1: shrink the work - Do host discovery as its own pass (`-sn`) and scan only the hosts that answered. - Name the ports the assessment needs instead of the whole default list. - Leave out `-sV`, OS detection and NSE scripts unless the plan names them; each adds probes beyond the port scan, and OS detection paces itself outside the rate options. ## Step 2: choose the pacing options | Need | Option | Note | |---|---|---| | Ceiling for the whole scan | `--max-rate N` | Packets per second, global; `--max-rate 0.1` is one packet every ten seconds | | Space probes to one device | `--scan-delay time` | A wait between probes sent to a given host | | One probe at a time to a host | `--max-parallelism 1` | Also bounds outstanding probes | | Sensible baseline | `-T3`, or `-T4` on a modern reliable network | `-T2` can take about ten times longer than default | | Bound the worst case | `--max-retries`, `--host-timeout` | Skipped hosts are unmeasured, not clean | `--min-rate` is the risky one for this goal: it is a floor meant to guarantee finishing time, and on a fragile network it pushes load up rather than down. A change board wanting a guaranteed finish should get a window sized from a measured canary run, not a rate floor. ## Step 3: prove the limit held 1. **Canary first.** Scan a few representative hosts, then read the target side: CPU, connection or session tables, error counters. 2. **Watch progress.** `--stats-every 30s` prints periodic status lines, so a scan can be stopped when a service owner reports trouble. 3. **Compare rates.** `--max-rate` keeps the average at or below the number but may briefly exceed it to make up for delays. Check the scanner's output and the receiving firewall's counters against the agreed figure. 4. **Record the settings.** The run's options go into the report next to the results, so a reviewer can match them to the target's log. ## Pace is agreed, not just configured The people who own the target need to be able to stop the scan. Before it starts, agree the contact who can say stop, the symptoms that mean stop (rising latency, errors, a session table filling) and who watches them. The scan's own settings go in the plan, so that a team seeing the traffic can match it to what was agreed. How the written authorisation is drafted is a separate subject; the point here is that a pace nobody on the receiving side knows about is indistinguishable from an incident. ## What the limit does not cover The cap speaks to port scans and host discovery. OS detection, version detection and scripts are paced by their own logic, so a cap is not a promise about everything sent. A stateful device in the path can also fill its session table at a modest rate when every probe opens a new entry; the cap says how fast you send, not what that costs the device. ## Common mistakes - Reaching for `-T0` or `-T1` and then being unable to finish the list in the window. - Setting only a template and assuming it is a rate limit; a template is not a packets-per-second ceiling. - Skipping the canary run because the settings 'look conservative'. ## Putting it together The example below is the lightest useful shape: named ports, a global ceiling, a pause between probes to each host, bounded retries and a per-host time limit, with the hosts taken from the agreed list and the output saved for the report. Written authorisation, the window and who is told are set before this is run.
- --max-rate is global. How do you protect one fragile controller inside a /24 you must scan?Use a per-host control for it: `--scan-delay` spaces probes to a single host, and `--max-parallelism 1` limits outstanding probes. Better still, agree with its owner to scan it in its own window or exclude it with `--exclude` and cover it separately, rather than relying on a network-wide cap.
- The board wants a guaranteed finish time. Why is --min-rate the wrong tool?It is a floor on sending rate, so Nmap pushes harder to meet it. Faster than the network supports, it loses accuracy and can lengthen the scan through retransmissions. Size the window from a measured canary run, and bound the scan with `--max-retries` and `--host-timeout` instead.
- -T2 polite alone guarantees a fragile host is not disturbed
- --max-rate caps the packets sent to each individual host
- --max-rate also paces OS detection and scripts
- -T0 is the safest choice for a production scan
- Version detection adds no load beyond the port scan
- A quiet target graph proves the scan caused no impact