One Line on Startup

Matthew J. Roth mroth at imminc.com
Thu Aug 16 18:25:26 UTC 2007


Mike -- EMAIL IGNORED wrote:
> I have heard that because I am using forwarding in
> iptables, it is necessary to do:
>    echo 1 > /proc/sys/net/ipv4/ip_forward
> on startup. I have a vague memory that there is
> a good place to put such commands, rather than
> writing a startup script just for this line.
> Any suggestions?
Mike,

I think you're looking for "/etc/rc.local".  It's commented as follows:

  # This script will be executed *after* all the other init scripts.
  # You can put your own initialization stuff in here if you don't
  # want to do the full Sys V style init stuff.

Matthew Roth
InterMedia Marketing Solutions
Software Engineer and Systems Developer




More information about the fedora-list mailing list