From: Joel Newkirk <netfilter@newkirk.us>
To: Jon Wyatt <samur2@hotmail.com>, netfilter@lists.netfilter.org
Subject: Re: ACK packets being dropped from yahoo
Date: Mon, 16 Dec 2002 01:11:07 -0500 [thread overview]
Message-ID: <200212160111.07489.netfilter@newkirk.us> (raw)
In-Reply-To: <F3EgmgEaIj38y8iUSmR0000d53d@hotmail.com>
On Sunday 15 December 2002 09:50 am, Jon Wyatt wrote:
> It appears that yahoo is sending an ACK which I'm blocking (because
> it's not part of an initialisation), unless I've misunderstood the
> communication process.
>
> Here's the rules where I set them:-
> $IPTABLES -N bad_tcp_packets
> $IPTABLES -A bad_tcp_packets -p tcp ! --syn -m state --state NEW -j
> LOG --log-prefix "New not syn:"
> $IPTABLES -A bad_tcp_packets -p tcp ! --syn -m state --state NEW -j
> DROP
>
>
>
> And here's the message I get when yahoo attempts to send the ACK.
>
> New not syn:IN=ppp0 OUT= MAC= SRC=212.158.*.* DST=217.135.*.* LEN=52
> TOS=0x00 PREC=0x00 TTL=63 ID=27155 PROTO=TCP SPT=80 DPT=32782
> WINDOW=8760 RES=0x00 ACK RST URGP=0
>
> What's going on there then?
I think the question should be "Why is this NEW?" Dest IP must be
correct for you to get it, and sourceport is as well. Is it coming from
a different IP? Or to a different destport? Or does netfilter think
the connection has closed? Something must be different for the state
machine to consider it NEW. Is this from the firewall machine, or
forwarded through it with SNAT or MASQ?
BTW, when I try this rule as first rule in my INPUT chain, it does NOT
hit when I do a Yahoo search, the search works fine. Is there something
more particular about your search, or is it just "yahoo.com" and enter
some text to search for?
j
next prev parent reply other threads:[~2002-12-16 6:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-15 14:50 ACK packets being dropped from yahoo Jon Wyatt
2002-12-16 6:11 ` Joel Newkirk [this message]
-- strict thread matches above, loose matches on Subject: below --
2002-12-16 16:32 Jon Wyatt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200212160111.07489.netfilter@newkirk.us \
--to=netfilter@newkirk.us \
--cc=netfilter@lists.netfilter.org \
--cc=samur2@hotmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.