Skip to contentSkip to conversation

Police to xxx mbit with port range

LARTC Mark beck 2 participants 4 messages Feb 10, 2002 – Feb 12, 2002

lore
Share & tools
lore
#1 lore raw
Quoted 5 lines · Mark beck

Hi,

I want to POLICE to a certain bw in one direction only - over a range of 500 ports. Is this possible and if so could someone please give me some pointers to the configuration and any Kernel requirements necessary.

RTFM : http://ds9a.nl/2.4Routing/HOWTO/cvs/2.4routing/output/2.4routing.html

Stef

Signature · 6 lines
[email protected]
 More QOS info : http://www.docum.org/
 Title : "Using Linux as bandwidth manager"
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
author
#2 lore raw
In reply to Mark beck

Oh so helpful!

In the howto it only mentions how to do this on a single port basis - and I cant find TC documentation:

# tc filter add dev eth0 protocol ip parent 10: prio 1 u32 match ip sport 
80 0xffff flowid 10:1

I assume after the 80 we have a hex mask, so would the following match ports 10240->10751?

# tc filter add dev eth0 protocol ip parent 10: prio 1 u32 match ip sport 
10240 0x200 flowid 10:1

Thanks in advance,
Mark

Quoted 8 lines · Stef Coene
Quoted 5 lines · Mark beck

Hi,

I want to POLICE to a certain bw in one direction only - over a range of 500 ports. Is this possible and if so could someone please give me some pointers to the configuration and any Kernel requirements necessary.

RTFM : http://ds9a.nl/2.4Routing/HOWTO/cvs/2.4routing/output/2.4routing.html

Quoted 8 lines

Stef

--

[email protected]
More QOS info : http://www.docum.org/
Title : "Using Linux as bandwidth manager"

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/

#3 lore raw
In reply to Mark beck
Quoted 5 lines · Mark Beck

Oh so helpful!

In the howto it only mentions how to do this on a single port basis - and I cant find TC documentation:

Quoted 8 lines
# tc filter add dev eth0 protocol ip parent 10: prio 1 u32 match ip sport
80 0xffff flowid 10:1

I assume after the 80 we have a hex mask, so would the following match ports 10240->10751?

# tc filter add dev eth0 protocol ip parent 10: prio 1 u32 match ip sport
10240 0x200 flowid 10:1

Goog guess :-) But I never tried it myself.

Stef

Signature · 6 lines
[email protected]
 More QOS info : http://www.docum.org/
 Title : "Using Linux as bandwidth manager"
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/