Re: [LARTC] Port limiting on forward

2004-01-04 Thread MCraciun






I have 40 Users on P2 200 MMX 32 RAM .
So i know how to match packets .
iptables -t mangle -N MYSHAPER-OUT
iptables -t mangle -I POSTROUTING -o $DEV -j MYSHAPER-OUT
 
 
 
iptables -t mangle -A MYSHAPER-OUT -s! 192.168.0.5 -p tcp --dport 0:1024 -j MARK --set-mark 23
 

iptables -t mangle -A MYSHAPER-OUT -p tcp --dport 6660:65000 -j MARK --set-mark 24
 
How do i shape mark 23 at 1 KB/s and mark 24 at 1 MB/s ?
 
 
 
 









[LARTC] Port limiting on forward

2004-01-04 Thread MCraciun






I heard that matching ports with mangle and shape with CBQ or HTB will cost me some resources so i want to limit that way :
 
1. On forward I want to limit a port range like 0 to 79 at 8kbps .And after that i want to be able to add lines with other port range , also at 8kbps, but only on forward .Today i had just started to use BBQ and HTB