All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tore Anderson <tore.anderson@redpill-linpro.com>
To: netfilter@vger.kernel.org
Subject: Jumping to chains dynamically based on interface name
Date: Thu, 08 Oct 2009 10:07:42 +0200	[thread overview]
Message-ID: <4ACD9DCE.9070509@redpill-linpro.com> (raw)

Hi,

I'm building a "router on a stick" type of firewall using netfilter,
which have a two dedicated chains per interface (egress+ingress).  This
causes a large FORWARD and FORWARD-EGRESS chains with rules that match
on interface name and jumps to the appopriate interface-specific chain.
 I've been wanting to replace them all with just one rule per direction:

iptables -A FORWARD -j ${in-interface}-ingress
iptables -A FORWARD-EGRESS -j ${out-interface}-egress

Is that possible somehow?

Best regards,
-- 
Tore Anderson
Redpill Linpro AS - http://www.redpill-linpro.com/
Tel: +47 21 54 41 27

                 reply	other threads:[~2009-10-08  8:07 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=4ACD9DCE.9070509@redpill-linpro.com \
    --to=tore.anderson@redpill-linpro.com \
    --cc=netfilter@vger.kernel.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 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.