All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thorsten Scherf <tscherf@web.de>
To: Rakotomandimby Mihamina <mrakotom@free.fr>, netfilter@lists.samba.org
Subject: Re: Corrupted packets + Logs
Date: Thu, 18 Sep 2003 15:35:03 +0200	[thread overview]
Message-ID: <200309181535.04020.tscherf@web.de> (raw)
In-Reply-To: <200309171256.49551.mrakotom@free.fr>

On 17 September 2003 12:56 Rakotomandimby Mihamina wrote:

>#1
>I'm learning networks and i saw that there are some tools that send
>"corrupted" packets to a host to have an idea of the local OS ( an exemple
> is nmap ) .
>I would like my firewall to drop all corrupted packets .
>I made a search on google with the words " iptables drop corrupted
> packets" but i cannot find any clear-enough documentation .

There is a Netfilter Extension called "unclean" , which have the state of 
Experimental. You can try to use this one. Possible Checks are: packet 
lenght, packet checksum, lenght of a fragment if available, invalid 
icmp-codes, tcp/udp port 0 testing.


>#2
>I would like iptables to log into /var/log/messages .
>What have a got to configure into syslogd && iptables to do it ?
>What rules have i got ad apply ?

You can use the the target log along with a log-prefix and configure your 
syslogd to write all Kernel-Messages (Netfilter is Kernel based) to your 
/var/log/messages.

iptables -A FORWARD -p tcp --dport 80 -s $EXTNET -d $WWW -j LOG --log-prefix 
WWW-Connection


Greetings,

Thorsten Scherf
RHCE, RHCX



      reply	other threads:[~2003-09-18 13:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-17 10:56 Corrupted packets + Logs Rakotomandimby Mihamina
2003-09-18 13:35 ` Thorsten Scherf [this message]

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=200309181535.04020.tscherf@web.de \
    --to=tscherf@web.de \
    --cc=mrakotom@free.fr \
    --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.