[LARTC] Shaping only FTP traffic

Linux Advanced Routing and Traffic Control

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

 



Hello:

I am a bit unclear on shaping FTP traffic only. How do i do it?

This is what i currently have:

# classid 1:100 is a 200Kbit limiter
# filter for matching "ftp-data" (0x14) and "ftp" (0x15) ports
$TC filter add dev eth1 parent 1:0 protocol ip prio 9 u32 match ip \
sport 0x14 0xffff flowid 1:100
$TC filter add dev eth1 parent 1:0 protocol ip prio 8 u32 match ip \
sport 0x15 0xffff flowid 1:100

This does not seem to work. Can anyone provide me with a filter for
catching active and passive FTP connects?

Thank you for your time.

-- 
Emperor Palpatine:
	Everything that has transpired has done so according
	to my design.



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