All of lore.kernel.org
 help / color / mirror / Atom feed
From: Luciano Coelho <luciano.coelho@nokia.com>
To: ext Nicola Padovano <nicola.padovano@gmail.com>
Cc: netfilter-devel <netfilter-devel@vger.kernel.org>
Subject: Re: write a new simple target for netfilter
Date: Mon, 30 Aug 2010 16:34:27 +0300	[thread overview]
Message-ID: <1283175267.3085.21.camel@chilepepper> (raw)
In-Reply-To: <AANLkTinLYRcgf3rxWYMMFZ5BmVdQgTojKExtpNbY-Jo7@mail.gmail.com>

On Mon, 2010-08-30 at 15:25 +0200, ext Nicola Padovano wrote:
> i make an error the iptables line is:
>  iptables -A INPUT -s 127.0.0.1 -p icmp -j TAR
> 
> On Mon, Aug 30, 2010 at 3:22 PM, Nicola Padovano
> <nicola.padovano@gmail.com> wrote:
> > Hi all!
> > I've write the following  (and dummy) module that drops all packet...
> > but...now? after i write the module i can use it?
> > for example: i want digit:
> > iptables -A INPUT -s 127.0.0.1 -p icmp -j DROP
> > but i don't know how create this new target...
> > I've modified the netfilter makefile e Kbuild file (in net/netfilter),
> > and then i've do 'make' 'make modules' 'make modules_install' but
> > after i digit iptables i have this message
> >
> > "iptables v1.4.2: Couldn't load target `TAR':/lib/xtables/libipt_TAR.
> > so: cannot open shared object file: No such file or directory"
> >
> > what's my problem?

You need to add support for your new target in the iptables userspace
tool as well.  Check the source code here:

https://git.netfilter.org/cgi-bin/gitweb.cgi?p=iptables.git;a=summary

You need to add a new extension file called extensions/libipt_TAR.c, the
rest should take care of itself ;)

-- 
Cheers,
Luca.


  reply	other threads:[~2010-08-30 13:34 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-30 13:22 write a new simple target for netfilter Nicola Padovano
2010-08-30 13:25 ` Nicola Padovano
2010-08-30 13:34   ` Luciano Coelho [this message]
2010-08-30 13:46     ` Nicola Padovano
2010-08-30 13:53       ` Luciano Coelho
2010-08-30 13:57   ` Justin Kamerman
2010-08-30 14:21     ` Nicola Padovano
2010-08-30 14:34       ` Justin Kamerman
2010-08-30 14:59       ` Jan Engelhardt
2010-08-30 15:15         ` Nicola Padovano
2010-08-30 18:35         ` Nicola Padovano
2010-08-30 18:45           ` Jan Engelhardt
2010-08-30 19:00             ` Nicola Padovano
2010-08-30 19:07               ` Jan Engelhardt
2010-08-30 21:47                 ` Nicola Padovano
2010-08-30 22:25                   ` Jan Engelhardt
2010-08-30 22:30                     ` Nicola Padovano
2010-08-30 23:02                       ` Nicola Padovano
2010-08-30 23:09                         ` Jan Engelhardt
2010-08-30 23:17                           ` Nicola Padovano
2010-08-30 23:53                             ` Jan Engelhardt
2010-08-30 17:51 ` Elmar Stellnberger
2010-08-30 18:30   ` Justin Kamerman
2010-08-30 18:34   ` Jan Engelhardt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1283175267.3085.21.camel@chilepepper \
    --to=luciano.coelho@nokia.com \
    --cc=netfilter-devel@vger.kernel.org \
    --cc=nicola.padovano@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.