All of lore.kernel.org
 help / color / mirror / Atom feed
From: George Tsuladze <gio@ultracom.ge>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] help, i want 10 mbps to my router
Date: Mon, 01 Apr 2002 08:15:37 +0000	[thread overview]
Message-ID: <marc-lartc-101764898622532@msgid-missing> (raw)
In-Reply-To: <marc-lartc-101750226021689@msgid-missing>

Stef Coene wrote:

>>gio: i have to use iptables?
>>
>Or 2 u32 filters : first filter matches local traffic, second filter matches 
>all traffic.  The second filter will never be used for the local traffic.
>
>Stef
>
tc qdisc del dev eth0 root
#eht0 rules
tc qdisc add dev eth0 root handle 1: htb default 12
#shape interface eth0
tc class add dev eth0 parent 1: classid 1:1 htb rate 10mbit ceil 10mbit 
burst 2k
#Internet
tc class add dev eth0 parent 1:1 classid 1:11 htb rate 500kbit ceil 
500kbit burst 2k
#Lan
tc class add dev eth0 parent 1:1 classid 1:12 htb rate 10mbit ceil 
10mbit burst 2k
#mark Internet class
tc filter add dev eth0 parent 1: protocol ip prio 3 handle 1 fw classid 1:11
#add qdisc discipline Lan
tc qdisc add dev eth0 parent 1:12 handle 32: sfq perturb 10
#add qdisc discipline Internet
tc qdisc add dev eth0 parent 1:11 handle 41: sfq perturb 10
###################################################################################
#fitler marks by iptables
#iptables output
iptables -F -t mangle
#Mark Internet traffic
iptables -A OUTPUT -t mangle -d $myip  -j MARK --set-mark 1

with this rule it shapes traffic for marked ip and gives all other 10 mbit

but i do not want this,
iptables -A OUTPUT -t mangle -d $myip  -s ! $routerip -j MARK --set-mark 1

it does not shapes internet traffic, it gaves 10mbit to all.

i am downloading from internet without shaping, note i am downloading 
through the SQUID which is running on router.



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

  parent reply	other threads:[~2002-04-01  8:15 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1980-01-03 23:27 [LARTC] help, i want 10 mbps to my router Stef Coene
1980-01-04 22:01 ` Stef Coene
1980-01-05 16:00 ` Stef Coene
1980-01-05 16:14 ` Stef Coene
2002-03-30 15:06 ` George Tsuladze
2002-03-30 16:37 ` George Tsuladze
2002-03-31  8:59 ` Martin Devera
2002-04-01  5:58 ` George Tsuladze
2002-04-01  6:03 ` George Tsuladze
2002-04-01  8:15 ` George Tsuladze [this message]
2002-04-01 19:20 ` Stef Coene
2002-04-03  9:40 ` George Tsuladze

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-101764898622532@msgid-missing \
    --to=gio@ultracom.ge \
    --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.