fping

Utilitaire de ping parallèle rapide. Envoie des requêtes ICMP echo à plusieurs hôtes simultanément, bien plus rapide que le ping séquentiel pour découvrir les hôtes actifs sur un réseau. Fast parallel ping utility. Sends ICMP echo requests to multiple hosts simultaneously — far faster than sequential ping for discovering live hosts on a network.

↗ https://github.com/schweikert/fping

Overview

fping is a ping-like program that uses ICMP echo requests to determine if hosts are reachable, but sends probes to multiple hosts in parallel rather than sequentially. It’s the standard tool for quickly identifying live hosts across large IP ranges.

Basic Usage

Ping a single host

fping 10.10.10.1

Ping multiple hosts

fping 10.10.10.1 10.10.10.2 10.10.10.3

Ping a subnet

fping -g 192.168.1.0/24

Ping a range

fping -g 10.0.0.1 10.0.0.254

Read targets from file

fping < hosts.txt

Subnet Scanning

Scan /24 — show only alive hosts

fping -ag 192.168.1.0/24

Scan with quiet output (alive only)

fping -aqg 192.168.1.0/24

Scan and show unreachable hosts too

fping -g 192.168.1.0/24 2>&1

Save live hosts to file

fping -ag 192.168.1.0/24 2>/dev/null > live_hosts.txt

Timing and Performance

Set timeout per ping (ms, default 500)

fping -t 200 -g 192.168.1.0/24

Set number of pings per host

fping -c 3 -g 192.168.1.0/24

Max simultaneous probes (higher = faster)

fping -p 10 -g 192.168.1.0/24

Very fast scan with short timeout

fping -t 100 -r 1 -ag 192.168.1.0/24

Output Formats

Default: show per-host results

fping -g 192.168.1.0/24

Quiet (alive hosts only)

fping -aqg 192.168.1.0/24

With latency stats

fping -s 10.10.10.1 10.10.10.2

Statistics after scan

fping -sg 192.168.1.0/24

Count pings and show statistics

fping -c 5 -sg 192.168.1.0/24

Integration Examples

# Find live hosts then run nmap on them
fping -aqg 192.168.1.0/24 > live.txt
nmap -iL live.txt -sV

Combine with xargs for parallel nmap

fping -aqg 10.0.0.0/24 | xargs -P5 -I{} nmap -sV {}

Quick recon pipeline

fping -aqg 10.10.10.0/24 2>/dev/null | \
  tee live_hosts.txt | \
  wc -l

Tips

  • fping -ag is the fastest way to discover live hosts on a subnet
  • Redirect stderr to /dev/null — unreachable hosts go to stderr
  • Lower -t timeout for faster scans on local networks
  • Use -r 0 (zero retries) for fastest possible scan
  • fping is commonly blocked by firewalls — use nmap TCP scan as fallback
Help / Man page
fping [options] [hosts...]

-g RANGE    Generate ping targets (CIDR or start-end)
-a          Show alive hosts only
-q          Quiet mode
-s          Show statistics at end
-c N        Send N pings per host
-t MS       Timeout per host in ms (default: 500)
-r N        Retry count (default: 3)
-p MS       Interval between pings (ms)
-i MS       Interval between sending probes
-f FILE     Read targets from file

Vue d’ensemble

fping est un programme de type ping qui utilise des requêtes ICMP echo pour déterminer si des hôtes sont joignables, mais envoie les sondes à plusieurs hôtes en parallèle plutôt que séquentiellement. C’est l’outil standard pour identifier rapidement les hôtes actifs sur de larges plages IP.

Utilisation de base

# Pinger un seul hôte
fping 10.10.10.1

# Pinger plusieurs hôtes
fping 10.10.10.1 10.10.10.2 10.10.10.3

# Pinger un sous-réseau
fping -g 192.168.1.0/24

# Pinger une plage
fping -g 10.0.0.1 10.0.0.254

# Lire les cibles depuis un fichier
fping < hosts.txt

Scan de sous-réseau

# Scanner un /24 : n'afficher que les hôtes actifs
fping -ag 192.168.1.0/24

# Scanner avec sortie discrète (actifs uniquement)
fping -aqg 192.168.1.0/24

# Scanner et afficher aussi les hôtes injoignables
fping -g 192.168.1.0/24 2>&1

# Sauvegarder les hôtes actifs dans un fichier
fping -ag 192.168.1.0/24 2>/dev/null > live_hosts.txt

Timing et performance

# Régler le timeout par ping (ms, défaut 500)
fping -t 200 -g 192.168.1.0/24

# Régler le nombre de pings par hôte
fping -c 3 -g 192.168.1.0/24

# Nombre maximum de sondes simultanées (plus élevé = plus rapide)
fping -p 10 -g 192.168.1.0/24

# Scan très rapide avec timeout court
fping -t 100 -r 1 -ag 192.168.1.0/24

Formats de sortie

# Par défaut : affiche les résultats par hôte
fping -g 192.168.1.0/24

# Discret (hôtes actifs uniquement)
fping -aqg 192.168.1.0/24

# Avec statistiques de latence
fping -s 10.10.10.1 10.10.10.2

# Statistiques après le scan
fping -sg 192.168.1.0/24

# Compter les pings et afficher les statistiques
fping -c 5 -sg 192.168.1.0/24

Exemples d’intégration

# Trouver les hôtes actifs puis lancer nmap dessus
fping -aqg 192.168.1.0/24 > live.txt
nmap -iL live.txt -sV

# Combiner avec xargs pour un nmap parallèle
fping -aqg 10.0.0.0/24 | xargs -P5 -I{} nmap -sV {}

# Pipeline de recon rapide
fping -aqg 10.10.10.0/24 2>/dev/null | \
  tee live_hosts.txt | \
  wc -l

Conseils

  • fping -ag est le moyen le plus rapide de découvrir les hôtes actifs sur un sous-réseau
  • Rediriger stderr vers /dev/null : les hôtes injoignables vont sur stderr
  • Réduire le timeout -t pour des scans plus rapides sur les réseaux locaux
  • Utiliser -r 0 (zéro retry) pour le scan le plus rapide possible
  • fping est couramment bloqué par les firewalls : utiliser un scan TCP nmap en repli
Aide / Page de manuel
fping [options] [hosts...]

-g RANGE    Generate ping targets (CIDR or start-end)
-a          Show alive hosts only
-q          Quiet mode
-s          Show statistics at end
-c N        Send N pings per host
-t MS       Timeout per host in ms (default: 500)
-r N        Retry count (default: 3)
-p MS       Interval between pings (ms)
-i MS       Interval between sending probes
-f FILE     Read targets from file