Results 1 to 9 of 9

Thread: Ping command problems ( flood ).

  1. #1
    Join Date
    Apr 2009
    Location
    Latvia, Riga
    Beans
    273
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Question Ping command problems ( flood ).

    Code:
    dainis@bytehood:~$ ping google.lv -f
    PING google.lv (72.14.221.104) 56(84) bytes of data.
    ping: cannot flood; minimal interval, allowed for user, is 200ms
    How can I fix this so I would be able to flood-ping ?
    - Programmers don't die, they just GOSUB without RETURN
    - Include this in your CONFIG.SYS File: BUGS=OFF
    - Linux is not just a hobby, it's an obsession !

  2. #2
    Join Date
    Apr 2008
    Beans
    451
    Distro
    Kubuntu 10.04 Lucid Lynx

    Re: Ping command problems ( flood ).

    Quote Originally Posted by ActiveFrost View Post
    How can I fix this so I would be able to flood-ping ?
    Use an interval:

    Code:
    man ping
    
           -f     Flood ping. For every ECHO_REQUEST sent a period ‘‘.’’ is printed, while for  ever  ECHO_REPLY
                  received  a backspace is printed.  This provides a rapid display of how many packets are being
                  dropped.  If interval is not given, it sets interval to zero and outputs packets  as  fast  as
                  they  come  back  or one hundred times per second, whichever is more.  Only the super-user may
                  use this option with zero interval.
    
           -i interval
                  Wait interval seconds between sending each packet.  The default is  to  wait  for  one  second
                  between  each  packet normally, or not to wait in flood mode. Only super-user may set interval
                  to values less 0.2 seconds.

  3. #3
    Join Date
    Apr 2009
    Location
    Latvia, Riga
    Beans
    273
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Ping command problems ( flood ).

    Thanks, however .. why I don't get any output ?

    Code:
    dainis@bytehood:~$ sudo ping -f -i 0.1 google.lv
    [sudo] password for dainis: 
    PING google.lv (216.239.59.104) 56(84) bytes of data.
    ..
    - Programmers don't die, they just GOSUB without RETURN
    - Include this in your CONFIG.SYS File: BUGS=OFF
    - Linux is not just a hobby, it's an obsession !

  4. #4
    Join Date
    Apr 2008
    Beans
    451
    Distro
    Kubuntu 10.04 Lucid Lynx

    Re: Ping command problems ( flood ).

    try to increase the interval, I guess google.lv has better things to do than accepting ping floods on a high interval level?

  5. #5
    Join Date
    Apr 2009
    Location
    Latvia, Riga
    Beans
    273
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Ping command problems ( flood ).

    Quote Originally Posted by Lampi View Post
    try to increase the interval, I guess google.lv has better things to do than accepting ping floods on a high interval level?
    Yeah, now I even don't get these 2 dots at the end
    Code:
    dainis@bytehood:~$ ping -f -i 5 izzi.lv
    PING izzi.lv (195.244.128.8) 56(84) bytes of data.
    That's all .. no dots, no output. Any ideas ? Btw, izzi.lv is my ISP and I've done a lot of pinging from my Win32 box !
    - Programmers don't die, they just GOSUB without RETURN
    - Include this in your CONFIG.SYS File: BUGS=OFF
    - Linux is not just a hobby, it's an obsession !

  6. #6
    Join Date
    Apr 2008
    Beans
    451
    Distro
    Kubuntu 10.04 Lucid Lynx

    Re: Ping command problems ( flood ).

    What if you use verbose output? Then again: it is host dependend. If I where google or ISP I wouldn't accept ping floods either.

  7. #7
    Join Date
    Apr 2009
    Location
    Latvia, Riga
    Beans
    273
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Ping command problems ( flood ).

    Quote Originally Posted by Lampi View Post
    What if you use verbose output? Then again: it is host dependend. If I where google or ISP I wouldn't accept ping floods either.
    Verbose output still gives me an empty line.
    You say, you wouldn't accept ping floods .. Flood means what ? What's the difference between doing flood with 1sec. intervals and ping with 1 sec intervals ?
    - Programmers don't die, they just GOSUB without RETURN
    - Include this in your CONFIG.SYS File: BUGS=OFF
    - Linux is not just a hobby, it's an obsession !

  8. #8
    Join Date
    Apr 2008
    Beans
    451
    Distro
    Kubuntu 10.04 Lucid Lynx

    Re: Ping command problems ( flood ).

    Quote Originally Posted by ActiveFrost View Post
    Flood means what ? What's the difference between doing flood with 1sec. intervals and ping with 1 sec intervals ?
    http://en.wikipedia.org/wiki/Ping_flood

    If the server you are ping flodding is not properly configured to deal with that amount of data you request, it will cause the server to hang up - it's a simple form of DOS (denial of service) attack. As you can see google knows well how to ignore ping floods, as does your internet service provider Most servers should have protection against ping flodding, I hope apache servers have it enabled by default as well

    Just use ping without flood on google and the server will reply.

  9. #9
    Join Date
    Aug 2010
    Beans
    2

    Re: Ping command problems ( flood ).

    You need to be root.

    As the man page states: "Only super-user may set interval to values less 0.2 seconds."

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •