Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Marek Kierdelewicz <marek@piasta.pl>
To: netfilter@vger.kernel.org
Subject: Re: Need to remove 802.1Q tagging
Date: Fri, 7 Oct 2011 23:36:00 +0200	[thread overview]
Message-ID: <20111007233600.50820c0b@catus> (raw)
In-Reply-To: <CAFcM1Ep1KrqDbSZdJQhS4_69NYfAFd9C7MqNz+tzqg8j-pskxg@mail.gmail.com>

Hi,

>Would the following work
>ebtables -A INPUT -i eth0.10 -o eth1 -j DROP    <-------- Block
>eth0.10 vlan from sending traffic to eth1
>ebtables -A INPUT -i eth0.+ -o eth1 -j DROP      <------ BLock all
>vlans from sending traffic to eth1

That was an error on my end. I should have written "You should probably
filter traffic on that bridge and allow ONLY eth0.x <-> eth1".

You can achieve this with following rule:

ebtables -A FORWARD -i eth0.+ -o eth0.+ -j DROP

Default policy is accept, so only specified traffic will be filtered.On

Best regards,
Marek Kierdelewicz

      reply	other threads:[~2011-10-07 21:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-07 19:20 Need to remove 802.1Q tagging Duane Larson
2011-10-07 19:52 ` Marek Kierdelewicz
2011-10-07 21:22   ` Duane Larson
2011-10-07 21:36     ` Marek Kierdelewicz [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=20111007233600.50820c0b@catus \
    --to=marek@piasta.pl \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox