All of lore.kernel.org
 help / color / mirror / Atom feed
* Problem after applying patch for "nth" module
@ 2005-12-06  7:34 vikrant
  2005-12-06 11:54 ` vikrant
  0 siblings, 1 reply; 2+ messages in thread
From: vikrant @ 2005-12-06  7:34 UTC (permalink / raw)
  To: netfilter

Hi,

I have successfully applied patch for "nth" module but when i am trying to
add the following RULE for testing purpose:-

"iptables -A INPUT -p icmp --icmp-type echo-request -m nth --every 2 -j DROP"

It throws a message "iptables: No chain/target/match by that name".

The steps i have followed to apply the patch for "nth" are:-
1 Apply the the patch for "nth" using patch-o-matic.
2 Recompile kernel
3 make and make install the iptables package.

I am trying it with kernel v2.6.14.2 and iptables v1.3.4.

After,the above failure i have tried the another way to use "nth", add nth
as a Module as follows:-
First i wrote a Makefile
----------------------------------------------------------------
obj-m += ipt_nth.o

all:
	make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules

clean:
	make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
-----------------------------------------------------------------------
then execute
#make
#insmod ./ipt_nth.ko

It works.Now,i am able to use nth module.

So,please tell what i missed or did wrong in patch-o-matic procedure.

Thanks
Vikrant


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Problem after applying patch for "nth" module
  2005-12-06  7:34 Problem after applying patch for "nth" module vikrant
@ 2005-12-06 11:54 ` vikrant
  0 siblings, 0 replies; 2+ messages in thread
From: vikrant @ 2005-12-06 11:54 UTC (permalink / raw)
  To: vikrant; +Cc: netfilter


Sorry,i missed some steps in the following procedure:-

>
>After,the above failure i have tried the another way to use "nth", add nth
>as a Module as follows:-
>  
>
[step missed] first store the " ipt_nth.h"  to the "netfilter_ipv4" 
directory.
then, i wrote a Makefile

>----------------------------------------------------------------
>obj-m += ipt_nth.o
>
>all:
>	make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
>
>clean:
>	make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
>-----------------------------------------------------------------------
>then execute
>#make
>#insmod ./ipt_nth.ko
>  
>
[step missed] make clean iptables.
[step missed]  make and make install iptables.

Thanks
Vikrant


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-12-06 11:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-06  7:34 Problem after applying patch for "nth" module vikrant
2005-12-06 11:54 ` vikrant

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.