From: Jean-Christian Imbeault <jc@mega-bucks.co.jp>
To: netfilter@lists.netfilter.org
Subject: Newbie: why is this packet being dropped/logged?
Date: Mon, 04 Aug 2003 14:11:35 +0900 [thread overview]
Message-ID: <3F2DEB07.1060801@mega-bucks.co.jp> (raw)
I am relatively new to iptables. I have set up some basic rules for my
web server to allow only SSH and HTTP traffic (listed below). But I am
finding some log entries showing packets that were trying to connect to
port 80 getting logged (and dropped).
I can't understand why these packets were logged as I thought my rules
would let through any packet trying to connect to port 80.
# iptables -n -v -L
Chain INPUT (policy DROP 279 packets, 14864 bytes)
pkts bytes target prot opt in out source
destination
238 47040 ACCEPT all -- lo * 0.0.0.0/0
0.0.0.0/0
366M 21G ACCEPT all -- * * 0.0.0.0/0
0.0.0.0/0 state RELATED,ESTABLISHED
2199K 120M ACCEPT tcp -- eth0 * 0.0.0.0/0
203.179.86.66 state NEW,RELATED,ESTABLISHED tcp dpt:80
38 1824 ACCEPT tcp -- eth0 * 219.118.175.0/24
203.179.86.66 state NEW,RELATED,ESTABLISHED tcp dpt:22
0 0 DROP udp -- * * 0.0.0.0/0
0.0.0.0/0 udp dpt:67
0 0 REJECT tcp -- * * 0.0.0.0/0
0.0.0.0/0 tcp dpt:113 reject-with tcp-reset
0 0 REJECT udp -- * * 0.0.0.0/0
0.0.0.0/0 udp dpt:137 reject-with icmp-port-unreachable
0 0 REJECT udp -- * * 0.0.0.0/0
0.0.0.0/0 udp dpt:138 reject-with icmp-port-unreachable
0 0 REJECT tcp -- * * 0.0.0.0/0
0.0.0.0/0 tcp dpt:138 reject-with icmp-port-unreachable
0 0 REJECT udp -- * * 0.0.0.0/0
0.0.0.0/0 udp dpt:139 reject-with icmp-port-unreachable
279 14864 LOG all -- * * 0.0.0.0/0
0.0.0.0/0 LOG flags 0 level 7 prefix `DROP:'
Here is one of those log entries:
kernel: DROP:IN=eth0 OUT= MAC=00:d0:b7:e1:13:e7:00:90:fe:1e:50:a6:08:00
SRC=66.69.93.167 DST=203.179.86.66 LEN=40 TOS=0x00 PREC=0x00 TTL=105
ID=8622 DF PROTO=TCP SPT=1439 DPT=80 WINDOW=64952 RES=0x00 ACK URGP=0
Can someone help me understand why this packet was dropped?
Thanks,
Jean-Christian Imbeault
next reply other threads:[~2003-08-04 5:11 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-04 5:11 Jean-Christian Imbeault [this message]
[not found] ` <1059980959.926.1.camel@elendil.intranet.cartel-securite.net>
2003-08-04 7:29 ` Newbie: why is this packet being dropped/logged? Jean-Christian Imbeault
2003-08-04 7:40 ` Cedric Blancher
2003-08-04 7:49 ` Jean-Christian Imbeault
2003-08-04 8:04 ` Cedric Blancher
2003-08-04 8:08 ` Jean-Christian Imbeault
-- strict thread matches above, loose matches on Subject: below --
2003-08-04 5:31 George Vieira
2003-08-04 5:32 ` Jean-Christian Imbeault
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=3F2DEB07.1060801@mega-bucks.co.jp \
--to=jc@mega-bucks.co.jp \
--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