Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "otik@e-posta.sk" <otik@e-posta.sk>
To: Noel Kuntze <noel@familie-kuntze.de>, netfilter@vger.kernel.org
Subject: Re: ebtables fix changing source MAC
Date: Sun, 05 Apr 2015 18:47:46 +0200	[thread overview]
Message-ID: <55216732.4040200@e-posta.sk> (raw)
In-Reply-To: <551FE95F.8080005@familie-kuntze.de>

On 2015-04-04 15:38, Noel Kuntze wrote:
> Hello Oto,
>
> You can use arptables to do that. ebtables can't do that.
>
> arptables -A INPUT -s StupidEthernetDeviceIP --destination-mac MyOwnMacAddress -j mangle --mangle-mac-s TheMACAddressIwant
>
> You can of course replace the -s StupidEthernetDeviceIP with another filter. However, as you are using a bridge device and probably
> a lot of other devices communicate over the virtual bridge, you should construct a filter for a rule
> that guarantees (either by logical constraint or physical constraint [e.g: The only device connected to eth0 is the stupid ethernet device, assuming eth0 is slaved to br0])
> that only traffic from that host is mangled. Otherwise, you will not be able to establish a connection to any other host.

Thanks for proposed solution it seems to be good on first look. I'll 
test it on end of the month. And let you know.
I never heard of arptables before, but all got its first time :)

As I wrote I got just one shot, so if anybody have other solution pls 
let me know.

>
> Mit freundlichen Grüßen/Kind Regards,
> Noel Kuntze
>
>


      reply	other threads:[~2015-04-05 16:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-04  7:26 ebtables fix changing source MAC otik
2015-04-04 13:38 ` Noel Kuntze
2015-04-05 16:47   ` otik [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=55216732.4040200@e-posta.sk \
    --to=otik@e-posta.sk \
    --cc=netfilter@vger.kernel.org \
    --cc=noel@familie-kuntze.de \
    /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