Hi guys, I want to priorize traffic comming down from internet on my ppp0 int I want port 80 and 21 (and others ) to have preference over P2P traffic, I don''t want to bann P2P just give to it less prio than other more vital services... does anyone know how to do it or where to read on. Thanks in advance
How about this? http://www.lartc.org/howto/ Juan Ignacio Borda wrote:> Hi guys, I want to priorize traffic comming down from internet on my > ppp0 int > I want port 80 and 21 (and others ) to have preference over P2P > traffic, I don''t want to bann P2P just give to it less prio than other > more vital services... does anyone know how to do it or where to read on. > > Thanks in advance > > > _______________________________________________ > LARTC mailing list > LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
That seems to be the million dollar question and it really isn''t as simple as your question puts it. If you spend time learning a few things, it will become much easier. I would recommend the lartc howto and the htb user guide. The htb user guide made a lot of things more clear to me. I hope to have time to make a framework for easily defining shaping rules soon. On 11/1/05, Andreas Unterkircher <unki@netshadow.at> wrote:> How about this? http://www.lartc.org/howto/ > > Juan Ignacio Borda wrote: > > > Hi guys, I want to priorize traffic comming down from internet on my > > ppp0 int > > I want port 80 and 21 (and others ) to have preference over P2P > > traffic, I don''t want to bann P2P just give to it less prio than other > > more vital services... does anyone know how to do it or where to read on. > > > > Thanks in advance > > > > > > _______________________________________________ > > LARTC mailing list > > LARTC@mailman.ds9a.nl > > http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc > > > _______________________________________________ > LARTC mailing list > LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc >
If you want to do shaping for specific services there are over 11 different linux queuing methods to pick from, most here advise using HTB. http://luxik.cdi.cz/%7Edevik/qos/htb/ A ready made script to use HTB on your server exists, its called HTB.init. I suggest you have a look at this, it could get you up and running very quickly with your requirements. http://sourceforge.net/projects/htbinit/ An alternative for shaping your network to improve performance. http://lartc.org/wondershaper/ Regards, Lee On Wed, 2 Nov 2005 04:11 am, Juan Ignacio Borda wrote:> Hi guys, I want to priorize traffic comming down from internet on my > ppp0 int > I want port 80 and 21 (and others ) to have preference over P2P traffic, > I don''t want to bann P2P just give to it less prio than other more vital > services... does anyone know how to do it or where to read on. > > Thanks in advance
On Tuesday 01 November 2005 21:11, Juan Ignacio Borda wrote:> I want port 80 and 21 (and others ) to have preference over P2P traffic, > I don''t want to bann P2P just give to it less prio than other more vital > services... does anyone know how to do it or where to read on.A good way would probably be to look up some example scripts on the net that already deal with P2P. There are some that use IPP2P and / or l7-filter (two project that try to detect type of traffic by looking at the data of the packets). My own script uses a combination of HTB / PRIO / SFQ qdiscs and puts said P2P traffic into the lowest PRIO band. I found this to be quite effective in my home network, although others might find it a tad too aggressive, because PRIO won''t give any bandwidth to P2P as long as there are ssh/www/other packets to be sent / received. You can have a look at the script here: http://www.metamorpher.de/fairnat/ If you''re not shaping for clients behind a router, you''ll need a bit of a different approach, but if you''ve already read the LARTC howto and other docs it might give you an idea of how to solve it in your own situation. HTH Andreas Klauer