Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "Lars Täuber" <taeuber@bbaw.de>
To: netfilter@lists.netfilter.org
Subject: Problem resolved!
Date: Thu, 19 Apr 2007 13:10:56 +0200	[thread overview]
Message-ID: <20070419131056.8ba9bbcc.taeuber@bbaw.de> (raw)
In-Reply-To: <20070419112338.a3f379bb.taeuber@bbaw.de>

Jorge was very right.

The routing tables where not ballanced.
The gateway has had a route to the 194.95.188.0/26 network and so the requests for a tcp connection into this network have never been seen by the firewall. That's why the answers are invalid.

Sorry for this disturbance. But sometimes it helps to simply talk about problems.

Thanks.
Lars

Am Thu, 19 Apr 2007 11:23:38 +0200 schrieb Lars Täuber <taeuber@bbaw.de>:

> Hi!
> 
> To enhance the problem:
> 
> The ICMP redirects are also blocked as invalid:
> 
> kernel: RULE -1 -- DENY IN= OUT=eth2 SRC=194.95.188.7 DST=194.95.188.37 LEN=76 TOS=0x00 PREC=0xC0 TTL=64 ID=18322 PROTO=ICMP TYPE=5 CODE=1 GATEWAY=194.95.188.25 [SRC=194.95.188.37 DST=194.95.188.245 LEN=48 TOS=0x00 PREC=0x00 TTL=63 ID=0 DF PROTO=TCP SPT=80 DPT=1246 WINDOW=5840 RES=0x00 ACK SYN URGP=0 ] 
> 
> What is invalid with this?
> 
> Here again the rules that match (first rules of firewall script):
>  $IPTABLES -N drop_invalid
>  $IPTABLES -A OUTPUT   -m state --state INVALID  -j drop_invalid
>  $IPTABLES -A INPUT    -m state --state INVALID  -j drop_invalid
>  $IPTABLES -A FORWARD  -m state --state INVALID  -j drop_invalid
>  $IPTABLES -A drop_invalid  -j LOG  --log-level debug --log-prefix "RULE -1 -- DENY "
>  $IPTABLES -A drop_invalid  -j DROP
> 
> I think it could have something to do with the ACK and SYN flags. It seems to me the kernel doesn't recognise this packet as part of an established connection.
> Anyone with an explaination here or someone that shows me my nescience?
> 
> Thanks
> Lars
> 


-- 
                            Informationstechnologie
Berlin-Brandenburgische Akademie der Wissenschaften
Jägerstrasse 22-23                     10117 Berlin
Tel.: +49 30 20370-352           http://www.bbaw.de


      reply	other threads:[~2007-04-19 11:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-18 13:19 Valid packets blocked as invalid? Lars Täuber
2007-04-18 15:30 ` Jorge Davila
2007-04-19  6:33   ` Lars Täuber
2007-04-19  9:23     ` Lars Täuber
2007-04-19 11:10       ` Lars Täuber [this message]

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=20070419131056.8ba9bbcc.taeuber@bbaw.de \
    --to=taeuber@bbaw.de \
    --cc=netfilter@lists.netfilter.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox