From: Laszlo Attila Toth <panther@balabit.hu>
To: netfilter-devel@vger.kernel.org
Subject: [PATCH 0/2] address type match limited to incoming interface
Date: Fri, 12 Oct 2007 16:03:29 +0200 [thread overview]
Message-ID: <470F7EB1.2080309@balabit.hu> (raw)
Hello,
Current version of address type match lets incoming packets filter by
address type such as LOCAL (local address of any interface). With this
the following patches this type check can be limited to the interface
the packet coming in. For instance the lets SSH in on every interface
and nothing else:
iptables -P INPUT DROP
(some additional checks may be here such as -m state --state INVALID -j
DROP)
iptables -A INPUT -p tcp -m tcp --dport 22 -m addrtype --dst-type LOCAL
--limit-iface -j ACCEPT
If a packet arrives on eth0 with the IP address of the eth0 it is
accepted but if it is an address of eth1 it is dropped.
Also it can be used for checking IP spoofing.
Regards,
Attila
next reply other threads:[~2007-10-12 14:03 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-12 14:03 Laszlo Attila Toth [this message]
2007-10-12 14:07 ` [PATCH 1/2] Find address type on a specific or on any interface Laszlo Attila Toth
2007-10-12 14:07 ` [PATCH 2/2] Addrtype match extension: limit addrtype check on the packet's interface Laszlo Attila Toth
2007-10-18 9:16 ` Patrick McHardy
2007-10-18 11:34 ` Laszlo Attila Toth
2007-10-20 14:50 ` Laszlo Attila Toth
2007-10-18 9:13 ` [PATCH 1/2] Find address type on a specific or on any interface Patrick McHardy
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=470F7EB1.2080309@balabit.hu \
--to=panther@balabit.hu \
--cc=netfilter-devel@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;
as well as URLs for NNTP newsgroup(s).