From: Luigi Corsello <mlreader@lucomp.net>
To: Netfilter ML <netfilter@lists.netfilter.org>
Subject: Unicast packets to multiple destinations -only-
Date: Thu, 18 Nov 2004 10:48:35 +0100 [thread overview]
Message-ID: <419C6FF3.9070908@lucomp.net> (raw)
Hi all,
I got 3 IPs in one interface (ip addr add, not aliasing), and wanted to
only allow unicast packets to any of them (and/or their subnet in one
case, to allow broadcasts for the local net).
Aim: no broadcasts, no multicast, spoofing prevention?.
You can't have multiple -d in rules. My quick solution was 3 tables
(this is a sample):
iptables -N ta
iptables -N tb
iptables -N tc
iptables -A tc -d ! $ip3 -j DROP
iptables -A tb -d ! $ip2 -j tc
iptables -A ta -d ! $ip1 -j tb
iptables -A INPUT -j ta
It works, much junk stays out. All services work.
From the list point of view, is this insane(a) stupid(b) or clever(c)?
and why?
Cheers,
/lc
next reply other threads:[~2004-11-18 9:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-18 9:48 Luigi Corsello [this message]
2004-11-18 13:32 ` Unicast packets to multiple destinations -only- Jason Opperisano
2004-11-18 16:22 ` Samuel Jean
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=419C6FF3.9070908@lucomp.net \
--to=mlreader@lucomp.net \
--cc=netfilter@lists.netfilter.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.