Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Xin Huang <xhuang2001@yahoo.com>
To: netfilter@vger.kernel.org
Subject: newbie question: log all packets to closed ports?
Date: Mon, 16 Mar 2009 23:02:28 -0700 (PDT)	[thread overview]
Message-ID: <499103.50011.qm@web81807.mail.mud.yahoo.com> (raw)


I just tried iptables on my Linux box. It's working great. Now I want to use it to log any incoming TCP/UDP packets to any closed ports (not binded to any socket). How should I write the rules?

The server applications running on my Linux box are VOIP related and have TCP/UDP ports dynamically opened and closed. Is it possible to write some simple iptables rules to monitor those unwanted incoming packets destined to all the closed ports?

Thanks!



      

                 reply	other threads:[~2009-03-17  6:02 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=499103.50011.qm@web81807.mail.mud.yahoo.com \
    --to=xhuang2001@yahoo.com \
    --cc=netfilter@vger.kernel.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