* ACK packets being dropped from yahoo
@ 2002-12-15 14:50 Jon Wyatt
2002-12-16 6:11 ` Joel Newkirk
0 siblings, 1 reply; 3+ messages in thread
From: Jon Wyatt @ 2002-12-15 14:50 UTC (permalink / raw)
To: netfilter
I have set up a firewall/gateway to handle all internet requests.
Everything's looking great and I'm surfing the web quite happily from my
Linux box. Then I try to run a search from yahoo (www.yahoo.com) and hit
problems. Once I've entered a search string and hit the search button the
browser just sits there an eventually times out.
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?
Thanks.
jon.
Better than having your body rubbed vigorously with a cheese grater.
http://www.samuri.co.uk.
_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8.
http://join.msn.com/?page=features/junkmail
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: ACK packets being dropped from yahoo
2002-12-15 14:50 ACK packets being dropped from yahoo Jon Wyatt
@ 2002-12-16 6:11 ` Joel Newkirk
0 siblings, 0 replies; 3+ messages in thread
From: Joel Newkirk @ 2002-12-16 6:11 UTC (permalink / raw)
To: Jon Wyatt, netfilter
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: ACK packets being dropped from yahoo
@ 2002-12-16 16:32 Jon Wyatt
0 siblings, 0 replies; 3+ messages in thread
From: Jon Wyatt @ 2002-12-16 16:32 UTC (permalink / raw)
To: netfilter, netfilter
>From: Joel Newkirk <netfilter@newkirk.us>
>
>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?
>
I swear to god I haven't changed anything...........
...........but it's started working.
Thanks anyway.
jon.
_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8.
http://join.msn.com/?page=features/junkmail
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-12-16 16:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-15 14:50 ACK packets being dropped from yahoo Jon Wyatt
2002-12-16 6:11 ` Joel Newkirk
-- strict thread matches above, loose matches on Subject: below --
2002-12-16 16:32 Jon Wyatt
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.