From: "Sumit Pandya" <sumit@elitecore.com>
To: lartc@vger.kernel.org
Subject: [LARTC] Avoid adding fw filter using mark
Date: Fri, 20 Sep 2002 09:30:36 +0000 [thread overview]
Message-ID: <marc-lartc-103251263700797@msgid-missing> (raw)
Hi Devik,
> I'm happy that HTB gained so much popularity ;) Only
> one hint for you - you can completely avoid all these
> tc filter add .... fw ...
> You can use only one
> tc filter add dev ppp0 parent 1: protocol ip prio 1 handle 1 fw
When I add above rule I get an error message "RTNETLINK answers: Invalid
argument"
but I can see above filter inserted with command:
# /sbin/tc -s -d -r filter show dev ppp0
output: filter parent 1: protocol ip pref 1 fw
Even if that message comming My all rules and policy works fine :-) Can I
neglect error message occurs at time of adding filter?
> and set classid directly in iptables like:
> iptables -t mangle -A to-dsl -p tcp --dport 80 -j MARK --set-mark 0x10010
> iptables -t mangle -A to-dsl -p tcp --sport 24 -j MARK --set-mark 0x10020
>
> and so on ..
> devik
>
>
> On 17 Apr 2002, alex wrote:
>
> > /sbin/iptables -t mangle -A to-dsl -p tcp --dport 22 -j MARK
> > --set-mark 1
> >
>
> > And handle 11:111 ?
> would become --set-mark 0x00110111...
> or 0x110111 Last 4 digits (16bits) is class, firct 16bit is qdisc.
-- Sumit
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
next reply other threads:[~2002-09-20 9:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-20 9:30 Sumit Pandya [this message]
2002-09-20 17:39 ` [LARTC] Avoid adding fw filter using mark Stef Coene
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-103251263700797@msgid-missing \
--to=sumit@elitecore.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox