Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Avoid creating PPTP default routes' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Avoid creating PPTP default routes
Authored by: kholburn on Sep 10, '03 03:28:04AM

You could also if you wanted change the idle time:

#!/usr/bin/perl
my @args = @ARGV;
for @args {
s/^defaultroute/nodefaultroute/;
s/1800/18000/;
}
exec "/usr/sbin/pppd.orig", @args;

or

#!/usr/bin/perl
my @args = @ARGV;
for @args {
s/^defaultroute/nodefaultroute/;
if ($last eq "idle" ) { $_ = 18000; }
$last=$_;
}
exec "/usr/sbin/pppd.orig", @args;



[ Reply to This | # ]