You are not logged in.
Pages: 1
Hi all!
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
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
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
Pages: 1