Great Circle Associates Firewalls
(March 1996)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Re: Solaris 2 & ip_forwarding
From: Peter Jeremy <jeremyp @ gsms01 . alcatel . com . au>
Date: Fri, 15 Mar 1996 07:30:04 +1100
To: firewalls @ GreatCircle . COM

On Thu, 14 Mar 1996 09:04:52 +0100, Casper Dik <casper @
 holland .
 Sun .
 COM> wrote:
>Unfortiunately, you're sadly mistaken about the magic involved with
>setting IPFORWARDING to -1 in SUnOS 4.x.  If you have a binary license, all it
>does is:
>
>/usr/kvm/sys/netinet/in_proto.c:int    ip_forwarding = IPFORWARDING;

I suspect it does exactly the same even if you have a source licence.
(At least the 4.4BSD source behaves this way, and the code seems fairly
similar).

>which can be undone with adb.
True, but you need to be root first.  And in general, once you get root
on a normal Unix box, all bets are off.  Why bother with IP forwarding
when you can just start an application-level proxy to do whatever you want?

> as long as you can patch
>a running kernel)
Note that SunOS 4.1.3 (can't comment obout other OSs) doesn't allow you
to patch code whilst the kernel is running.  This means that altering
kernel code takes a bit more care (like changing return addresses or
function pointers in data structures).

What I find more annoying is that it is impossible to make the kernel
ignore ICMP_REDIRECT packets without patching it (admittedly, the patch
is very simple).  This makes it fairly simple for someone to tell the
kernel to forward everything to them...

Peter


Follow-Ups:
Indexed By Date Previous: Risk Analysis/Assessments Information
From: "robertp @ hal-pc . org" <robertp @ hal-pc . org>
Next: Portus firewall experience
From: je <kevansje @ Onramp . NET>
Indexed By Thread Previous: Solaris 2 & ip_forwarding
From: Casper Dik <casper @ holland . Sun . COM>
Next: Re: Solaris 2 & ip_forwarding
From: Darren Reed <avalon @ coombs . anu . edu . au>

Google
 
Search Internet Search www.greatcircle.com