<?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>RedHatVN Network &#187; sysctl</title>
	<atom:link href="http://redhatvn.net/tag/sysctl/feed" rel="self" type="application/rss+xml" />
	<link>http://redhatvn.net</link>
	<description>Shared Linux problems</description>
	<lastBuildDate>Mon, 31 Oct 2011 07:10:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>HowTo: Add iptable modules on a VPS</title>
		<link>http://redhatvn.net/howto-add-iptable-modules-on-a-vps</link>
		<comments>http://redhatvn.net/howto-add-iptable-modules-on-a-vps#comments</comments>
		<pubDate>Fri, 25 Dec 2009 06:21:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[vps]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[sysctl]]></category>

		<guid isPermaLink="false">http://redhatvn.net/?p=995</guid>
		<description><![CDATA[If you receive the following error on restating iptables on a VPS: error message: from firewall software ~ iptables: Unknown error 4294967295 you need to make sure the required iptable modules are loaded in the host server kernel. You have to use modprobe to load the following modules in the kernel: modprobe ipt_MASQUERADE modprobe ipt_helper [...]]]></description>
			<content:encoded><![CDATA[<div class="google_plus_one"><g:plusone size="medium" count="true" url="http://redhatvn.net/howto-add-iptable-modules-on-a-vps"></g:plusone></div><p>If you receive the following error on restating iptables on a VPS:</p>
<blockquote><p>error message: from firewall software ~ iptables: Unknown error 4294967295</p></blockquote>
<p>you need to make sure the required iptable modules are loaded in the host server kernel. You have to use modprobe to load the following modules in the kernel:<br />
<span id="more-995"></span><br />
<strong><code>modprobe ipt_MASQUERADE<br />
modprobe ipt_helper<br />
modprobe ipt_REDIRECT<br />
modprobe ipt_state<br />
modprobe ipt_TCPMSS<br />
modprobe ipt_LOG<br />
modprobe ipt_TOS<br />
modprobe tun<br />
modprobe iptable_nat<br />
modprobe ipt_length<br />
modprobe ipt_tcpmss<br />
modprobe iptable_mangle<br />
modprobe ipt_limit<br />
modprobe ipt_tos<br />
modprobe iptable_filter<br />
modprobe ipt_helper<br />
modprobe ipt_tos<br />
modprobe ipt_ttl<br />
modprobe ipt_REJECT</code></strong></p>
<p>Once the modules are loaded, add the modules to your VPS using the vzctl command. You will have to stop the VPS first</p>
<p><strong><code>vzctl stop VEID</code></strong></p>
<p>and then add the modules to a VPS</p>
<blockquote><p><span style="color: #ff6600;"><strong>vzctl set VEID –iptables ipt_REJECT –iptables ipt_tos –iptables ipt_TOS –iptables ipt_LOG –iptables ip_conntrack –iptables ipt_limit –iptables ipt_multiport –iptables iptable_filter –iptables iptable_mangle –iptables ipt_TCPMSS –iptables ipt_tcpmss –iptables ipt_ttl –iptables ipt_length –iptables ipt_state –iptables iptable_nat –iptables ip_nat_ftp –save</strong></span></p></blockquote>
<p>Once the above command is executed, start the VPS</p>
<p><strong><code>vzctl start VEID</code></strong></p>
<p>Now you are set to use iptables on your VPS.</p>
]]></content:encoded>
			<wfw:commentRss>http://redhatvn.net/howto-add-iptable-modules-on-a-vps/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>VPS iptables rule limit is too low</title>
		<link>http://redhatvn.net/vps-iptables-rule-limit-is-too-low</link>
		<comments>http://redhatvn.net/vps-iptables-rule-limit-is-too-low#comments</comments>
		<pubDate>Fri, 25 Dec 2009 06:22:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[vps]]></category>
		<category><![CDATA[sysctl]]></category>

		<guid isPermaLink="false">http://redhatvn.net/?p=998</guid>
		<description><![CDATA[You may come across with a “numiptent” error message while restarting iptables or whatever firewall (say csf) you have installed on your VPS. The error appear as follows: The VPS iptables rule limit (numiptent) is too low (200/250) – stopping firewall to prevent iptables blocking all connections There is a limit on the number of [...]]]></description>
			<content:encoded><![CDATA[<div class="google_plus_one"><g:plusone size="medium" count="true" url="http://redhatvn.net/vps-iptables-rule-limit-is-too-low"></g:plusone></div><p>You may come across with a “<span style="color: #ff6600;">numiptent</span>” error message while restarting iptables or whatever firewall (say csf) you have installed on your VPS. The error appear as follows:</p>
<blockquote><p><strong>The VPS iptables rule limit (numiptent) is too low (200/250) – stopping firewall to prevent iptables blocking all connections</strong></p></blockquote>
<p>There is a limit on the number of iptables packet filtering entries for a VPS and if the iptable rules added on a VPS exceeds the “<span style="color: #ff6600;">numiptent</span>” set, you will receive the given error message.</p>
<p>To make sure iptables works properly on a VPS, you need to <strong>increase the “<span style="color: #ff6600;">numiptent</span>” value in the VPS configuration file</strong> which is <strong>located at /etc/sysconfig/vz-scripts/veid.conf</strong> and have to restart the VPS.</p>
]]></content:encoded>
			<wfw:commentRss>http://redhatvn.net/vps-iptables-rule-limit-is-too-low/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Howto: change Port OR Network Interface Speed?</title>
		<link>http://redhatvn.net/howto-change-port-or-network-interface-speed</link>
		<comments>http://redhatvn.net/howto-change-port-or-network-interface-speed#comments</comments>
		<pubDate>Fri, 25 Dec 2009 06:40:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[Directadmin]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[shell script]]></category>
		<category><![CDATA[vps]]></category>
		<category><![CDATA[sysctl]]></category>

		<guid isPermaLink="false">http://redhatvn.net/?p=1016</guid>
		<description><![CDATA[How to change Port speed OR Network Interface Speed? To set a specific speed limit on a Network Interface say 10mbps, edit the file network interface file and set the limit which will make the changes permanent even after a reboot. Edit the file: root@server [~]# pico /etc/sysconfig/network-scripts/ifcfg-eth0 Add the following line at the end [...]]]></description>
			<content:encoded><![CDATA[<div class="google_plus_one"><g:plusone size="medium" count="true" url="http://redhatvn.net/howto-change-port-or-network-interface-speed"></g:plusone></div><p><strong>How to change Port speed OR Network Interface Speed?</strong><br />
To set a specific speed limit on a Network Interface say 10mbps, edit the file network interface file and set the limit which will make the changes permanent even after a reboot.<br />
<span id="more-1016"></span><br />
<strong>Edit the file:</strong></p>
<p><strong><code>root@server [~]# pico /etc/sysconfig/network-scripts/ifcfg-eth0</code></strong></p>
<p><strong>Add the following line at the end of the file:</strong></p>
<blockquote><p><span style="color: #ff6600;"><strong>ETHTOOL_OPTS=”speed 10 duplex full autoneg off”</strong></span></p></blockquote>
<p><strong>Save the file and restart the network service.</strong></p>
<p><strong><code>root@server [~]# service network restart</code></strong></p>
<p>This way you can set the duplex or auto negotiation as well. Once done, you can <strong>check the network speed using the ethtool command</strong><br />
<strong><code>root@server [~]# ethtool eth0</code></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://redhatvn.net/howto-change-port-or-network-interface-speed/feed</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>Optimizing host.conf and sysctl.conf</title>
		<link>http://redhatvn.net/optimizing-host-conf-and-sysctl-conf</link>
		<comments>http://redhatvn.net/optimizing-host-conf-and-sysctl-conf#comments</comments>
		<pubDate>Fri, 31 Jul 2009 17:10:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[sysctl]]></category>

		<guid isPermaLink="false">http://redhatvn.net/?p=44</guid>
		<description><![CDATA[Well, here is another net-based optimization script i have for you. It also is not a masterpiece, but when you include this with everything else, this small addition is the topping to the cake. #!/bin/sh cp /etc/host.conf /etc/host.back echo &#8220;# Lookup names via DNS first then fall back to /etc/hosts.&#8221; &#62; /etc/host.conf echo &#8220;order bind,hosts&#8221; [...]]]></description>
			<content:encoded><![CDATA[<div class="google_plus_one"><g:plusone size="medium" count="true" url="http://redhatvn.net/optimizing-host-conf-and-sysctl-conf"></g:plusone></div><div>
<p>Well, here is another net-based optimization script i have for you. It also is not a masterpiece, but when you include this with everything else, this small addition is the topping to the cake.</p>
<p><span id="more-44"></span>#!/bin/sh<br />
cp /etc/host.conf /etc/host.back<br />
echo &#8220;# Lookup names via DNS first then fall back to /etc/hosts.&#8221; &gt; /etc/host.conf<br />
echo &#8220;order bind,hosts&#8221; &gt;&gt; /etc/host.conf<br />
echo &#8220;# We have machines with multiple IP addresses.&#8221; &gt;&gt; /etc/host.conf<br />
echo &#8220;multi on&#8221; &gt;&gt; /etc/host.conf<br />
echo &#8220;# Check for IP address spoofing.&#8221; &gt;&gt; /etc/host.conf<br />
echo &#8220;nospoof on&#8221; &gt;&gt; /etc/host.conf<br />
cp /etc/sysctl.conf /etc/sysctl.conf.old<br />
echo &#8220;# Max File Handlers&#8221; &gt;&gt; /etc/sysctl.conf<br />
echo &#8220;fs.file-max = 8192&#8243; &gt;&gt; /etc/sysctl.conf<br />
echo &#8220;# Disable CTR+ALT+DEL Restart Keys&#8221; &gt;&gt; /etc/sysctl.conf<br />
echo &#8220;kernel.ctrl-alt-del = 1&#8243; &gt;&gt; /etc/sysctl.conf<br />
echo &#8220;# Enable TCP SYN cookie protection&#8221; &gt;&gt; /etc/sysctl.conf<br />
echo &#8220;net.ipv4.tcp_syncookies = 1&#8243; &gt;&gt; /etc/sysctl.conf<br />
echo &#8220;# Disable ICMP Redirect Acceptance&#8221; &gt;&gt; /etc/sysctl.conf</div>
]]></content:encoded>
			<wfw:commentRss>http://redhatvn.net/optimizing-host-conf-and-sysctl-conf/feed</wfw:commentRss>
		<slash:comments>28</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
