Brian J. Murrell
2011-Nov-13 17:42 UTC
assigning band based on destination address with simple tc
So, in further experimenting with simple TC to shape/prioritize my upstream bandwidth, I''m noticing that setting ip addresses in the tcpri file only allows one to set the source address. But what if I want to prioritize traffic based on where it''s going, not where it came from? Actually, I probably wouldn''t need to set priority based on destination if the sip helper worked, but it doesn''t seem to be matching my sip packets. I suppose ultimately one might need to be able to prioritize on destination. b. ------------------------------------------------------------------------------ RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1
Simon Hobson
2011-Nov-13 17:47 UTC
Re: assigning band based on destination address with simple tc
Brian J. Murrell wrote:>So, in further experimenting with simple TC to shape/prioritize my upstream >bandwidth, I''m noticing that setting ip addresses in the tcpri file >only allows >one to set the source address. > >But what if I want to prioritize traffic based on where it''s going, >not where it >came from?Well if you want to get complicated (dunno how far the options in Shorewall will take you) then you could setup your own traffic control. The learning curve is quite high as you need to learn how to drive "tc" natively, but Shorewall will happily run your own setup script and it gives you great flexibility. In practical terms, if you can write a TC filter spec for it, you can control it ! I do this on our border routers at work, I shape in four bands, and multiple groups so we can split out bandwidth for particular services we host or customers we resell bandwidth to in the building. And I "simulate" doing it inbound by shaping egress traffic on the internal interface (or you can use (IIRC) an IFB interface). There''s a whole howto on it at http://lartc.org/howto/ -- Simon Hobson Visit http://www.magpiesnestpublishing.co.uk/ for books by acclaimed author Gladys Hobson. Novels - poetry - short stories - ideal as Christmas stocking fillers. Some available as e-books. ------------------------------------------------------------------------------ RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1
Tom Eastep
2011-Nov-13 21:20 UTC
Re: assigning band based on destination address with simple tc
On Nov 13, 2011, at 9:42 AM, Brian J. Murrell wrote:> So, in further experimenting with simple TC to shape/prioritize my upstream > bandwidth, I''m noticing that setting ip addresses in the tcpri file only allows > one to set the source address. > > But what if I want to prioritize traffic based on where it''s going, not where it > came from? >Then use the trulls file. -Tom Tom Eastep \ When I die, I want to go like my Grandfather who Shoreline, \ died peacefully in his sleep. Not screaming like Washington, USA \ all of the passengers in his car http://shorewall.net \________________________________________________ ------------------------------------------------------------------------------ RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1
Tom Eastep
2011-Nov-13 22:21 UTC
Re: assigning band based on destination address with simple tc
Sent from my iPad On Nov 13, 2011, at 1:20 PM, Tom Eastep <teastep@shorewall.net> wrote:> Then use the trulls file.Make that "tcrules" Tom ------------------------------------------------------------------------------ RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1