Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "Rob Sterenborg" <rob@sterenborg.info>
To: netfilter@lists.netfilter.org
Subject: RE: getting iptables into embedded kernel
Date: Tue, 31 Jul 2007 11:12:01 +0200	[thread overview]
Message-ID: <024c01c7d352$daf7f250$0b0ffe0a@NS006819> (raw)
In-Reply-To: <4244373FF2155241B4AEDE42D89F665DDB8431@MSGCELMBX.ent.bhicorp.com>

>> How to get iptables into a ppc kernel (2.6, netfilter
>> enabled) and where to store what to have functionality from the
>> start? I used NO_SHARED_LIBS=1
>> I am able to download start the kernel, but do not find iptables.
> 
> AFAIK you cannot.
> Iptables is a *user*space utility to configure the Netfilter framework
> and I don't see how you'd compile that into the kernel.
> 
> 
> Rob
> 
> 
> Ok, I am a little confused with kernel modules. Anyhow I would like to
> do something like this here (from the install):
> "
> 4) If you want to build a statically linked version of the iptables
>    binary, without the need for loading the plugins at runtime (e.g.
>    for an embedded device or router-on-a-disk), please use
> 
> 	% make NO_SHARED_LIBS=1
> "
> 
> and I get a rather large executable binary (700kB). But I
> can't execute this nor do I know how to make it run inside my target.
> Klaus

This is something different from compiling things "into" the kernel.
You've just built a statically linked iptables binary: those binaries
don't need external libraries, which is why they are larger because the
functionality in the libraries must be present in the binary to actually
make it standalone.

So, you still get a binary called iptables which must be run from some
shell (I guess).


Rob




  reply	other threads:[~2007-07-31  9:12 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-31  8:54 getting iptables into embedded kernel Wacker, Klaus
2007-07-31  9:12 ` Rob Sterenborg [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-07-31 11:44 Klaus Wacker
2007-07-31 10:32 Klaus Wacker
2007-07-31  9:24 Klaus Wacker
2007-07-31 10:09 ` Frank Petran
2007-07-31  7:35 Wacker, Klaus
2007-07-31  7:57 ` Rob Sterenborg

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='024c01c7d352$daf7f250$0b0ffe0a@NS006819' \
    --to=rob@sterenborg.info \
    --cc=netfilter@lists.netfilter.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox