ipt_unclean.c on kernel-2.4.7-9
Hi gurus,
I've possibly found a bug in the iptables unclean match support
but I was not able to find the email of the mantainer so I'm posting here....
the module is incorrectly matching ftp session. Ex:
iptables -j DROP -A INPUT --match unclean
iptables -j ACCEPT -A INPUT -p tcp --dport 21
in this case all my packets directed to the ftp server where dropped by the
"unclean" match and this make impossible to open ftp session.
It's obvious that you can swap the entry to make it working but I think it should work also in this way. I've also tested using different client.
If people need more info jus ask please.
Fabbione
In message <[email protected]> you write:
Quoted 5 lines
Hi gurus,
I've possibly found a bug in the iptables unclean match support
but I was not able to find the email of the mantainer so I'm posting here....
Quoted 8 lines
the module is incorrectly matching ftp session. Ex:
iptables -j DROP -A INPUT --match unclean
iptables -j ACCEPT -A INPUT -p tcp --dport 21in this case all my packets directed to the ftp server where dropped by the
"unclean" match and this make impossible to open ftp session.
Please do not do this. "unclean" should be renamed "interesting": you should log these packets, but probably not drop them, otherwise some things may break.
Like ECN...
Cheers,
Rusty.
--
Premature optmztion is rt of all evl. --DK
Well probably the documentation should be more explicit. I know that's experimental
code but someone has to use it in order to increase its quality. My idea of building the rules was to DROP as much as possible all the "dirty"
packets before the packets can match the rules that allow connections.
Regarding ECN I've it on on most of my boxes without any problems (I don't care
if I cannot look to lego.com). but I don't want to restart again the ECN discussion
there were sometimes ago in the ML.
Cheers
Fabio
Quoted 26 lines · Rusty Russell
In message <[email protected]> you write:
Quoted 5 lines
Hi gurus,
I've possibly found a bug in the iptables unclean match support
but I was not able to find the email of the mantainer so I'm posting here....Quoted 8 lines
the module is incorrectly matching ftp session. Ex:
iptables -j DROP -A INPUT --match unclean
iptables -j ACCEPT -A INPUT -p tcp --dport 21in this case all my packets directed to the ftp server where dropped by the
"unclean" match and this make impossible to open ftp session.Please do not do this. "unclean" should be renamed "interesting": you should log these packets, but probably not drop them, otherwise some things may break.
Like ECN...
Cheers,
Rusty.
--
Premature optmztion is rt of all evl. --DK