Re: [Programming] kernel level grab packet

From: Michael Heiming (michael+USENET_at_www.heiming.de)
Date: 01/29/04


Date: Thu, 29 Jan 2004 01:02:31 +0100

Shin <gelidmite@yahoo.com> wrote:
> Hi,
> I don't know if I used a good subject because I am not
> familiar with linux kernel programming. I heard it may
> meet my need from someone.
>
> I want to write a program which can filter (or just check)
> internet packets before other applications. It is like
> a guard which collects all internet traffic, even belonging
> to other application, and then pass the packet to where it is
> supposed to go (might be other high level application).
                                                                                 
> The main point is that these high level applications won't
> notice the guard's existence. I heard programming in kernel
> level can achieve this. After searching the internet, I found
> some materials, but they are not specific enough for my requirement.

What are your requirements? There is a state-full firewall built
into the Linux kernel, the user-space tool for setting up is
(2.4.x) 'iptables'. This sounds like what you want.
Hint
man iptables
                                                                                 
> I have "Linux Device Drivers, 2nd Edition By Alessandro Rubini &
> Jonathan Corbet". Still reading it. So far, didn't find things
> about what I mentioned above.
>
> Anyone knows good documents/toturial/material for me?

www.tlpd.org probably has some.

-- 
Michael Heiming
Remove +SIGNS and www. if you expect an answer, sorry for 
inconvenience, but I get tons of SPAM


Relevant Pages

  • [Programming] kernel level grab packet
    ... familiar with linux kernel programming. ... internet packets before other applications. ... The main point is that these high level applications won't ...
    (alt.os.linux)
  • [Programming] kernel level grab packet
    ... familiar with linux kernel programming. ... internet packets before other applications. ... The main point is that these high level applications won't ...
    (comp.os.linux.misc)
  • More People Turn to the Web to Watch TV
    ... about creating fully interactive television that would allow viewers to ... Internet programming is beginning ... Internet to offer video news updates and reports that do not fit in the ...
    (rec.arts.tv)
  • Re: Social Engineering
    ... This is some of the most inane rambling I've ever seen on the internet. ... social engineering is often effective. ... > television news PROGRAMMING offered by the same NWO powerbrokers who ... > client software and an egalitarian linking of those compute-nodes into ...
    (comp.security.misc)
  • Re: Social Engineering
    ... This is some of the most inane rambling I've ever seen on the internet. ... social engineering is often effective. ... > television news PROGRAMMING offered by the same NWO powerbrokers who ... > client software and an egalitarian linking of those compute-nodes into ...
    (alt.computer.security)