Skip to contentSkip to conversation

limiting ports

LARTC mark ryan 1 participant 1 message Feb 12, 2004

lore
Share & tools
lore

mark ryan

author
#0 lore raw

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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/