Preventing ICMP Redirects?
Suthep Vichiendilokkul [email protected]
<PRE>On Sun, Feb 11, 2001 at 02:36:43AM -0200, Rogerio Brito wrote:
><i> I've been bitten by these ICMP Redirects once. Is there any
</I>><i> way to prevent them from being sent out? Perhaps doing some
</I>
Hmmm. I never tried this before, but how about setting these kernel variables to 0? (depending on what you want):
/proc/sys/net/ipv4/conf/<if>/accept_redirects /proc/sys/net/ipv4/conf/<if>/send_redirects
Note that I'm using kernel 2.4. I'm not sure they are available in 2.2, though.
Suthep
><i> packet filtering of the ICMP Redirects? Even if this works,
</I>><i> this sure sounds like a dirty solution... :-(
</I>><i>
</I>><i> In that occasion, I was trying to set up a masquerading box
</I>><i> with only one NIC and two IP addresses (the Internet-valid one
</I>><i> and the private one), hooking everything in a single hub and
</I>><i> routing accordingly.
</I>><i>
</I>><i> I don't remember the details (since this was many months ago),
</I>><i> but the only solution that I could make work was to buy
</I>><i> another NIC for the masquerading box and put one IP in each
</I>><i> NIC, doing everything as usual. :-(
</I>><i>
</I>><i> As I don't remember more details of the situation, I'm just
</I>><i> hoping that this description rings a bell for someone. Any
</I>><i> explanation of how to make this setup with just one NIC or
</I>><i> comments on why this shouldn't be done are immensely
</I>><i> appreciated.
</I>><i>
</I>><i>
</I>><i> Thanks in advance, Roger...
</I>><i>
</I>><i> --
</I>><i> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-</I>><i> Rogerio Brito - <A HREF="mailto:[email protected]">[email protected]</A> - <A HREF="http://www.ime.usp.br/~rbrito/">http://www.ime.usp.br/~rbrito/</A>
</I>><i> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-</I>><i>
</I>><i> _______________________________________________
</I>><i> LARTC mailing list / <A HREF="mailto:[email protected]">[email protected]</A>
</I>><i> <A HREF="http://mailman.ds9a.nl/mailman/listinfo/lartc">http://mailman.ds9a.nl/mailman/listinfo/lartc</A> HOWTO: <A HREF="http://ds9a.nl/2.4Routing/">http://ds9a.nl/2.4Routing/</A> </I>
</PRE>
Rogerio Brito [email protected]
<PRE>On Feb 13 2001, Suthep Vichiendilokkul wrote:
><i> On Sun, Feb 11, 2001 at 02:36:43AM -0200, Rogerio Brito wrote:
</I>><i> > I've been bitten by these ICMP Redirects once. Is there any
</I>><i> > way to prevent them from being sent out? Perhaps doing some
</I>
First of all, I'd like to thank everybody who replied. A sincere thanks.
><i> Hmmm. I never tried this before, but how about setting these kernel </I>><i> variables to 0? (depending on what you want):
</I>><i>
</I>><i> /proc/sys/net/ipv4/conf/<if>/accept_redirects </I>><i> /proc/sys/net/ipv4/conf/<if>/send_redirects </I>
Yes, I'm using Linux 2.2.18 and they are available here.
Thanks again, Roger...
Signature · 4 lines
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Rogerio Brito - <A HREF="mailto:[email protected]">[email protected]</A> - <A HREF="http://www.ime.usp.br/~rbrito/">http://www.ime.usp.br/~rbrito/</A> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- </PRE>