From: "Ashley M. Kirchner" <ashley@pcraft.com>
To: netfilter@lists.netfilter.org
Subject: Logging connections
Date: Thu, 09 Jun 2005 10:58:17 -0600 [thread overview]
Message-ID: <42A87529.3070005@pcraft.com> (raw)
I have a hole punched in our iptables configuration for an internet
application we're using to be able to reach an internal server
directly. What I'd like to do now is log the connections that are
coming in to that port. Ideally I would want the remote address it's
coming from, a time stamp and what the connection is wanting to do
(send/receive.)
The rules related to that hole are setup like this:
-A PREROUTING -i eth0 -p tcp -m tcp --dport 6666 -j DNAT
--to-destination 192.168.x.x
-A FORWARD -i eth0 -o eth2 -p tcp -m state --state NEW -m tcp
--dport 6666 --tcp-flags SYN,RST,ACK SYN -j ACCEPT
--
H | I haven't lost my mind; it's backed up on tape somewhere.
+--------------------------------------------------------------------
Ashley M. Kirchner <mailto:ashley@pcraft.com> . 303.442.6410 x130
IT Director / SysAdmin / WebSmith . 800.441.3873 x130
Photo Craft Imaging . 3550 Arapahoe Ave. #6
http://www.pcraft.com ..... . . . Boulder, CO 80303, U.S.A.
next reply other threads:[~2005-06-09 16:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-09 16:58 Ashley M. Kirchner [this message]
2005-06-09 18:48 ` Logging connections Eduardo Spremolla
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=42A87529.3070005@pcraft.com \
--to=ashley@pcraft.com \
--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