From: Jon Webb <jon_webb@binary-one.com>
To: Peter Surda <shurdeek@routehat.org>
Cc: netfilter-devel@lists.netfilter.org
Subject: Re: mac dest match
Date: Wed, 05 Jan 2005 19:24:51 -0800 [thread overview]
Message-ID: <41DCAF83.5040805@binary-one.com> (raw)
In-Reply-To: <20050105211829.GA6225@soldats.localdomain>
Peter,
I've had to do this before with regards to testing adhoc wireless
network protocols. For mac filtering, you are on the right track -
filter everything you can using routing/iptables rules and set the
[send|accept|secure]_redirects appropriately. However, the problem is
that ARP will not live by those rules. Therefore, you must disable ARP
using ifconfig and then add static entries manually with the arp command.
- Jon
Peter Surda wrote:
>On Wed, Jan 05, 2005 at 01:18:43PM -0600, Vivek raghunathan wrote:
>
>
>>Hi all.
>>
>>
>Hi,
>
>
>
>>I have 3 nodes A, B, C on the same subnet and I would like to create a
>>line topology:
>>
>>A -> B -> C
>>
>>To do this, I need to prevent any MAC packet from A to C from getting
>>across and vice versa.
>>
>>
>I think it would be easier to use separate subnets and deactivate sending icmp
>source redirects on "B". No need to play with iptables.
>Assuming the network device is always eth0, you'd do something like:
>
>A: ip addr add 192.168.0.1/30 dev eth0
>B: ip addr add 192.168.0.2/30 dev eth0;ip addr add 192.268.0.6/30 dev eth0
>C: ip addr add 192.168.0.5/30 dev eth0
>
>(on B)
>echo 0 > /proc/sys/net/ipv4/conf/eth0/send_redirects
>
>
>
>>-Vivek
>>
>>
>Bye,
>
>Peter Surda (Shurdeek) <shurdeek@routehat.org>, ICQ 10236103, +436505122023
>
>
>
prev parent reply other threads:[~2005-01-06 3:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-05 19:18 mac dest match Vivek raghunathan
2005-01-05 21:18 ` Peter Surda
2005-01-06 3:24 ` Jon Webb [this message]
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=41DCAF83.5040805@binary-one.com \
--to=jon_webb@binary-one.com \
--cc=netfilter-devel@lists.netfilter.org \
--cc=shurdeek@routehat.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.