| Linode Forum https://forum.linode.com/ |
|
| iptables drop ACK/FIN as invalid https://forum.linode.com/viewtopic.php?f=19&t=3116 |
Page 1 of 1 |
| Author: | yejun [ Tue Feb 19, 2008 7:20 am ] |
| Post subject: | iptables drop ACK/FIN as invalid |
Is this normal? I have iptables to drop INVALID in both INPUT and OUTPUT chain. Code: iptables -I INPUT -m state --state INVALID -j logblock The log file looks like this Code: IN= OUT=eth0 SRC=67.18.*.*DST=140.211.*.* LEN=52 TOS=0x00 PREC=0x00 TTL=64 ID=1362 DF PROTO=TCP SPT=39659 DPT=80 WINDOW=126 RES=0x00 ACK FIN URGP=0 My sysctl Code: net.ipv4.conf.default.rp_filter = 1 Code:
|
|
| Author: | chesty [ Tue Feb 19, 2008 11:03 am ] |
| Post subject: | |
> Is this normal? I don't know if it's normal, but I've seen it myself. My guess is the connection is removed from conntrack before the fin/ack arrives. So it appears as a new connection starting with fin/ack, which is invalid. (just a guess, I haven't been bothered to look into it) Perhaps google has the answer? |
|
| Author: | sednet [ Tue Feb 19, 2008 2:05 pm ] |
| Post subject: | Re: iptables drop ACK/FIN as invalid |
yejun wrote: The log file looks like this Code: IN= OUT=eth0 SRC=67.18.*.*DST=140.211.*.* LEN=52 TOS=0x00 PREC=0x00 TTL=64 ID=1362 DF PROTO=TCP SPT=39659 DPT=80 WINDOW=126 RES=0x00 ACK FIN URGP=0 It looks like a Maimon scan. Is the source IP known to you? From the nmap man page: Quote: -sM (TCP Maimon scan)
The Maimon scan is named after its discoverer, Uriel Maimon. He described the technique in Phrack Magazine issue #49 (November 1996). Nmap, which included this technique, was released two issues later. This technique is exactly the same as null, FIN, and Xmas scans, except that the probe is FIN/ACK. According to RFC 793 (TCP), a RST packet should be generated in response to such a probe whether the port is open or closed. However, Uriel noticed that many BSD-derived systems simply drop the packet if the port is open. It seems to be common to get all kinds of scans from just about everywhere on any internet IP. |
|
| Author: | yejun [ Tue Feb 19, 2008 2:23 pm ] |
| Post subject: | |
The source ip is myself. It seems some client such as php will generate ack/fin but not others. I googled around. This bug only briefly mentioned in ipfilter mailing list 2006, but it seems no one bother to fix. |
|
| Author: | PaulPreston [ Thu Sep 01, 2011 1:09 pm ] |
| Post subject: | |
I have got the same problem on CentOS 5.6 64 bit. I'm suprised that it hasn't been fixed. |
|
| Page 1 of 1 | All times are UTC-04:00 |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|