Routes settings
Hello,
I have some customized routing settings. In Slackware, where is the standard place to put them? Also, when I want a service to run automatically on startup, what the procedure? Thanks, Murock |
One simple solution is to put the "route add ...." commands in /etc/rc.d/rc.local
The same goes for starting a service at boot time. If it is an existing service (say like ntpd), there will be a /etc/rc.d/rc.ntpd that you should just make executable with Code:
chmod +x /etc/rc.d/rc.ntpd |
Probably the best place to put all this is in /etc/rc.d/rc.local; however, if some of your network services require these routes to be present when they are activated, things could get out of sync. This usually isn't a problem with self-installed services called from rc.local, because you can add the route statements to rc.local before calling those services. If for some reason, you have to have these services running before one or more of the services included with Slackware starts, you'll need to add the route earlier. Perhaps the best place is in rc.firewall. You can add those rules there just before calling your custom firewall (if one exists on the machine) and they'll be present before any network services are started.
|
Hello!
Thanks, I'll need to track the rc files. Debian and others use a different convention, so it takes a bit getting used to. I was just wondering my Slackware system does not have an rc.firewall script in /etc/rc.d. Is it supposed to be installed by default? Where do I get it? Thanks, Murdock |
The rc.firewall script does not come with the default installation, but if it exists and is executable, it will be run by rc.inet2:
Code:
# If there is a firewall script, run it before enabling packet forwarding. |
All times are GMT -5. The time now is 05:51 AM. |