Skip to contentSkip to conversation

Distinguishing between local FTP uploads and remote FTP downloads

DISCUSSION Andre Majorel 2 participants 2 messages Jan 8, 2005 – Jan 10, 2005

lore
Share & tools
lore
#0 lore raw

For traffic shaping purposes, I'd like to distinguish (-j MARK) between ftp-data packets resulting from me uploading something to a remote host and ftp-data packets resulting from a remote download from me.

The goal is, of course, to be able to upload at full speed without letting remote hosts hog my upload bandwidth at the same time.

Is there any way to do that ?

Thanks in advance.

Signature · 3 lines
André Majorel <URL:http://www.teaser.fr/~amajorel/>
Do not use this account for regular correspondence.
See the URL above for contact information.
#1 lore raw
Quoted 11 lines · Andre Majorel

For traffic shaping purposes, I'd like to distinguish (-j MARK) between ftp-data packets resulting from me uploading something to a remote host and ftp-data packets resulting from a remote download from me.

The goal is, of course, to be able to upload at full speed without letting remote hosts hog my upload bandwidth at the same time.

Is there any way to do that ?

Thanks in advance.

Your best bet it's using the QoS capabilities of the kernel and the tc command. You can find all the information you need and an excellent howto at http://lartc.org

Signature · 12 lines
Jose Maria Lopez Hernandez
Director Tecnico de bgSEC
[email protected]
bgSEC Seguridad y Consultoria de Sistemas Informaticos
http://www.bgsec.com
ESPAÑA

The only people for me are the mad ones -- the ones who are mad to live,
mad to talk, mad to be saved, desirous of everything at the same time,
the ones who never yawn or say a commonplace thing, but burn, burn, burn
like fabulous yellow Roman candles.
                -- Jack Kerouac, "On the Road"