UpDown.cgi working fine in inside my network but its not able to ping outside of my network, there is some prblem in UpDown Net:Ping::External , Please help me how to fix this problem.
Net Ping External is install in my Linux PC and working fine, because the below mention script is working fine with Net Ping External in my PC.
#!/usr/bin/perl
use Net::Ping::External qw(ping);
# Or a list of hosts 10.16.10.0 is my inside network 62.216.xxx.0 is Outside network.
my @hosts = qw(10.16.10.1 10.16.10.2 10.16.10.5 62.216.xxx.xx 62.216.xxx.xx);
my $num_alive = 0;
foreach (@hosts) {
$alive = ping(hostname => $_, timeout => 5);
print "$_ is alive!\n" if $alive;
}
and the result is
[root@networkmoni ~]# ./netping.pl
10.16.10.1 is alive!
10.16.10.2 is alive!
10.16.10.5 is alive!
62.216.xxx.xx is alive!
62.216.xxx.xx is alive!
[root@networkmoni ~]#
