<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>sysctl &#8211; lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</title>
	<atom:link href="https://lifelinux.com/tag/sysctl/feed/" rel="self" type="application/rss+xml" />
	<link>https://lifelinux.com</link>
	<description>All About Linux !</description>
	<lastBuildDate>Wed, 11 May 2011 05:47:02 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.5.3</generator>
	<item>
		<title>How To Enable IP Forwarding On CentOS / RedHat</title>
		<link>https://lifelinux.com/how-to-enable-ip-forwarding-on-centos-redhat/</link>
					<comments>https://lifelinux.com/how-to-enable-ip-forwarding-on-centos-redhat/#respond</comments>
		
		<dc:creator><![CDATA[lifeLinux]]></dc:creator>
		<pubDate>Wed, 11 May 2011 05:30:06 +0000</pubDate>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[Sys Admin]]></category>
		<category><![CDATA[/proc system]]></category>
		<category><![CDATA[Check IP Forwarding]]></category>
		<category><![CDATA[disable IP Forwarding]]></category>
		<category><![CDATA[IP Forwarding]]></category>
		<category><![CDATA[sysctl]]></category>
		<category><![CDATA[sysctl -p]]></category>
		<category><![CDATA[vi command]]></category>
		<guid isPermaLink="false">http://www.lifelinux.com/?p=412</guid>

					<description><![CDATA[<p>By default, Linux distribution such as Redhat, CentOS, and Fedora will have IP Forwarding disabled. The need to forward IP packets from one source to another using linux as the default gateway or linux router, IP forwarding should be enabled from this considerations. There are several techniques to enable IP Forwarding. Check IP Forwarding status [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://lifelinux.com/how-to-enable-ip-forwarding-on-centos-redhat/">How To Enable IP Forwarding On CentOS / RedHat</a> appeared first on <a rel="nofollow" href="https://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p></p><p>By default, Linux distribution such as Redhat, CentOS, and Fedora will have <strong>IP Forwarding</strong> disabled. The need to forward IP packets from one source to another using linux as the default gateway or linux router, IP forwarding should be enabled from this considerations. There are several techniques to enable IP Forwarding.<span id="more-412"></span></p>
<h3>Check IP Forwarding status</h3>
<p>Type the following command</p>
<pre>
[root@lifelinux ~]# sysctl -l | grep ip_forward
</pre>
<p>Sample outputs</p>
<pre>
net.ipv4.ip_forward = 0
</pre>
<p>or checking out the value in the /proc system</p>
<pre>
[root@lifelinux ~]# cat /proc/sys/net/ipv4/ip_forward
0
</pre>
<p>If IP forwarding is disabled, a value of 0 would be displayed and if IP forwarding was recently enabled, linux should be displaying a numerical value of 1.</p>
<h3>Enable IP Forwarding temporarily</h3>
<p>Login as root and type the following command</p>
<pre>
[root@lifelinux ~]# echo 1 > /proc/sys/net/ipv4/ip_forward
</pre>
<p>The setting is changed instantly but this setting will be erased after the reboot.</p>
<h3>Enable IP Forwarding permanently</h3>
<p>Type the following command</p>
<pre>
[root@lifelinux ~]# vi /etc/sysctl.conf
</pre>
<p>Add the following line</p>
<pre>
net.ipv4.ip_forward = 1
</pre>
<p>To enable the changes made in sysctl.conf you will need to run the command</p>
<pre>
[root@lifelinux ~]# sysctl -p
</pre>
<g:plusone href="https://lifelinux.com/how-to-enable-ip-forwarding-on-centos-redhat/" size="standard"  annotation="none"   ></g:plusone><p>The post <a rel="nofollow" href="https://lifelinux.com/how-to-enable-ip-forwarding-on-centos-redhat/">How To Enable IP Forwarding On CentOS / RedHat</a> appeared first on <a rel="nofollow" href="https://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://lifelinux.com/how-to-enable-ip-forwarding-on-centos-redhat/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
