At 08:52 AM 1/25/99 +0100, you wrote:
>"David A. Ranch" a �crit :
>
>> I'm sure this is possible but you'd have to write a script
>> that monitors the output of "ipfwadm -M -l". Once a
>> given timeout is hit, you can execute a new IPFWADM ruleset.
>
>Hi David,
>
>Thanks but I dont have any inactivity time information with this
>command. What I
>would like is just remove a rule when it hasn't been used for a certain
>time
>(10-15 minutes for instance).
>
>For the short story: I use dial-on-demand but it's fired up too often
>because of
>Win95 programs trying to connect to the Net even if the user doesn't
>want to do
>so. For a couple of other reasons I've set a script to add masq rules on
>a per
>user basis. But as I can't rely to them to toggle off those rules when
>they stop
>surfing the Net, I would like to run a daemon that will auto-toggle-off
>unused
>rules after a certain time. Maybe ip accounting could also help but I
>don't really
>know how...
>
>Regards,
>
>Gildas.
>
>--
>/-----------------------------*-----------------------------\
>| Syst�mes & Technologies | T�l: +33 2 96438787 |
>| Informatiques du Ponant | Fax: +33 2 96438788 |
>| 27, rue Auguste Brizeux | email: [EMAIL PROTECTED] |
>| 22200 Guingamp - France | web: http://www.stip.fr |
>\-----------------------------*-----------------------------/
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>For daily digest info, email [EMAIL PROTECTED]
>
ipfwadm -F -l -e -x
This will list the forwarding rules, and will give 'byte counts'. Your cron
job can check the rules, and when the byte counts are stable for too many
minutes, you can delete the rules in question.
Good luck!
Michael Kohne
[EMAIL PROTECTED]
"The apocalypse: it's not just for religious extremists anymore."
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For daily digest info, email [EMAIL PROTECTED]