Skip to contentSkip to conversation

iproute2 + iptables - match the connection time or packets sent/recieved

LARTC Iosif Peterfi 2 participants 4 messages Jan 17, 2005 – Jan 18, 2005

lore
Share & tools
lore
#0 lore raw

Hello,

I setup iproute2 and iptables on my box, is a P4 2000 Ghz / 1GB memory. I have setup squid and iptables to be a transparent proxy, with cache. I've read on lartc.org almost everything and i want to ask if there is a u32 match for the connection time or something like that, or an u32 match for the packet number in a connection.
All i want to do is shape the web traffic for long conections wich are not HTML webpages, i want to slow down those connections.
I know that can be overriden by stopin/resuming the transfer but i still want to do it since people start downloading from HTTP with many connections, during the day and leave the office, i have no time to hunt them, so i just want to classify those connections if is possible.

If there is any patch for squid to classify URLS would be great, i`ll just put html/php/jsp/etc.. in the priority class.

Toto

Signature · 6 lines
This message was scanned for spam and viruses by BitDefender.
For more information please visit http://linux.bitdefender.com/

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#1 lore raw
Quoted 2 lines · Iosif Peterfi

Hello,

<snip>

Quoted 6 lines

All i want to do is shape the web traffic for long conections wich are not HTML webpages, i want to slow down those connections.
I know that can be overriden by stopin/resuming the transfer but i still want to do it since people start downloading from HTTP with many connections, during the day and leave the office, i have no time to hunt them, so i just want to classify those connections if is possible.

Sure, you can do that with the connbytes Netfilter module. After someone downloads some given amount of data you can reclassify that traffic from interactive-Web to bulk-Web or something similar. I've been meaning to do this myself, but haven't gotten to it.

Signature · 8 lines
Jason Boxman
Perl Programmer / *NIX Systems Administrator
Shimberg Center for Affordable Housing | University of Florida
http://edseek.com/ - Linux and FOSS stuff

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#2 lore raw
In reply to Iosif Peterfi

----- Original Message -----
From: "Jason Boxman" <[email protected]>
To: <[email protected]>
Sent: Monday, January 17, 2005 6:50 PM
Subject: Re: [LARTC] iproute2 + iptables - match the connection time or packets sent/recieved

Quoted 5 lines · Iosif Peterfi
Quoted 2 lines

Hello,

<snip>

Quoted 1 line

All i want to do is shape the web traffic for long conections wich are

not

Quoted 10 lines
Quoted 5 lines

HTML webpages, i want to slow down those connections.
I know that can be overriden by stopin/resuming the transfer but i still want to do it since people start downloading from HTTP with many connections, during the day and leave the office, i have no time to hunt them, so i just want to classify those connections if is possible.

Sure, you can do that with the connbytes Netfilter module. After someone downloads some given amount of data you can reclassify that traffic from interactive-Web to bulk-Web or something similar. I've been meaning to do this myself, but haven't gotten to it.

Thanks a lot !
That was very usefull.
I had some problems patching the kernel (I had to do it manually) since my gentoo kernel is already patched with a lot of other patches, but i managed to do it and works like a charm.

Quoted 18 lines
Signature · 15 lines
-- 

Jason Boxman
Perl Programmer / *NIX Systems Administrator
Shimberg Center for Affordable Housing | University of Florida
http://edseek.com/ - Linux and FOSS stuff

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


-- 
This message was scanned for spam and viruses by BitDefender.
For more information please visit http://linux.bitdefender.com/
Signature · 6 lines
This message was scanned for spam and viruses by BitDefender.
For more information please visit http://linux.bitdefender.com/

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#3 lore raw
In reply to Iosif Peterfi

----- Original Message -----
From: "Jason Boxman" <[email protected]>
To: <[email protected]>
Sent: Monday, January 17, 2005 6:50 PM
Subject: Re: [LARTC] iproute2 + iptables - match the connection time or packets sent/recieved

Quoted 5 lines · Iosif Peterfi
Quoted 2 lines

Hello,

<snip>

Quoted 1 line

All i want to do is shape the web traffic for long conections wich are

not

Quoted 10 lines
Quoted 5 lines

HTML webpages, i want to slow down those connections.
I know that can be overriden by stopin/resuming the transfer but i still want to do it since people start downloading from HTTP with many connections, during the day and leave the office, i have no time to hunt them, so i just want to classify those connections if is possible.

Sure, you can do that with the connbytes Netfilter module. After someone downloads some given amount of data you can reclassify that traffic from interactive-Web to bulk-Web or something similar. I've been meaning to do this myself, but haven't gotten to it.

Thanks a lot !
That was very usefull.
I had some problems patching the kernel (I had to do it manually) since my gentoo kernel is already patched with a lot of other patches, but i managed to do it and works like a charm.

Quoted 18 lines
Signature · 15 lines
-- 

Jason Boxman
Perl Programmer / *NIX Systems Administrator
Shimberg Center for Affordable Housing | University of Florida
http://edseek.com/ - Linux and FOSS stuff

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


-- 
This message was scanned for spam and viruses by BitDefender.
For more information please visit http://linux.bitdefender.com/
Signature · 6 lines
This message was scanned for spam and viruses by BitDefender.
For more information please visit http://linux.bitdefender.com/

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