Timer on BSD

Timer on BSD

Post by Dizzy Lizz » Sun, 18 Nov 2001 14:48:59



Hi Guys...

Is there a way to be able to set times for certain IP addresses on the
Internal network to access the Internet?

Eg...

PC 192.168.1.2 should only have accessto the Internet during 9.am to 5pm Mon
to Fri only.
Would I need to set this ip in ipf.rules?

I use a BSD PC as a gateway and mailserver, but I also have to use a Windows
PC to be able to run Winrote to set up a time table.

I would much rather do it all thru the BSD PC.

Any help would be great...

Cheers DL

 
 
 

Timer on BSD

Post by Marc Esp » Wed, 21 Nov 2001 03:12:38




>Hi Guys...

>Is there a way to be able to set times for certain IP addresses on the
>Internal network to access the Internet?

>Eg...

>PC 192.168.1.2 should only have accessto the Internet during 9.am to 5pm Mon
>to Fri only.
>Would I need to set this ip in ipf.rules?

The only way I see is to have several rule sets, and switch them around
based on a cron job.

 
 
 

Timer on BSD

Post by Dizzy Lizz » Wed, 21 Nov 2001 08:26:00





> >Hi Guys...

> >Is there a way to be able to set times for certain IP addresses on the
> >Internal network to access the Internet?

> >Eg...

> >PC 192.168.1.2 should only have accessto the Internet during 9.am to 5pm
Mon
> >to Fri only.
> >Would I need to set this ip in ipf.rules?

> The only way I see is to have several rule sets, and switch them around
> based on a cron job.

Thanks for your input Marc.

Any idea were I may find some info in this area?

Thanks DL.

 
 
 

Timer on BSD

Post by Erik Jan van Weste » Wed, 21 Nov 2001 13:43:03







>> >Hi Guys...

>> >Is there a way to be able to set times for certain IP addresses on the
>> >Internal network to access the Internet?

>> >Eg...

>> >PC 192.168.1.2 should only have accessto the Internet during 9.am to 5pm
> Mon
>> >to Fri only.
>> >Would I need to set this ip in ipf.rules?

>> The only way I see is to have several rule sets, and switch them around
>> based on a cron job.
> Thanks for your input Marc.
> Any idea were I may find some info in this area?

man 5 cron

How difficult can it be to reload a ruleset from a cronjob?

EJ
--
"This is not an attack! It is a pre-emptive retaliation."

 
 
 

1. FREE BSD fine-grain timer

hi, folks,

I need a fine-grain timer (33us) to revise a network interface driver.
If I change 'hz' and rebuild the kernal, do it works?

Usually, 'hz' is equal to 100. So, the timeout resolution is 10 ms.

If I changed to 'hz', I am wondering if other kernal parts which use
'hz' may be messed.

DO you have any ideas? Thanks for your inputs.

yingfei

--
===================================================
Yingfei Dong
4-192 EECS Building,
200 Union Street, SE            Tel: 612-626-7526
Minneapolis, MN 55455           FAX: 612-625-0572
===================================================

2. Setting file permissions on file created by O_CREAT

3. Comparison of BSD and Linux timer functions.

4. Support for ATI Video Xpression yet?

5. BSD, BSD or BSD?

6. NE4200 PCMCIA Ethernet and RedHat

7. Motif under Solaris 2.3 or 2.4, I don't care...

8. High-res-timers part 3 (POSIX clocks & timers) take 5

9. POSIX timers versus System V timers

10. Timer interrupt cleanups [2/3] - local timer