Re: helpers register for a specific port, but work anyway

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

 



Hi Jan,

On Wed, 27 Feb 2008, Jan Engelhardt wrote:

> in nf_conntrack_ftp.c for example we find
> 
>              ftp[i][j].tuple.src.u.tcp.port = htons(ports[i]);
> 
> assuming the user does not specify any ports on modprobe, the default 
> port list defaults to {21}, so ftp[0][x].tuple.src will contain port 21. 
> But even ftp connections to non-21 ports are inspected for PORT 
> commands. 

Why do you think so? Ports not specified as FTP command ports are not 
parsed.

Best regards,
Jozsef
-
E-mail  : kadlec@xxxxxxxxxxxxxxxxx, kadlec@xxxxxxxxxxxxxxx
PGP key : http://www.kfki.hu/~kadlec/pgp_public_key.txt
Address : KFKI Research Institute for Particle and Nuclear Physics
          H-1525 Budapest 114, POB. 49, Hungary
-
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux