LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 03-28-2004, 08:17 PM   #1
J-Ben
LQ Newbie
 
Registered: Jan 2004
Posts: 1

Rep: Reputation: 0
iptables : Restrict access at certain times of day


I am new at linux and having lots of fun exploring it. Here is my problem:

I am using iptables and two nic cards as a gateway to the internet. Some iptables tutorials suggest that it is possible to restrict access to certain computer to the internet based on different times of the day, yet I am having difficulty finding any documentation indicating how to implement such a restriction.

Any help is greatly appreciated,

Thank you,
 
Old 03-28-2004, 09:38 PM   #2
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 57
There are two basic approaches to do this.

1. There is the Patch-o-Matic netfilter extension 'time' that allows you to match packets based on time of arrival. If you are not familiar with POM, it requires a kernel recompilation in order to incorperate the desired netfilter patches. Check out the HOWTO and the description of the 'time' extension:

http://www.netfilter.org/documentati...ons-HOWTO.html

2. Second way use to use two seperate iptables scripts that are run via cron jobs. Think "script A is run at 8 am, script B is then run at 6pm". Probably easier to implement if you just want something simplistic. If you have something very complex in mind, then POM will probably be the better option.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ximian Evolution cannot fetch email- error several times per day Maxei Linux - Software 0 09-03-2005 10:40 AM
squid + bandwidth cutoff at specific times of day avirup dasgupta Linux - Networking 2 09-01-2005 02:42 AM
restrict access using squid, iptables? jgnasser Linux - Networking 3 04-13-2005 07:21 AM
How to Restrict User Logon Times in Mandrake 10.0 XtremeNissan Mandriva 0 08-25-2004 09:34 PM
Need to restrict login times for vsftp thebrit123 Linux - Software 0 06-09-2003 09:27 AM


All times are GMT -5. The time now is 11:20 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration