Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Marek Kierdelewicz <marek@piasta.pl>
To: Andrew Beverley <andy@andybev.com>
Cc: netfilter@vger.kernel.org
Subject: Re: shaping vlans - revisited
Date: Fri, 4 Feb 2011 08:43:21 +0100	[thread overview]
Message-ID: <20110204084321.73d69426@catus> (raw)
In-Reply-To: <1296788356.7587.70.camel@andybev>

>then can you not just mark on the vlan interface rather than eth1?

Andrew is right. Thats the best option. Ethy, just change eth1 to vlan+
in following rules:

/usr/sbin/iptables -t mangle -A POSTROUTING -o eth1 -m mark ! --mark 2 \
	-j IPMARK --addr src --and-mask 0xffff --or-mask 0x0
/usr/sbin/iptables -t mangle -A POSTROUTING -o eth1 -m mark --mark 2 \
	-j IPMARK --addr src --and-mask 0xffff --or-mask 0x40000

Best regards,
Marek Kierdelewicz

  reply	other threads:[~2011-02-04  7:43 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-03 17:29 Fw: shaping vlans - revisited Ethy H. Brito
2011-02-03 18:50 ` Andrew Beverley
2011-02-03 20:01   ` Ethy H. Brito
2011-02-04  2:59     ` Andrew Beverley
2011-02-04  7:43       ` Marek Kierdelewicz [this message]
2011-02-04 14:05       ` Ethy H. Brito
2011-02-04 14:24         ` Andrew Beverley
2011-02-04 16:24           ` Ethy H. Brito
2011-02-05  2:10             ` Andrew Beverley
2011-02-05 12:46             ` Marek Kierdelewicz
2011-02-05 14:42               ` Ethy H. Brito
2011-02-05 14:52                 ` Marek Kierdelewicz
2011-02-05 16:32                   ` Ethy H. Brito
2011-02-05 16:41                     ` Marek Kierdelewicz
2011-02-05 23:26                       ` Ethy H. Brito
2011-02-04  3:28     ` Jan Engelhardt
2011-02-04  3:42     ` Grant Taylor
2011-02-04 14:06       ` Ethy H. Brito
2011-02-05 13:56       ` Ethy H. Brito
  -- strict thread matches above, loose matches on Subject: below --
2011-02-03 15:38 Ethy H. Brito
2011-02-03 15:46 ` Marek Kierdelewicz

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=20110204084321.73d69426@catus \
    --to=marek@piasta.pl \
    --cc=andy@andybev.com \
    --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