15

Using sudo ping -f (URL) on a Mac gives the message:

Request timeout for icmp_seq as a reply.

How can I fix this?

Mateen Ulhaq
  • 24,552
  • 19
  • 101
  • 135
user3541125
  • 451
  • 2
  • 5
  • 11
  • I was getting the exact same thing when trying to ping my Mac from my iPhone that were on the same Airport Extreme wifi network. My firewall on my Mac was turned off. I ended up doing a reboot of the Airport Extreme and it all started working. – Joshua Pinter Apr 06 '16 at 15:08

1 Answers1

18

The reply means the target host is unreachable which is not an error and can happen using a plain 'ping' as well. Now, using the -f(lood) option, some firewalls or hosts can believe it's a DoS attack and drop the icmp packets silently.

Do you really need this -f option ? It can overflow the network and should be avoided as much as possible.

ham-sandwich
  • 3,975
  • 10
  • 34
  • 46
Pyrophorus
  • 289
  • 1
  • 3
  • 4
    If your network settings were wrong, you would have other problems. Now, some hosts don't reply to icmp at all (for security reasons). Try a simple 'ping URL' to see what happens. There is no difference between ping and ping -f packets, only the emission rate. If the plain ping don't work, the ping -f will certainly not. You can try a port scan as well. – Pyrophorus Mar 04 '15 at 10:12
  • When I tried ping -f 54.206.125.84, it shows `Operation not permitted` – Shark Deng May 25 '20 at 23:01
  • Try 'sudo ping -f 54.206.125.84' as the OP does. Ping is a restricted command. – Pyrophorus May 27 '20 at 07:20