LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 12-03-2003, 08:51 AM   #1
karunesh
Member
 
Registered: Jan 2002
Location: India
Distribution: CentOS/Mandriva
Posts: 126

Rep: Reputation: 15
time base iptables rule


I want to change the iptables rules based on the time of the day automatically. Is there any way to do that apart from working with "cron".

 
Old 12-03-2003, 12:19 PM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,780
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
I think you need to take the cron route. As far as I know, iptables has no concept of time.
 
Old 12-03-2003, 01:32 PM   #3
karunesh
Member
 
Registered: Jan 2002
Location: India
Distribution: CentOS/Mandriva
Posts: 126

Original Poster
Rep: Reputation: 15
Thanks hangdog, actually I was just searcing on net about this then I came accross with "iptables patch-o-matic".And it says that you can create the time base rules.But I am not able to get the actual patch.

 
Old 12-07-2003, 06:16 PM   #4
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 57
You can get patch-o-matic from the Netfilter website, but it is not trivial to implement. IIRC it requires a kernel recompilation to allow patch-o-matic support, (though it may just need to be compiled against the kernel headers, I'm not 100% sure). If you are trying to setup a relatively simple time-based ruleset, I would use cron (as Hangdog42 suggested) to just run two or more different iptables scripts. If you have a very complex time-based ruleset, the POM might be worth the effort of setting it up.

Newest patch-o-matic link:

http://www.netfilter.org/files/patch...030912.tar.bz2
 
Old 12-10-2003, 10:14 AM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,017
Blog Entries: 54

Rep: Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764
I want to change the iptables rules based on the time of the day automatically.
What would you need it for?
Be specific and verbose please if you can.
 
  


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
Question about a iptables rule? rjw1678 Linux - Security 2 11-18-2005 07:46 AM
help with iptables rule!! vishamr2000 Linux - Security 6 11-09-2005 05:34 AM
iptables rule order Kumado Linux - Security 4 10-13-2005 11:12 PM
iptables rule to let samba in phishintrip Linux - Networking 7 10-17-2003 10:25 AM
IPTables Rule... Grim Reaper Linux - Software 8 04-28-2003 12:20 PM


All times are GMT -5. The time now is 11:29 AM.

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