You are not logged in.

#1 2004-04-28 22:06:06

mladen
Member
From: Home
Registered: 2004-03-03
Posts: 46

sysctl.conf - best way to start at boot?

Hi all!  smile

My arch box serves as firewall/router to other boxes on my home network. Obviously, I have to use NAT and net.ipv4 forwarding set to 1 (via sysctl.conf file).

My question is: what's the best way to start sysctl at boot, so those kernel variables are set (forwarding, syncookies etc.)?

Currently, I've:
- put my little script with "sysctl -p" line in rc.d directory;
- call that script from rc.conf;
- sysctl.conf is in /etc .
It works... but, I wander what is the better/proper way of doing it.


No past, no future. It's all one long, never ending present.

Offline

#2 2004-04-29 00:15:08

aCoder
Member
From: Medina, OH
Registered: 2004-03-07
Posts: 359
Website

Re: sysctl.conf - best way to start at boot?

Well, there really isn't a wrong way to start something at boot, as long as the deps are started first, and it's OK to have it running as root.  You could do it other ways, but I don't see how they'd be any better.


If you develop an ear for sounds that are musical it is like developing an ego. You begin to refuse sounds that are not musical and that way cut yourself off from a good deal of experience.
  - John Cage

Offline

#3 2004-04-29 04:00:46

mladen
Member
From: Home
Registered: 2004-03-03
Posts: 46

Re: sysctl.conf - best way to start at boot?

Thanks aCoder.

With some other distros, it would be done automatically (sysctl at boot). User just needs to set values of the sysctl.conf file.
With Arch, both steps are manual - and I didn't know any better way. In other hand, that's what Arch is about, eh!

Cheers,
mladen


No past, no future. It's all one long, never ending present.

Offline

Board footer

Powered by FluxBB