Skip to contentSkip to conversation

allocating b/w

LARTC Payal Rathod 5 participants 5 messages Dec 22, 2004 – Dec 23, 2004

lore
Share & tools
lore
#1 lore raw
Quoted 4 lines · Payal Rathod

Hi,
A majority of our work inolves ftp to my clients' side over our slow connection. Now we need to allocate a greater b/w for this protocol. Is there anyway I can do it using lartc easily?

It can be done, but not so easy. Ftp traffic uses some random ports. But you can filter ftp traffic if you use iptables to mark all ftp traffic (make sure you match them all and not only the command traffic). That mark can be used with the fw filter to put the traffic in a separate htb/cbq class.

Stef

Signature · 6 lines
[email protected]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#2 lore raw
In reply to Payal Rathod
Quoted 4 lines

From: Payal Rathod <[email protected]>
To: lartc <[email protected]>
Subject: [LARTC] allocating b/w

Quoted 8 lines

Hi,
A majority of our work inolves ftp to my clients' side over our slow connection. Now we need to allocate a greater b/w for this protocol. Is there anyway I can do it using lartc easily? Any suggestions on this please?

With warm regards,
-Payal

Stef Coen already gave you an answer. I 'll show you another path if you wish to follow. It requires patching the kernel , but then you will be able to do packet filtering in Layer 7..

e.g.

filter all ftp traffic to HTB class 3:1 (which is 100kbps and can borrow unsused traffic up to 1000kbps)

see http://l7-filter.sourceforge.net/

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

#3 lore raw
In reply to Payal Rathod
Quoted 9 lines · Stef Coene
Quoted 6 lines · Payal Rathod

Hi,
A majority of our work inolves ftp to my clients' side over our slow connection. Now we need to allocate a greater b/w for this protocol. Is there anyway I can do it using lartc easily?

Quoted 9 lines

It can be done, but not so easy. Ftp traffic uses some random ports. But you can filter ftp traffic if you use iptables to mark all ftp traffic (make sure you match them all and not only the command traffic). That mark can be used with the fw filter to put the traffic in a separate htb/cbq class.

Stef

You can also bind ftp traffic to a known range and mark those ports with iptables. Thats how I do it. Proftpd allows you to set passive ports to a certain range.

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

#4 lore raw
In reply to Payal Rathod
Quoted 1 line · Payal Rathod

Hi,

Hi.

Quoted 3 lines

A majority of our work inolves ftp to my clients' side over our slow connection. Now we need to allocate a greater b/w for this protocol. Is there anyway I can do it using lartc easily?

Well, it depends on what you mean by "using lartc" :-)

Quoted 1 line

Any suggestions on this please?

There is a "helper" match in iptables that does exactly what you need. It's already over 2 years old so I think any quite recent iptables version should have it (1.2.11 does).

Use like

iptables -t mangle -A wherever -m helper ---helper ftp -j MARK whatever

Quoted 2 lines

With warm regards,
-Payal

Bye,

Peter Surda (Shurdeek) <[email protected]>, ICQ 10236103, +436505122023

Signature · 4 lines
               I believe the technical term is "Oops!"
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/