public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Mark Shields" <laebshade@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] iptables will not load rule after kernel upgrade (2.6.19-r5 -> 2.6.20-r6)
Date: Sat, 21 Apr 2007 14:34:59 -0400	[thread overview]
Message-ID: <642958cc0704211134ne758483yd2d1b51571b487a@mail.gmail.com> (raw)
In-Reply-To: <200704212011.55261.Dan.Johansson@dmj.nu>

[-- Attachment #1: Type: text/plain, Size: 1713 bytes --]

On 4/21/07, Dan Johansson <Dan.Johansson@dmj.nu> wrote:
>
> On Saturday 21 April 2007 15:53, Uwe Thiem wrote:
> > On 21 April 2007, Dan Johansson wrote:
> > > After upgrading gentoo-sources to 2.6.20-r6 from 2.6.19-r5 today my
> > > firewall won't start (shorewall).
> > >
> > > The here's the error:
> > > iptables: Invalid argument
> > >    ERROR: Command "/sbin/iptables -A FORWARD -m state --state
> > > ESTABLISHED,RELATED -j ACCEPT" Failed
> > >
> > > I'm getting the same errormessage when it try it by hand.
> >
> > When you generated the kernel, did you build all modules necessary. In
> this
> > particlu case, ipt_state?
> If you meen CONFIG_NETFILTER_XT_MATCH_STATE=y then yes it's compiled in
> (not a
> module). You know of any other part that NEEDS to be activated other the
> the
> following?
>
> CONFIG_NETFILTER=y
> CONFIG_NF_CONNTRACK_ENABLED=y
> CONFIG_NF_CONNTRACK_SUPPORT=y
> CONFIG_NF_CONNTRACK=y
> CONFIG_NETFILTER_XTABLES=y
> CONFIG_NETFILTER_XT_MATCH_LIMIT=y
> CONFIG_NETFILTER_XT_MATCH_STATE=y
> CONFIG_IP_NF_QUEUE=y
> CONFIG_IP_NF_IPTABLES=y
> CONFIG_IP_NF_FILTER=y
> CONFIG_IP_NF_TARGET_REJECT=y
> CONFIG_IP_NF_TARGET_LOG=y
> CONFIG_IP_NF_MANGLE=y
>
>
> --
> Dan Johansson, <http://www.dmj.nu>
> ***************************************************
> This message is printed on 100% recycled electrons!
> ***************************************************
>
>
You found your problem, then.  When you use iptables -m state, it loads the
state module.  Since it's not compiled as a module, it won't load.  Either
change it to module in the kernel or remove the -m state (I think I tried
once compiling into the kernel and dropping the -m state, but it didn't
work).

-- 
- Mark Shields

[-- Attachment #2: Type: text/html, Size: 2221 bytes --]

  reply	other threads:[~2007-04-21 18:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-21 13:23 [gentoo-user] iptables will not load rule after kernel upgrade (2.6.19-r5 -> 2.6.20-r6) Dan Johansson
2007-04-21 13:53 ` Uwe Thiem
2007-04-21 18:11   ` Dan Johansson
2007-04-21 18:34     ` Mark Shields [this message]
2007-04-22  9:13       ` [gentoo-user] iptables will not load rule after kernel upgrade (2.6.19-r5 -> 2.6.20-r6) SOLVED Dan Johansson

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=642958cc0704211134ne758483yd2d1b51571b487a@mail.gmail.com \
    --to=laebshade@gmail.com \
    --cc=gentoo-user@lists.gentoo.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