Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Nils Juergens <ju@isf.rwth-aachen.de>
To: netfilter@lists.netfilter.org
Subject: strange packets on loopback
Date: Tue, 22 Jun 2004 17:57:38 +0200	[thread overview]
Message-ID: <20040622155738.GA28370@koala7> (raw)

[-- Attachment #1: Type: text/plain, Size: 1655 bytes --]

Hello,

i have a firewall setup like this:

 /--------\
/ Internet \
\---------/
     |
  ___|____
 | Router |
 ----------
     |
     |
     |ext FW interface (y.y.y.y)
  ___|______
 | Firewall | (also routing)
 ------------
     | int FW interface (z.z.z.z) (default gw for PCs on lan)
     |
 /---------\
/ local net \ a.a.a.0/24
\----------/

  
my netfilter-based firewall logs packets like this:

INPUT DROP XX: IN=lo OUT= MAC=00:00:00:00:00:00:00:00:00:00:00:00:08:00 \
SRC=a.a.a.a DST=y.y.y.y LEN=40 TOS=0x00 PREC=0x00 TTL=255 ID=0 \
DF PROTO=TCP SPT=1249 DPT=8080 WINDOW=0 RES=0x00 RST URGP=0

where a.a.a.a is an IP on my local lan and y.y.y.y is the IP of the external
firewall interface.

I do have a squid proxy running on the firewall listening at 0.0.0.0:8080
and the clients are set up to use y.y.y.y:8080 as proxy, but i find it
rather strange that the IN-interface is listed as 'lo', while it should be
'int0' (i have renamed my interfaces as int0 and ext0 using nameif).

It also seems that I only log packets with the RST flag, no others.

The service itself is running fine, and the packets are dropped because i
only accept packets from lo that have a source address of 127.0.0.1, y.y.y.y
or z.z.z.z).

So unless I understand the concept of loopback completely wrong i think that
IN should only by 'lo' when the source address is on of the IP addresses of
the local interfaces, including lo.

Is this a bug?

I'm using iptables v1.2.6a and linux-2.4.26 with grsecurity-2.0-2.4.26.patch
on a Debian/Woody system.

I would be greateful for an explanation.

thx,

Nils Juergens

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

             reply	other threads:[~2004-06-22 15:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-22 15:57 Nils Juergens [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-06-23  9:21 strange packets on loopback Dharmendra T.
2004-06-23 12:37 ` Nils Juergens

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=20040622155738.GA28370@koala7 \
    --to=ju@isf.rwth-aachen.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