<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Creating a Netfilter kernel module which filters UDP packets</title>
	<atom:link href="http://www.paulkiddie.com/2009/11/creating-a-netfilter-kernel-module-which-filters-udp-packets/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.paulkiddie.com/2009/11/creating-a-netfilter-kernel-module-which-filters-udp-packets/</link>
	<description>Mainly coding...</description>
	<lastBuildDate>Thu, 26 Jan 2012 09:11:19 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: Kesava</title>
		<link>http://www.paulkiddie.com/2009/11/creating-a-netfilter-kernel-module-which-filters-udp-packets/comment-page-1/#comment-912</link>
		<dc:creator>Kesava</dc:creator>
		<pubDate>Thu, 24 Nov 2011 07:18:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.paulkiddie.com/?p=186#comment-912</guid>
		<description>HI Paul,

Thank You Very Much for the Information. It helped me a lot.  I am trying to add an Extra IP header over the Received Ping Packet. I have increased the size of skb by 20 bytes and filled the IP Header Fields accordingly.

After adding the IP header ; I have return NF_STOLEN. Please let me know ; What is the Function that I should call to forward the STOLEN Packet?? OR Please Point me to some Documentation from where I can get the necessary information ???

-Thanks in Advance,
VKS</description>
		<content:encoded><![CDATA[<p>HI Paul,</p>
<p>Thank You Very Much for the Information. It helped me a lot.  I am trying to add an Extra IP header over the Received Ping Packet. I have increased the size of skb by 20 bytes and filled the IP Header Fields accordingly.</p>
<p>After adding the IP header ; I have return NF_STOLEN. Please let me know ; What is the Function that I should call to forward the STOLEN Packet?? OR Please Point me to some Documentation from where I can get the necessary information ???</p>
<p>-Thanks in Advance,<br />
VKS</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Miracle</title>
		<link>http://www.paulkiddie.com/2009/11/creating-a-netfilter-kernel-module-which-filters-udp-packets/comment-page-1/#comment-893</link>
		<dc:creator>Miracle</dc:creator>
		<pubDate>Fri, 14 Oct 2011 08:04:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.paulkiddie.com/?p=186#comment-893</guid>
		<description>I try to do something more : modify tcp header and then calculate tcp checksum again by using Netfilter. Can you help me to do with this.</description>
		<content:encoded><![CDATA[<p>I try to do something more : modify tcp header and then calculate tcp checksum again by using Netfilter. Can you help me to do with this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karol Sabat</title>
		<link>http://www.paulkiddie.com/2009/11/creating-a-netfilter-kernel-module-which-filters-udp-packets/comment-page-1/#comment-823</link>
		<dc:creator>Karol Sabat</dc:creator>
		<pubDate>Mon, 06 Dec 2010 08:20:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.paulkiddie.com/?p=186#comment-823</guid>
		<description>Hey Folks,

Had the same problem so, do the trick;)

#undef __KERNEL__
#include  /* for constants like NF_IP_PRI_FIRST */
#define __KERNEL__

Regards,
Karol</description>
		<content:encoded><![CDATA[<p>Hey Folks,</p>
<p>Had the same problem so, do the trick;)</p>
<p>#undef __KERNEL__<br />
#include  /* for constants like NF_IP_PRI_FIRST */<br />
#define __KERNEL__</p>
<p>Regards,<br />
Karol</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sunil shah</title>
		<link>http://www.paulkiddie.com/2009/11/creating-a-netfilter-kernel-module-which-filters-udp-packets/comment-page-1/#comment-775</link>
		<dc:creator>sunil shah</dc:creator>
		<pubDate>Mon, 18 Oct 2010 15:08:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.paulkiddie.com/?p=186#comment-775</guid>
		<description>to get rid of freezing problem change
sk_buff **skb
to
sk_buff *skb

and
sock_buff = * skb to
sock_buff = skb

and for         nfho.hooknum = NF_IP_PRE_ROUTING error
either set it to 0
or  change it to 
        nfho.hooknum = NF_INET_PRE_ROUTING; ( not sure)</description>
		<content:encoded><![CDATA[<p>to get rid of freezing problem change<br />
sk_buff **skb<br />
to<br />
sk_buff *skb</p>
<p>and<br />
sock_buff = * skb to<br />
sock_buff = skb</p>
<p>and for         nfho.hooknum = NF_IP_PRE_ROUTING error<br />
either set it to 0<br />
or  change it to<br />
        nfho.hooknum = NF_INET_PRE_ROUTING; ( not sure)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: saurabh</title>
		<link>http://www.paulkiddie.com/2009/11/creating-a-netfilter-kernel-module-which-filters-udp-packets/comment-page-1/#comment-770</link>
		<dc:creator>saurabh</dc:creator>
		<pubDate>Thu, 07 Oct 2010 13:00:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.paulkiddie.com/?p=186#comment-770</guid>
		<description>Similar freeze for me on ubuntu 10.04. I am using a similar code. To me it looks like whenever I try to read  &quot;ip_header&quot; extracted from sk_buff, i get the freeze.</description>
		<content:encoded><![CDATA[<p>Similar freeze for me on ubuntu 10.04. I am using a similar code. To me it looks like whenever I try to read  &#8220;ip_header&#8221; extracted from sk_buff, i get the freeze.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maaz Khan</title>
		<link>http://www.paulkiddie.com/2009/11/creating-a-netfilter-kernel-module-which-filters-udp-packets/comment-page-1/#comment-765</link>
		<dc:creator>Maaz Khan</dc:creator>
		<pubDate>Sat, 25 Sep 2010 23:18:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.paulkiddie.com/?p=186#comment-765</guid>
		<description>Hi I suppose my reply is very late but if anyone is still having problem: ‘NF_IP_PRE_ROUTING’ undeclared (first use in this function)

try using 0 instead of ‘NF_IP_PRE_ROUTING’ because NF_IP_PRE_ROUTING=0;

Also when i run you UDP capture example the system freezes any suggestion... i m using ubuntu 8.04

thanks</description>
		<content:encoded><![CDATA[<p>Hi I suppose my reply is very late but if anyone is still having problem: ‘NF_IP_PRE_ROUTING’ undeclared (first use in this function)</p>
<p>try using 0 instead of ‘NF_IP_PRE_ROUTING’ because NF_IP_PRE_ROUTING=0;</p>
<p>Also when i run you UDP capture example the system freezes any suggestion&#8230; i m using ubuntu 8.04</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: prashant kapoor</title>
		<link>http://www.paulkiddie.com/2009/11/creating-a-netfilter-kernel-module-which-filters-udp-packets/comment-page-1/#comment-718</link>
		<dc:creator>prashant kapoor</dc:creator>
		<pubDate>Fri, 11 Jun 2010 15:43:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.paulkiddie.com/?p=186#comment-718</guid>
		<description>Hi Paul

Congrats , I think you have the best tutorial explaining netfilter kernel module.

If we make drastic changes to the packet that the packet is not at all recognizable and we want to send the packets back to the pre-routing, do we have to do something special?</description>
		<content:encoded><![CDATA[<p>Hi Paul</p>
<p>Congrats , I think you have the best tutorial explaining netfilter kernel module.</p>
<p>If we make drastic changes to the packet that the packet is not at all recognizable and we want to send the packets back to the pre-routing, do we have to do something special?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jashmi</title>
		<link>http://www.paulkiddie.com/2009/11/creating-a-netfilter-kernel-module-which-filters-udp-packets/comment-page-1/#comment-649</link>
		<dc:creator>jashmi</dc:creator>
		<pubDate>Tue, 20 Apr 2010 16:08:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.paulkiddie.com/?p=186#comment-649</guid>
		<description>Hi paul, 
 I am a beginer .I tried inserting this module and module insertion was successfull.But wen i sent traffic , system hangs.Any suggestion on what can be done for this problem.I changed NF_IP_PRE_ROUTING as NF_INET_PRE_ROUTING.</description>
		<content:encoded><![CDATA[<p>Hi paul,<br />
 I am a beginer .I tried inserting this module and module insertion was successfull.But wen i sent traffic , system hangs.Any suggestion on what can be done for this problem.I changed NF_IP_PRE_ROUTING as NF_INET_PRE_ROUTING.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Evans</title>
		<link>http://www.paulkiddie.com/2009/11/creating-a-netfilter-kernel-module-which-filters-udp-packets/comment-page-1/#comment-316</link>
		<dc:creator>Ben Evans</dc:creator>
		<pubDate>Mon, 25 Jan 2010 18:16:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.paulkiddie.com/?p=186#comment-316</guid>
		<description>Hi Paul,

Thanks for this series of articles - they&#039;ve been very useful so far.

One thing, is that neither this one nor the previous seem to work on Ubuntu 9 (2.6.28-16 kernel). The errors look like this:

bje@bje-desktop:~/projects/netfilter-test$ make
make -C /lib/modules/2.6.28-16-generic/build SUBDIRS=/home/bje/projects/netfilter-test modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.28-16-generic&#039;
  CC [M]  /home/bje/projects/netfilter-test/nfudp.o
/home/bje/projects/netfilter-test/nfudp.c: In function ‘init_module’:
/home/bje/projects/netfilter-test/nfudp.c:42: warning: assignment from incompatible pointer type
/home/bje/projects/netfilter-test/nfudp.c:43: error: ‘NF_IP_PRE_ROUTING’ undeclared (first use in this function)
/home/bje/projects/netfilter-test/nfudp.c:43: error: (Each undeclared identifier is reported only once
/home/bje/projects/netfilter-test/nfudp.c:43: error: for each function it appears in.)
make[2]: *** [/home/bje/projects/netfilter-test/nfudp.o] Error 1
make[1]: *** [_module_/home/bje/projects/netfilter-test] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.28-16-generic&#039;
make: *** [default] Error 2

Examining linux/netfilter_ipv4.h seems to indicate that an #ifndef __KERNEL__ now extends further than it used to and is preventing NF_IP_PRE_ROUTING from being visible to the module. Something similar is suggested by:

http://markmail.org/message/kvzvzc32v3htduin#query:netfilter_ipv4.h%20changes%20kernel+page:1+mid:chddq75k2cxjzuqr+state:results

Any thoughts as to what needs to be done to change these examples to work with a 2.6.28-16 or thereabouts kernel?</description>
		<content:encoded><![CDATA[<p>Hi Paul,</p>
<p>Thanks for this series of articles &#8211; they&#8217;ve been very useful so far.</p>
<p>One thing, is that neither this one nor the previous seem to work on Ubuntu 9 (2.6.28-16 kernel). The errors look like this:</p>
<p>bje@bje-desktop:~/projects/netfilter-test$ make<br />
make -C /lib/modules/2.6.28-16-generic/build SUBDIRS=/home/bje/projects/netfilter-test modules<br />
make[1]: Entering directory `/usr/src/linux-headers-2.6.28-16-generic&#8217;<br />
  CC [M]  /home/bje/projects/netfilter-test/nfudp.o<br />
/home/bje/projects/netfilter-test/nfudp.c: In function ‘init_module’:<br />
/home/bje/projects/netfilter-test/nfudp.c:42: warning: assignment from incompatible pointer type<br />
/home/bje/projects/netfilter-test/nfudp.c:43: error: ‘NF_IP_PRE_ROUTING’ undeclared (first use in this function)<br />
/home/bje/projects/netfilter-test/nfudp.c:43: error: (Each undeclared identifier is reported only once<br />
/home/bje/projects/netfilter-test/nfudp.c:43: error: for each function it appears in.)<br />
make[2]: *** [/home/bje/projects/netfilter-test/nfudp.o] Error 1<br />
make[1]: *** [_module_/home/bje/projects/netfilter-test] Error 2<br />
make[1]: Leaving directory `/usr/src/linux-headers-2.6.28-16-generic&#8217;<br />
make: *** [default] Error 2</p>
<p>Examining linux/netfilter_ipv4.h seems to indicate that an #ifndef __KERNEL__ now extends further than it used to and is preventing NF_IP_PRE_ROUTING from being visible to the module. Something similar is suggested by:</p>
<p><a href="http://markmail.org/message/kvzvzc32v3htduin#query:netfilter_ipv4.h%20changes%20kernel+page:1+mid:chddq75k2cxjzuqr+state:results" rel="nofollow">http://markmail.org/message/kvzvzc32v3htduin#query:netfilter_ipv4.h%20changes%20kernel+page:1+mid:chddq75k2cxjzuqr+state:results</a></p>
<p>Any thoughts as to what needs to be done to change these examples to work with a 2.6.28-16 or thereabouts kernel?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Srudeep K</title>
		<link>http://www.paulkiddie.com/2009/11/creating-a-netfilter-kernel-module-which-filters-udp-packets/comment-page-1/#comment-145</link>
		<dc:creator>Srudeep K</dc:creator>
		<pubDate>Mon, 02 Nov 2009 19:35:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.paulkiddie.com/?p=186#comment-145</guid>
		<description>Is there any other way to do it? Is acess to the saddr field of iphdr structure is legal? or is there any other method to access it?</description>
		<content:encoded><![CDATA[<p>Is there any other way to do it? Is acess to the saddr field of iphdr structure is legal? or is there any other method to access it?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Served from: www.paulkiddie.com @ 2012-02-07 23:43:44 -->
