theforeman/smart-proxy — pull request #47 by GregSutcliffe (2012-11-28 15:41:37+00:00)
Title: Fixes #1985 - Replace ping with nmap

Replaces ping with nmap. Checks if the binary is on the system and raises a sensible error if not.

As for removing tcp_pingable, from the nmap man page:

The default host discovery done with -sn consists of an ICMP echo request, TCP SYN to port 443, TCP ACK to port 80, and an ICMP timestamp request by default. When executed by an unprivileged user, only SYN packets are sent (using a connect call) to ports 80 and 443 on the target.