Re: helper match bug?

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

 



On Thu, Oct 11, 2012 at 12:09:55PM -0700, Brian Morris wrote:
> It seems the helper match shouldn't succeed if the strings being
> compared aren't the same length.
>  
> For example, both of these nat rules match the helper connections 
> if I start an FTP session on master port 212 with FTP conntrack 
> configured to support both ports:
>  
> -A PREROUTING -p tcp -m state --state RELATED -m helper --helper
> "ftp-212" 
> -A PREROUTING -p tcp -m state --state RELATED -m helper --helper
> "ftp-2122" 
>  
> because the strncmp is just using the length of the helper. Is
> this by design?

The nat table only sees -m state --state (or preferred, -m conntrack 
--ctstate) NEW packets. You have restricted your rule to match 
packets which will never reach that table/chain.
-- 
  http://rob0.nodns4.us/ -- system administration and consulting
  Offlist GMX mail is seen only if "/dev/rob0" is in the Subject:
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux