Re: One Line on Startup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thursday 16 August 2007 19:25, Matthew J. Roth wrote:
> 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?
>

Better to put it in /etc/sysctl.conf


# Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 1

This is the config file for kernel parameters

Tony


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux