From: "Sven Köhler" <sven.koehler@gmail.com>
To: Anton 'EvilMan' Danilov <littlesmilingcloud@gmail.com>
Cc: netfilter@vger.kernel.org
Subject: Re: how to ignore forwarded traffic?
Date: Mon, 21 Apr 2014 17:56:38 +0300 [thread overview]
Message-ID: <535531A6.6090602@gmail.com> (raw)
In-Reply-To: <CAEzD07Kz6bh16_YFTv-sgO0ZoXAneOwUUQt7=Kg6fy2b8LCY7w@mail.gmail.com>
Am 21.04.2014 11:38, schrieb Anton 'EvilMan' Danilov:
> Hi, Sven.
>
> You can disable conntrack at all by removing of the module.
Assume, the firewall protecting the router is stateful (i.e., it uses
conntrack).
> Also you can disable conntrack only for specifyed connections with CT
> target (--notrack option).
I know have the following three rules:
iptables -t raw -A PREROUTING -d <router-ip> -j CT
iptables -t raw -A PREROUTING -s <router-ip> -j CT
iptables -t raw -A PREROUTING -j CT --notrack
So any traffic directed at the router or coming from the router should
be conntracked while all other traffic is not.
Note, that I don't have any rules in the OUTPUT chain of the raw table,
as it seems to me that the default (connections are conntracked) is fine.
Do the above rules seem OK to you?
Regards,
Sven
next prev parent reply other threads:[~2014-04-21 14:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-21 1:22 how to ignore forwarded traffic? Sven Köhler
2014-04-21 8:38 ` Anton 'EvilMan' Danilov
2014-04-21 14:56 ` Sven Köhler [this message]
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=535531A6.6090602@gmail.com \
--to=sven.koehler@gmail.com \
--cc=littlesmilingcloud@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 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.