All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Giannis Stoilis" <giannis@stoilis.gr>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] tc ip group
Date: Fri, 20 Jun 2003 09:11:48 +0000	[thread overview]
Message-ID: <marc-lartc-105610045216228@msgid-missing> (raw)
In-Reply-To: <marc-lartc-105609792614046@msgid-missing>

----- Original Message ----- 
From: "Ivan Groenewald" <ivan@office.adept.co.za>
To: "'Giannis Stoilis'" <giannis@stoilis.gr>; "'Ivan Groenewald'"
<ivan@office.adept.co.za>
Cc: <lartc@mailman.ds9a.nl>
Sent: Παρασκευή, 20 Ιουνίου 2003 11:48 πμ
Subject: RE: [LARTC] tc ip group


> I have only used u32 in the past.
> On the LAN I still have to decide. Marking the packets with Iptables
> sounds like a good idea and is quite simple.
> How would I setup tc to match the marked packets (sorry I'm a bit lazy
> to rtfm today :-))

And I am too bored, to send you to hell... :-) So, this is an example:

iptables rules:

iptables -A FORWARD -t mangle -p tcp --sport 80 -j MARK --set-mark 2
iptables -A FORWARD -t mangle -p tcp --dport 80 -j MARK --set-mark 2
iptables -A FORWARD -t mangle -p icmp -j MARK --set-mark 2

tc filter rules:

tc filter add dev eth0 parent 1: protocol ip prio 1 handle 2 fw classid 1:12

- Giannis

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

      parent reply	other threads:[~2003-06-20  9:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-20  8:28 [LARTC] tc ip group Ivan Groenewald
2003-06-20  8:42 ` Giannis Stoilis
2003-06-20  8:48 ` Ivan Groenewald
2003-06-20  9:11 ` Giannis Stoilis [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=marc-lartc-105610045216228@msgid-missing \
    --to=giannis@stoilis.gr \
    --cc=lartc@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 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.