From: Josip Gracin gracin@tel.fer.hr
To: lartc@vger.kernel.org
Subject: [LARTC] Traffic Control + Masquerading
Date: Wed, 25 Oct 2000 13:20:33 +0000 [thread overview]
Message-ID: <marc-lartc-98373938216837@msgid-missing> (raw)
In-Reply-To: <marc-lartc-98373938216835@msgid-missing>
<PRE>bert hubert (<A HREF="mailto:ahu@ds9a.nl">ahu@ds9a.nl</A>) wrote:
><i> You need to mark packets when they're coming in on the inside, with a
</I>
Perhaps the following should work (based on help from nice people at lartc
mailing list :-))
# Set up the marking
iptables -t mangle -A PREROUTING -s LAN_IP_ADDR -j MARK --set-mark 0x1
# Set up the Bandwidth Management
tc qdisc add dev eth0 root handle 1: cbq bandwidth 10Mbit avpkt 1000
# Set up the root Class at 10Mbit
tc class add dev eth0 parent 1:0 classid 1:1 cbq bandwidth 10Mbit rate 10Mbit allot 1514 weight 1Mbit prio 8 maxburst 100 avpkt 1000
# Set up a restricted class with a rate of 100Kbit
tc class add dev eth0 parent 1:1 classid 1:2 cbq bandwidth 10Mbit rate 100Kbit allot 1514 weight 50Kbit prio 7 maxburst 20 avpkt 1000 bounded
tc filter add dev eth0 protocol ip parent 1:0 prio 1 handle 1 fw classid 1:2
Make sure you substituted 'eth0' with the interface that is connected to
your LAN.
Josip
</PRE>
prev parent reply other threads:[~2000-10-25 13:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-10-25 2:04 [LARTC] Traffic Control + Masquerading Ing.Rodrigo
2000-10-25 9:42 ` bert
2000-10-25 13:20 ` Josip [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-98373938216837@msgid-missing \
--to=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.