Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Antony Stone <Antony@Soft-Solutions.co.uk>
To: Netfilter <netfilter@lists.netfilter.org>
Subject: Re: Instructions on how to redirect port 80 to port 8080
Date: Wed, 18 Feb 2004 16:21:51 +0000	[thread overview]
Message-ID: <200402181621.51556.Antony@Soft-Solutions.co.uk> (raw)
In-Reply-To: <9908FCB837A50642B74E2BEC198843095CC657@csrees-exchsrvb.csrees.usda.gov>

On Wednesday 18 February 2004 4:07 pm, Martinez, Michael wrote:

> Antony,
>
> Being an iptables newbie ... How would I log all rejected packets?

Just before the line which says 

iptables -A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited

you insert one which says

iptables -A RH-Firewall-1-INPUT -j LOG

If you want to be a bit sophisticated about it:

iptables -A RH-Firewall-1-INPUT -j LOG --log-level=info --log-prefix="Reject:"

That way, the logs will go to /var/log/messages and will have "Reject:" in 
them so you can easily identify what they mean.

Regards,

Antony.

-- 
All matter in the Universe can be placed into one of two categories:

1. Things which need to be fixed.
2. Things which need to be fixed once you've had a few minutes to play with 
them.

                                                     Please reply to the list;
                                                           please don't CC me.



  reply	other threads:[~2004-02-18 16:21 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-18 16:07 Instructions on how to redirect port 80 to port 8080 Martinez, Michael
2004-02-18 16:21 ` Antony Stone [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-02-18 19:19 Martinez, Michael
2004-02-18 19:06 Martinez, Michael
2004-02-18 19:10 ` Antony Stone
2004-02-18 18:47 Martinez, Michael
2004-02-18 19:02 ` Antony Stone
2004-02-18 17:47 Martinez, Michael
     [not found] <9908FCB837A50642B74E2BEC198843095CC655@csrees-exchsrvb.csrees.usda.gov>
2004-02-18 15:01 ` Fabian Hartmann
2004-02-18 15:11   ` Antony Stone
2004-02-18 14:41 Sven-Åke Larsson
2004-02-18 14:31 Martinez, Michael
2004-02-18 15:08 ` Antony Stone
2004-02-18 14:06 Martinez, Michael
2004-02-18 14:19 ` Antony Stone
2004-02-18 17:28 ` Alexis
2004-02-17 19:24 Martinez, Michael
2004-02-17 18:55 Martinez, Michael
2004-02-17 19:04 ` Alexis
2004-02-17 19:10   ` Alexis
2004-02-17 19:30     ` Antony Stone

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=200402181621.51556.Antony@Soft-Solutions.co.uk \
    --to=antony@soft-solutions.co.uk \
    --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