Re: Blocking the packets

From: Alan (alanat_private)
Date: Wed Nov 13 2002 - 07:48:48 PST

  • Next message: Greg KH: "Re: Example/template on LSM-Hook Usage"

      You need to use a netfilter target that does something with the packet.
    Check out the ULOG target and the ulogd daemon, which takes the packet out
    and logs it to a userspace daemon.
    
    -alan
    
    On Wed, 13 Nov 2002, Amit Sharma wrote:
    
    > Hi List,
    >
    > Am writing a simple firewall Gateway on Linux kernel 2.4 for self learning.
    > The first step of getting hold of packets has been carried out. I used libpcap for sniffing packets at the data link layer.
    > Now based on certain rules, I would like to stop a particular packet based on a rule from moving further to its destination machine. But my problem is:  how do I stop/block a packet from moving ahead in the network segment after sniffing it ?
    >
    > Thnx in advance,
    > Amit
    >
    >
    >
    
    Alan Willis
    alanat_private
    alanat_private
    
    _______________________________________________
    linux-security-module mailing list
    linux-security-moduleat_private
    http://mail.wirex.com/mailman/listinfo/linux-security-module
    



    This archive was generated by hypermail 2b30 : Wed Nov 13 2002 - 07:52:41 PST