helper match bug?
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?
Thanks
Brian
Quoted 7 lines · Brian Morris
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:
Quoted 7 lines
-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.
Signature · 2 lines
http://rob0.nodns4.us/ -- system administration and consulting Offlist GMX mail is seen only if "/dev/rob0" is in the Subject: