Re: [CentOS] internet connection tester script

2011-01-28 Thread Nico Kadel-Garcia
On Fri, Jan 28, 2011 at 11:19 AM, wrote: > Nico Kadel-Garcia wrote: > >> Yup. That's why it's common to drop at external firewalls and blocked >> by NAT from reaching inside your network, to protect less thoroughly >> protected and critical hosts from distributed denial of service (DDOS) >>  such

Re: [CentOS] internet connection tester script

2011-01-28 Thread cpolish
Nico Kadel-Garcia wrote: > Yup. That's why it's common to drop at external firewalls and blocked > by NAT from reaching inside your network, to protect less thoroughly > protected and critical hosts from distributed denial of service (DDOS) > such as the now classic "ping flood" attack. There is

Re: [CentOS] internet connection tester script

2011-01-28 Thread Nico Kadel-Garcia
On Fri, Jan 28, 2011 at 7:19 AM, John R Pierce wrote: > On 01/28/11 3:28 AM, kellyremo wrote: >> bix.hu and www.yahoo.com are "pingable" test sites. >> 127.0.0.1 could not be pinged [firewall drops all icmp] > > > what sort of firewall drops packets on localhost ?!? > > yahoo.com is probably a poo

Re: [CentOS] internet connection tester script

2011-01-28 Thread John R Pierce
On 01/28/11 3:28 AM, kellyremo wrote: > bix.hu and www.yahoo.com are "pingable" test sites. > 127.0.0.1 could not be pinged [firewall drops all icmp] what sort of firewall drops packets on localhost ?!? yahoo.com is probably a poor choice of targets, as its a widely distributed group of servers

Re: [CentOS] internet connection tester script

2011-01-28 Thread Philippe Naudin
Le ven 28 jan 2011 03:28:22 CET, kellyremo a écrit: > [ ... ] > $ while $TORF; do ping -W 1 -c 1 bix.hu >& /dev/null && ping > -W 1 -c 1 www.yahoo.com >& /dev/null && TORF=false || > TORF=true; done > $ > > It just doesn't work. > > Goal: if theres no internet connection, then the oneliner m

[CentOS] internet connection tester script

2011-01-28 Thread kellyremo
http://pastebin.com/raw.php?i=rykHdvBh bix.hu and www.yahoo.com are "pingable" test sites. 127.0.0.1 could not be pinged [firewall drops all icmp] i have a "oneliner" that echoes if theres "internet connection or no". $ ping -W 1 -c 2 bix.hu >& /dev/null && ping -W 1 -c 2 www.yahoo.com >& /dev/n

Re: [CentOS] "internet connection tester script"

2010-03-27 Thread Les Mikesell
Jozsef Vadkan wrote: > Why doesn't my "internet-connection" script work? > > When I plug the ethcable out, it just waits...and waits...and waits... > > The script: http://pastebin.com/AE9U1qdL DNS lookups take a long time to time out and fail. You could try a ping to your default gateway's IP

Re: [CentOS] "internet connection tester script"

2010-03-27 Thread James Bensley
On 27 March 2010 12:56, Alexander Dalloz > wrote: > Am 27.03.2010 13:48, schrieb James Bensley: > > > Would help if I actually put the link in maybe? Doh! > > > > http://pastebin.com/raw.php?i=QRYHjDpQ > > Why `ping -c $PCount $hosts | grep "64 bytes" | wc | awk {'print $1'}' > when `ping -c $PCo

Re: [CentOS] "internet connection tester script"

2010-03-27 Thread Alexander Dalloz
Am 27.03.2010 13:48, schrieb James Bensley: > Would help if I actually put the link in maybe? Doh! > > http://pastebin.com/raw.php?i=QRYHjDpQ Why `ping -c $PCount $hosts | grep "64 bytes" | wc | awk {'print $1'}' when `ping -c $PCount $hosts | grep -c "64 bytes"' is sufficient? Alexander _

Re: [CentOS] "internet connection tester script"

2010-03-27 Thread James Bensley
On 27 March 2010 12:47, James Bensley wrote: > On 27 March 2010 12:07, Jozsef Vadkan wrote: > >> Why doesn't my "internet-connection" script work? >> >> When I plug the ethcable out, it just waits...and waits...and waits... >> >> The script: http://pastebin.com/AE9U1qdL >> > > This is a ping scr

Re: [CentOS] "internet connection tester script"

2010-03-27 Thread James Bensley
On 27 March 2010 12:07, Jozsef Vadkan wrote: > Why doesn't my "internet-connection" script work? > > When I plug the ethcable out, it just waits...and waits...and waits... > > The script: http://pastebin.com/AE9U1qdL > This is a ping script I use to check my boxes are all up an running each morn

Re: [CentOS] "internet connection tester script"

2010-03-27 Thread Hakan Koseoglu
Hi Jozsef, On Sat, Mar 27, 2010 at 12:07 PM, Jozsef Vadkan wrote: > Why doesn't my "internet-connection" script work? I suggest you double-check the Advanced Bash Scripting Guide. You posted this to a couple of sites. In your if statements, you must do if `statement`; then foo; fi Don't forget t

[CentOS] "internet connection tester script"

2010-03-27 Thread Jozsef Vadkan
Why doesn't my "internet-connection" script work? When I plug the ethcable out, it just waits...and waits...and waits... The script: http://pastebin.com/AE9U1qdL ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos