Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Grant Taylor <gtaylor@riverviewtech.net>
To: Mail List - Netfilter <netfilter@vger.kernel.org>
Subject: Re: icmp-redirect
Date: Wed, 16 Jul 2008 09:56:12 -0500	[thread overview]
Message-ID: <487E0C0C.8030709@riverviewtech.net> (raw)
In-Reply-To: <004c01c8e6b8$f215b920$0200640a@wtlc>

On 07/15/08 15:25, Andrea Bencini wrote:
> I have a local network (10.100.0.0/24) and my default gateway is a 
> firewall (fw;eth0=10.100.0.1) with linux OS and netfilter.
> In the same network I have an other gateway (linux OS and netfilter) to 
> connect a local subnetwork (10.6.70.0/24). Gateway eth0 is 10.100.0.241 
> and gateway eth1 is 10.6.70.241.
> In the local network (10.100.0.0/24) I have windows client (XP prof) and 
> default gateway of these is 10.100.0.1.
> I want implement "icmp redirect" in the firewall (default gateway); What 
> do I have to add or to change in my firewall?

Are you sure that it is not happening already?  There are some /proc 
entries controlling how Linux behaves regarding ICMP redirects (should 
it listen to and / or send them) that you can change.  I think they both 
are enabled by default, though your distro may throb them.

/proc/sys/net/ipv4/icmp_ratemask
/proc/sys/net/ipv4/icmp_ratelimit
/proc/sys/net/ipv4/icmp_ignore_bogus_error_responses
/proc/sys/net/ipv4/icmp_echo_ignore_broadcasts
/proc/sys/net/ipv4/icmp_echo_ignore_all

I think you will be most interested in the last two.  Check kernel 
documentation (<kernel source>/Documentation/networking/ip-sysctl.txt) 
for more information.



Grant. . . .

      reply	other threads:[~2008-07-16 14:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-15 20:25 icmp-redirect Andrea Bencini
2008-07-16 14:56 ` Grant Taylor [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=487E0C0C.8030709@riverviewtech.net \
    --to=gtaylor@riverviewtech.net \
    --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