Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
September 8, 2005, 10:35 pm
rate this thread
- Christopher Kerr
September 9, 2005, 12:53 pm
iptables itself can't, but cron can. Just write two firewall scripts:
one to block ''surfing'', one to allow it. Then put into crontab,
something like so:
# let folks browse starting midnight
0 0 * * * /path/to/firewall.browsingOK
# cut off browsing starting 12:01am
1 0 * * * /path/to/firewall.browsingBad
(try just my userid to email me)
see X- headers for PGP signature information
You can do it with time based rules.
iptables -A INPUT -s eth0 --dport http,https -m time --timestart
12:30 --timestop 13:30 --days Mon,Tue,Wed,Thu,Fri -j ACCEPT
Check this article out:
Look for section 6. Time-based Rules with time.
Although you may need to patch and compile iptables to enable this
- » Cloud Ace Technologies is offering Implementation Services on Cloud Computing, Cloud Serv...
- — Newest thread in » Linux Security