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. |
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! |
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? |
There is a kernel module for netfilter which does time control...
http://www.netfilter.org/documentati...base.html#time |
hi,
thanks for the link |
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. |