Damn Small Linux (DSL) Forums

Damn Small Linux => Other Help Topics => Topic started by: sokolum on February 19, 2013, 11:04:07 PM



Title: How to make sysctl.conf read on boot
Post by: sokolum on February 19, 2013, 11:04:07 PM
I configure DSL with 2 Ethernet Interfaces and need to route, to do that so the following is tested and working:


/etc/sysctl.conf:
net.ipv4.ip_forward = 1


sysctl -p /etc/sysctl.conf


Now DSL is routing my traffic.
The bad thing is, it doesn't stand after a reboot. Need to do again 'sysctl -p /etc/sysctl.conf' manually...



Title: Re: How to make sysctl.conf read on boot
Post by: sokolum on February 20, 2013, 02:14:52 PM
Well, just did the following and works:


Added the following line at the end of file:

/etc/init.d/dsl-config

sudo sh -c "echo 1 > /proc/sys/net/ipv4/ip_forward"


My previous example is no more needed with this new step.


Powered by SMF 1.1.20 | SMF © 2013, Simple Machines