From: Jan Humme <jan.humme@xs4all.nl>
To: netfilter@lists.samba.org
Subject: Do I need a firewall rule for RST ?
Date: Tue, 9 Jul 2002 18:50:13 +0200 [thread overview]
Message-ID: <02070918501400.02824@Lms> (raw)
In /var/log/messages, I often find packages that have been rejected because
of the following rules:
$IPTABLES -A FORWARD -m multiport -p tcp -i ppp0 --sports $TCPOUT\
-j ACCEPT --tcp-flags ACK ACK
$IPTABLES -A FORWARD -m multiport -p tcp -o ppp0 --dports $TCPOUT\
-j ACCEPT
In short, what I want to achieve is that incoming traffic should always have
the ACK-bit set.
Packets that are rejected most often are packets that have the RST-flag set:
Jul 9 14:08:58 jhh kernel: IN=ppp0 OUT=eth0 SRC=145.58.30.9 DST=192.168.0.1
LEN=40 TOS=0x00 PREC=0x00 TTL=49 ID=32896 PROTO=TCP SPT=80 DPT=1068 WINDOW=0
RES=0x00 RST URGP=0
Jul 9 14:08:59 jhh kernel: IN=ppp0 OUT=eth0 SRC=145.58.30.9 DST=192.168.0.1
LEN=40 TOS=0x00 PREC=0x00 TTL=49 ID=33682 PROTO=TCP SPT=80 DPT=1068 WINDOW=0
RES=0x00 RST URGP=0
Jul 9 14:09:01 jhh kernel: IN=ppp0 OUT=eth0 SRC=145.58.30.9 DST=192.168.0.1
LEN=40 TOS=0x00 PREC=0x00 TTL=49 ID=35186 PROTO=TCP SPT=80 DPT=1068 WINDOW=0
RES=0x00 RST URGP=0
Questions:
1) AFAIK these packets are harmless, correct? Or could some of them be used
in attacks?
2) (Assuming they are harmless:) is it safe then to add a rule:
$IPTABLES -A FORWARD -m multiport -p tcp -i ppp0 --sports $TCPOUT\
-j ACCEPT --tcp-flags RST RST
3) Is there perhaps a better way to deal with these kinds of packets?
Perhaps i should better use "state" and forget about the flags?
Jan Humme.
next reply other threads:[~2002-07-09 16:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-09 16:50 Jan Humme [this message]
2002-07-09 17:35 ` Do I need a firewall rule for RST ? Ramin Alidousti
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=02070918501400.02824@Lms \
--to=jan.humme@xs4all.nl \
--cc=netfilter@lists.samba.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 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.