LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   set time limit on allowed user in iptables? (https://www.linuxquestions.org/questions/linux-networking-3/set-time-limit-on-allowed-user-in-iptables-47773/)

luap 03-01-2003 02:55 PM

set time limit on allowed user in iptables?
 
hi.
with iptables as firewall,sharing internet with a small lan
with ip forwarding and nat, is it possible to set time usage limits for an allowed host? example, allowed host has internet access til 10pm est, and then becomes disallowed?
any assistance or links to help? thanks in advance.

markus1982 03-02-2003 04:25 AM

It's impossible to do so with iptables directly. If you want to block access at the firewall level then you should use a cron job and have an additional firewall rule added ... but you can do that only on a ip base ... so I won't recommend that way!

The better way would be restricting it in the service itself!

luap 03-02-2003 10:47 PM

hi,thanks for your answer. i'm using a ppp0 connection.
so there might be a way to set time limits within some ppp0 config setting?

peter_robb 03-03-2003 02:43 PM

There is a kernel module for netfilter which does time control...

http://www.netfilter.org/documentati...base.html#time

luap 03-03-2003 08:00 PM

hi,
thanks for the link

brutuz 03-04-2003 10:55 PM

you may want to try to explore squid.. i think it will answer your needs

HTH


All times are GMT -5. The time now is 10:33 PM.