LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-19-2007, 04:04 PM   #1
dotd
LQ Newbie
 
Registered: May 2007
Posts: 4

Rep: Reputation: 0
mass pinging? stop auto-block on ping -f?


Hello,

I am trying to do some pings on several servers of mine and want them to be done as fast as possible, since my script should later run as kinda daemon. Now I am facing that problem, when I use ping -f [ips] then I get that result:


Quote:
ping: cannot flood; minimal interval, allowed for user, is 200ms
Now I wonder where I can turn of that lock that would not allow me to send more than one ping in 200ms (I got root access)?
 
Old 05-19-2007, 04:45 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Ping as root will allow you to make a flood. The limit seems to be internal to ping, because the protocol (and implementation) does not have such limitation.
 
Old 05-19-2007, 05:20 PM   #3
dotd
LQ Newbie
 
Registered: May 2007
Posts: 4

Original Poster
Rep: Reputation: 0
So there is no way to do that without being root? Since basically I want to run that script - or rather sayed the script the ping would be part of - as a cronjob...
 
Old 05-20-2007, 01:19 AM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
You could always give a non-privileged user the right to sudo ping.

But what are you trying to achieve with that ping-flood in the first
place, what is the benefit of it?



Cheers,
Tink
 
Old 05-20-2007, 03:27 AM   #5
dotd
LQ Newbie
 
Registered: May 2007
Posts: 4

Original Poster
Rep: Reputation: 0
would be part of a monitoring script so to say (even though it would not be monitoring only, but doing lotsa stuff)

So there is no where something like:

ping_max_conn = 200

which I simply could turn off or set down to e.g.20?
 
Old 05-20-2007, 02:05 PM   #6
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
For your usage fping may be better.
 
Old 05-20-2007, 02:47 PM   #7
dotd
LQ Newbie
 
Registered: May 2007
Posts: 4

Original Poster
Rep: Reputation: 0
thx mara tried that, still the same problem... wouldnīt ping at the rate I want it to do (even when done in round robin principle like fping does), since fping would ping about 50 hosting packages almost at once and then kinda freeze pinging only 1 further per sec as it seems... despite of that fping -f(file) would only work as root wouldnīt it? I am running the script when itīs done as a cronjob, so to say not SU but user...
 
Old 05-23-2007, 04:33 PM   #8
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Well...You can run cron jobs for root (so as root). On the other hand, it's probably not the best idea. If the pinging is needed to find out which services are on, have you considered opening/closing a connection instead of ping?
 
Old 05-23-2007, 06:17 PM   #9
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally Posted by dotd
thx mara :) tried that, still the same problem... wouldnīt ping at the rate I want it to do (even when done in round robin principle like fping does), since fping would ping about 50 hosting packages almost at once and then kinda freeze pinging only 1 further per sec as it seems... despite of that fping -f(file) would only work as root wouldnīt it? I am running the script when itīs done as a cronjob, so to say not SU but user... :)
I still don't understand why you require ping flooding to prove that
a machine is up. What are you going to do if it isn't?


Cheers,
Tink
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how do i stop pinging therealkilkenny Linux - Newbie 2 12-11-2005 11:20 AM
Cannot ping local system when pinging system is set for static IP SkipHuffman Linux - Networking 4 08-22-2005 11:56 AM
block ping Ammad Linux - Security 1 01-13-2005 01:52 PM
How to Block ping into my m/c ?? emailssent Linux - Networking 3 10-19-2004 05:47 AM
MP3 player (USB mass storage) not mountable anymore, no block-oriented device the who Slackware 8 09-07-2004 05:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration