CentOS / Red Hat Linux IP Forwarding How To

by on July 5, 2008 · 1 comment· LAST UPDATED July 5, 2009

in , ,

How do I enable IP forwarding under RHEL / Red Hat / Fedora / CentOS Linux operating systems?

You can easily turn on IP forwarding under Linux operating system by modifying Linux kernel variables (MIB).

Linux Enable IP Forwarding

Open /etc/sysctl.conf file using a text editor, enter:
# vi /etc/sysctl.conf
Set net.ipv4.ip_forward to 1, enter:

 
net.ipv4.ip_forward = 1
 

Save and close the file. Reload the changes by typing the following command:
# sysctl -p

See: How to setup Linux as a router for DSL, T1 line etc

TwitterFacebookGoogle+PDF versionFound an error/typo on this page? Help us!

{ 1 comment… read it below or add one }

1 HaboBabo May 24, 2014 at 4:02 am

uhm.. and where to put the ‘new’ IP?…

Reply

Leave a Comment

Tagged as: , , , , , , , , ,

Previous Faq:

Next Faq: