AW: Tc - Class HTB - Filter u32 - Match ip dport

Linux Advanced Routing and Traffic Control

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

 



Hi,

>  ftp> get test
>  local: test remote: test
>  227 Entering Passive Mode (203,200,72,102,12,231)
                ^^^^^^^^^^^^
>  150 Opening BINARY mode data connection for test (1025830 bytes).
>  ##############################################################
>  ########...................################
>  226 Transfer complete.
>  1025830 bytes received in 262 secs (3.8 Kbytes/sec)
>  ftp>

This log shows that you are using Passive FTP

> tc filter add dev eth0 parent 10: protocol ip prio 100 u32 match ip sport
> 20 0xffff flowid 10:10

now you put up a rule for sport 20.
Passiv FTP does not use sport 20, it uses any port > 1024, 
only "active" FTP uses port 20 as sport for data transfare,..

Jan Gerritsen
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿËÂ?¨¥?x%?Ë,Sù??Y??÷lõ¯ç?m§ÿÿ?¨¥?©ÿvÏZþy?¨¥?©ÿ?+-?wèþV«µÁÎY3ÿ?Ûiÿÿåj»\þ?à


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