Networking Forums

Networking Forums > Computer Networking > Linux Networking > Filtering UDP packets from going up the stack

Reply
Thread Tools Display Modes

Filtering UDP packets from going up the stack

 
 
Steve Helding
Guest
Posts: n/a

 
      10-29-2004, 02:18 AM
I would like to be able to filter UDP packets from entering my Linux
stack. It's an experiment I'm working on. If anyone knows off the top
of their head how to do this I would appreciate the input. First off, I
know it probably requires rebuilding the kernel. Secondly, based on my
review of the Linux network stack source code it appears that I can
easily determine which packets are UDP but the thing that concerns me is
that it appears I need to free some dynamically created packet buffer
even though I want to throw away the packet. Anyone have any
suggestions or things to look out for?

 
Reply With Quote
 
 
 
 
Toni Erdmann
Guest
Posts: n/a

 
      10-29-2004, 11:59 AM
Steve Helding wrote:
> I would like to be able to filter UDP packets from entering my Linux
> stack. It's an experiment I'm working on. If anyone knows off the top
> of their head how to do this I would appreciate the input. First off, I
> know it probably requires rebuilding the kernel. Secondly, based on my
> review of the Linux network stack source code it appears that I can
> easily determine which packets are UDP but the thing that concerns me is
> that it appears I need to free some dynamically created packet buffer
> even though I want to throw away the packet. Anyone have any
> suggestions or things to look out for?
>


Probably 'iptables' with 'QUEUE' and an application for using that
can help.
You don't have to rebuild the kernel then.

Toni
 
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to tell an application to use a custom tcp/ip stack instead of tcp/ip stack from linux? CDP Linux Networking 18 07-06-2005 01:45 PM
how to remove atcp/ip stack and add a third party stack in linux RajaSekhar.Kavuri Linux Networking 1 03-22-2005 06:30 PM
these packets are filtering through the router firewall H. S. Linux Networking 0 01-06-2005 11:14 PM
filtering outgoing esp traffic with 2.6 stack David Hajek Linux Networking 0 09-01-2004 09:19 AM
Packets from bottom of TCP/IP stack direct to application bypassing stack Cameron Kerr Linux Networking 2 06-09-2004 12:19 PM



1 2 3 4 5 6 7 8 9 10 11