Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
* [LARTC] inbound/outbound question
@ 2002-01-13 22:52 Daniel Wittenberg
  0 siblings, 0 replies; only message in thread
From: Daniel Wittenberg @ 2002-01-13 22:52 UTC (permalink / raw)
  To: lartc

In the docs they always talk about only being able to control the
outbound traffic, but shouldn't this also control inbound?  (ftp
obviously)

Dan


tc qdisc del dev eth0 root handle 1:0

tc qdisc add dev eth0 root handle 1:0 htb default 99
tc class add dev eth0 parent 1:0 classid 1:1 htb rate 768kbps ceil
768kbps burst 2k
tc class add dev eth0 parent 1:1 classid 1:10 htb rate 50kbps ceil
50kbps burst 2k
tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match ip dport
21 0xffff flowid 1:10
tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match ip sport
21 0xffff flowid 1:10

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-01-13 22:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-01-13 22:52 [LARTC] inbound/outbound question Daniel Wittenberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox