LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 04-24-2008, 03:16 PM   #1
psandeepnair1985
LQ Newbie
 
Registered: Mar 2007
Posts: 9

Rep: Reputation: 0
Question Adding network filter extension "time" patch(iptables)


Hi everyone,


I want to use "time" module of "iptables".

So i tried adding the patch as follows and failed

-------------screen shot-------------------------------------------------------------------

[root@localhost patch-o-matic-20041009]# ./runme --batch base/time.patch
Hey! KERNEL_DIR is not set.
Where is your kernel? [/usr/src/linux] /usr/src/linux-2.6.23.1
Examining kernel in /usr/src/linux-2.6.23.1
-----------------------------------------------------------------

Welcome to Rusty's Patch-o-matic!

Kernel: /usr/src/linux-2.6.23.1
Userspace: /home/sandeep/Desktop

Each patch is a new feature: many have minimal impact, some do not.
Almost every one has bugs, so I don't recommend applying them all!
-------------------------------------------------------
Testing... time.patch NOT APPLIED (2 missing files)
The base/time patch:
Author: Fabrice MARIE <fabrice@netfilter.org>
Status: It Works For Me.

This option adds CONFIG_IP_NF_MATCH_TIME, which supplies a time match module.
This match allows you to filter based on the packet arrival time
(arrival time at the machine which the netfilter is running on) or
departure time (for locally generated packets).

Supported options are:
--timestart HH:MM
The starting point of the time match frame.

--timestop HH:MM
The stopping point of the time match frame

--days Tue,Mon...
Days of the week to match separated by a coma, no space
(one of Sun,Mon,Tue,Wed,Thu,Fri,Sat)

Example:
-A INPUT -m time --timestart 8:00 --timestop 18:00 --days Mon,Tue,Wed,Thu,Fri
will match packets that have an arrival timestamp in the range 8:00->18:00 from Monday
to Friday.

-A OUTPUT -m time --timestart 8:00 --timestop 18:00 --Days Mon
will match the packets (locally generated) that have a departure timestamp
in the range 8:00->18:00 on Monday only.
Testing patch base/time.patch...
Warning - no help text file could be found in either
/usr/src/linux-2.6.23.1/net/ipv4/netfilter/Config.help
or /usr/src/linux-2.6.23.1/Documentation/Configure.help
Could not find place to slot in Config.in line
TEST FAILED: patch NOT applied.
------------------------------------------------------------------------------------------------



my kernel version is 2.6.23.1
my iptables version is 1.3.8

the patch-o-matic which i downloaded was patch-o-matic-20041009.tar.bz2 from netfilter

================================================== ========

So can anyone help me in finding a solution to the above problem........

I am trying desperately for past 3-4 days
 
Old 04-24-2008, 10:48 PM   #2
fabricemarie
LQ Newbie
 
Registered: Mar 2004
Distribution: Mandrake
Posts: 2

Rep: Reputation: 0
time match is merged in the kernel

Hello,

The last few releases of the 2.6 kernel have had the time
match merged already, so you don't need to use patch-o-matic
any longer if all you want is the time match.
All you have to do is to make sure the time match
get built when you compile your kernel, so simply
check the kernel build configuration..

Have a nice day,
Fabrice.
 
  


Reply



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
"Xlib: extension "XFree86-DRI" missing on display ":0.0"." zaps Linux - Games 9 05-14-2007 03:07 PM
Video Card Nvidia Driver Xlib: extension "GLX" missing on display ":0.0". badgerbox76 Linux - Games 13 01-11-2006 04:47 PM
in the bridge mode of the linux 2.6kernel,how can I use iptables to filter "physin" fullbow Linux - Networking 0 06-01-2005 06:19 AM
suse ati driver "Xlib: extension "XiG-SUNDRY-NONSTANDARD" missing" madcow007 Linux - Hardware 0 03-06-2004 02:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration