All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mike Wright <xktnniuymlla@mailinator.com>
To: netfilter <netfilter@lists.netfilter.org>
Subject: Re: icmp-type question
Date: Wed, 27 Jun 2007 10:09:56 -0700	[thread overview]
Message-ID: <468299E4.3020906@mailinator.com> (raw)
In-Reply-To: <35f70db10706270927j3e15b87anc134c458a621b146@mail.gmail.com>

Ross Cameron wrote:
> Hi there list,...
> 
> I need to block all
>     timestamp-request      and
>     timestamp-reply
> 
> On eth0 (Inet facing fast ethernet segment on a multi homed Linux
> router) but not on eth1 (LAN facing range).
>

I don't know how to test this so here's a guess.  Hope it works.

Drop requests from the internet:
iptables -A input -p icmp --icmp-type timestamp-request -i eth0 -j DROP

My thought is that if no timestamp requests are accepted no timestamp 
replies would be generated.  In case that's an invalid assumption you 
could also filter the output chain.

...and drop answers to the internet:
iptables -A output -p icmp --icmp-type timestamp-reply -o eth0 -j DROP

Depending on what else you are doing you may need matching rules in your 
forward chains, too.

:m)


  reply	other threads:[~2007-06-27 17:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <35f70db10706270926u708cc4f4ta0a962ca219ce91e@mail.gmail.com>
2007-06-27 16:27 ` icmp-type question Ross Cameron
2007-06-27 17:09   ` Mike Wright [this message]
2007-06-27 19:16     ` Grant Taylor
2007-06-28  7:48       ` Ross Cameron
2007-06-28 10:26         ` Maximilian Wilhelm

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=468299E4.3020906@mailinator.com \
    --to=xktnniuymlla@mailinator.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 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.