Re: enable ip_forward at boot up

Engels Antonio <[email protected]> Tue, 08 Nov 2005 17:42:43 +0800
Newsgroups gmane.org.user-groups.linux.philippine.newbies
Organization Bluepoint Institute
Message-ID <[email protected]>
On Tue, 2005-11-08 at 17:36, sp@rt@cus wrote:
> hi guys,
> how can i enable my ip_forward set to 1, every time i reboot? 
> tia

Here are two possible ways:

1. rc.local

# vi /etc/rc.d/rc.local

rc.local
--------
echo 1 > /proc/sys/net/ipv4/ip_forward


2. sysctl.conf

# vi /etc/sysctl.conf

sysctl.conf
-----------
net.ipv4.ip_forward = 1

HTH,

Engels

--
Engels Antonio, RHCE, RHCX
Bluepoint Institute
http://bluepoint.com.ph/


_________________________________________________________
Philippine Linux Users' Group (PLUG) Newbie Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph