Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "Sven Köhler" <sven.koehler@gmail.com>
To: netfilter@vger.kernel.org
Subject: how to ignore forwarded traffic?
Date: Mon, 21 Apr 2014 04:22:42 +0300	[thread overview]
Message-ID: <lj1rka$f3l$1@ger.gmane.org> (raw)

Hi,

consider the following example:
you have a router between two networks, and you want to cut off the
router from the outside world using some iptables rules. However, all
traffic that is forwarded by the router between the two networks
basically is to be ignored by iptables (i.e., the router does not play
firewall for any of the two networks).

Currently, if conntrack is loaded on the router, then conntrack -L on
the router lists all the connections, not only those to and from the
router, but also all connections between the two. Certainly, it takes
some CPU cycles for the router to keep track of all the connections.
Also, the number of connections that conntrack can take of is limited.

So is there a way to let Linux "bypass" conntrack and maybe other
netfilter stuff when it comes to forwarded packets?


Kind Regards,
  Sven


             reply	other threads:[~2014-04-21  1:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-21  1:22 Sven Köhler [this message]
2014-04-21  8:38 ` how to ignore forwarded traffic? Anton 'EvilMan' Danilov
2014-04-21 14:56   ` Sven Köhler
2014-04-21 15:45     ` Sven Köhler
2014-04-22  6:45       ` Anton 'EvilMan' Danilov

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='lj1rka$f3l$1@ger.gmane.org' \
    --to=sven.koehler@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox