[ale] Detecting number of hosts behind a NAT device

James P. Kinney III jkinney at localnetsolutions.com
Thu Apr 24 22:19:48 EDT 2003


Make it more fun:

cron job

2 * * * * /usr/local/sbin/random_ttl

/usr/local/sbin/random_ttl

#!/usr/bin/perl
srand (time ^ $$ ^ unpack "%32L*", `ps axww | gzip`);
$ttl = int(rand 65) + 64;
open (OUT, ">/proc/sys/net/ipv4/ip_default_ttl");
print OUT "$ttl";
close OUT;
exit;



On Thu, 2003-04-24 at 21:59, Doug McNash wrote:
> echo 65 > /proc/sys/net/ipv4/ip_default_ttl
> 
> 
> 
> 
> >So how do you actually go about changing the ttl under 
> >linux?
> 
> --
> Doug McNash
> dmcnash at smyrnacable.net
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale
-- 
James P. Kinney III          \Changing the mobile computing world/
CEO & Director of Engineering \          one Linux user         /
Local Net Solutions,LLC        \           at a time.          /
770-493-8244                    \.___________________________./
http://www.localnetsolutions.com

GPG ID: 829C6CA7 James P. Kinney III (M.S. Physics) <jkinney at localnetsolutions.com>
Fingerprint = 3C9E 6366 54FC A3FE BA4D 0659 6190 ADC3 829C 6CA7 

 This is a digitally signed message part




More information about the Ale mailing list