limiting my ftp upload speed

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Will the following commands limit my ftpserver upload speed on the
passive ports?
 

iptables -t mangle -A FORWARD -m tcp -p tcp -s 192.168.1.101 --sport
50000:60000 -j MARK --set-mark 0x02
tc qdisc add dev eth0 root handle 1: htb default 20
tc class add dev eth0 parent 1:1 classid 1:30 htb rate 340kbit burst 6k
prio 2

 
I want to mark the packets from 192.168.1.101 ports 50000-60000.....and
limit the speed to 340kbit.
 
Mark


_______________________________________________
LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux