[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: where to put forward to 1 pemanantly



On Tue, Nov 21, 2006 at 02:09:01PM +0100, Per Carlson wrote:
> On Tue, Nov 21, 2006 at 12:52:33PM +0100, abdelkader belahcene wrote:
> 
> > I want to use my machien as a gateway for others ones, instead of
> > doing that at manually
> > echo "1" > /proc/sys/net/ipv4/ip_forward
> > I want to do it permanantly , Where to store it. I tried
> > FORWARD_IPV4=true in /etc/network/interfaces, it gives an error!!
> > thanks for help
> 
> you can use the sysfsutils package. then you can define the things you
> wish to push into the /proc/sys filesystem at boot.

It's a bit obscure but if you actually have a hunt around you'll find
the /etc/network file and in there you'll find the options file. From
there it should be obvious.

There's also the fun of:

# grep forward /etc -r | less

Lots of files but easy enough to spot what you need.

-- 
    "To the extent that we overreact, we proffer the terrorists the
    greatest tribute."
    	- High Court Judge Michael Kirby



Reply to: