<?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>linuxbuddies.com &#187; Firewall</title>
	<atom:link href="http://linuxbuddies.com/category/firewall/feed/" rel="self" type="application/rss+xml" />
	<link>http://linuxbuddies.com</link>
	<description>For linux documentations.</description>
	<lastBuildDate>Fri, 11 Sep 2009 10:11:58 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Block a Range of Ip Address Using IP Tables</title>
		<link>http://linuxbuddies.com/2009/09/10/block-a-range-of-ip-address-using-ip-tables/</link>
		<comments>http://linuxbuddies.com/2009/09/10/block-a-range-of-ip-address-using-ip-tables/#comments</comments>
		<pubDate>Thu, 10 Sep 2009 05:31:24 +0000</pubDate>
		<dc:creator>Eldo</dc:creator>
				<category><![CDATA[Firewall]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://linuxbuddies.com/?p=349</guid>
		<description><![CDATA[In some cases we can seen that there is attack coming to our server from a particular range of ip, in that case we need to block only that range not the full range. In that situtation we can use iptables
Example: If attack is coming from 202.10.100.20 to range of ...]]></description>
			<content:encoded><![CDATA[<p>In some cases we can seen that there is attack coming to our server from a particular range of ip, in that case we need to block only that range not the full range. In that situtation we can use iptables</p>
<p>Example: If attack is coming from 202.10.100.20 to range of 202.10.100.50</p>
<p>Use the command</p>
<p>iptables -A INPUT -m iprange &#8211;src-range 202.10.100.20-202.10.100.50 -J DROP</p>
<p>service iptables save</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxbuddies.com/2009/09/10/block-a-range-of-ip-address-using-ip-tables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ubuntu internet sharing</title>
		<link>http://linuxbuddies.com/2008/12/23/ubunthu-network-sharing/</link>
		<comments>http://linuxbuddies.com/2008/12/23/ubunthu-network-sharing/#comments</comments>
		<pubDate>Tue, 23 Dec 2008 12:52:53 +0000</pubDate>
		<dc:creator>Riyesh</dc:creator>
				<category><![CDATA[Firewall]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[Proxy]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[User administration]]></category>
		<category><![CDATA[ubunthu network]]></category>

		<guid isPermaLink="false">http://linuxbuddies.com/?p=196</guid>
		<description><![CDATA[ The following will explain how to share your Internet connection:
Note: Type all the following commands in a root terminal, DO NOT use sudo.
1. Start by configuring the network card that interfaces to the other computers on you network:
# ifconfig ethX ip 
where ethX is the network card and ip is your ...]]></description>
			<content:encoded><![CDATA[<p> <img class="alignnone size-thumbnail wp-image-197" title="ubuntu-1280x1024" src="http://linuxbuddies.com/wp-content/uploads/2008/12/ubuntu-1280x1024-150x150.png" alt="ubuntu-1280x1024" width="150" height="150" />The following will explain how to share your Internet connection:<br />
Note: Type all the following commands in a root terminal, DO NOT use sudo.</p>
<p>1. Start by configuring the network card that interfaces to the other computers on you network:</p>
<blockquote><p># ifconfig ethX ip </p></blockquote>
<p>where ethX is the network card and ip is your desired server ip address (Usually 192.168.0.1 is used)</p>
<p>2. Then configure the NAT as follows:</p>
<blockquote><p># iptables -t nat -A POSTROUTING -o ethX -j MASQUERADE </p></blockquote>
<p>where ethX is the network card that the Internet is coming from </p>
<blockquote><p># echo 1 &gt; /proc/sys/net/ipv4/ip_forward</p></blockquote>
<p>3. Install dnsmasq and ipmasq using apt-get: </p>
<blockquote><p># apt-get install dnsmasq ipmasq</p></blockquote>
<p>4. Restart dnsmasq:</p>
<blockquote><p># /etc/init.d/dnsmasq restart</p></blockquote>
<p>5. Reconfigure ipmasq to start after networking has been started:</p>
<blockquote><p># dpkg-reconfigure ipmasq</p></blockquote>
<p>6. Repeat steps 1 and 2.<br />
7. Add the line &#8220;net.ipv4.ip_forward = 1&#8243; to /etc/sysctl.conf</p>
<blockquote><p># gedit /etc/sysctl.conf</p></blockquote>
<p>8. Reboot. (Optional) or sysctrl -p</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxbuddies.com/2008/12/23/ubunthu-network-sharing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to install a Linux Server As A Gateway</title>
		<link>http://linuxbuddies.com/2008/12/22/how-to-install-a-linux-server-as-a-gateway/</link>
		<comments>http://linuxbuddies.com/2008/12/22/how-to-install-a-linux-server-as-a-gateway/#comments</comments>
		<pubDate>Mon, 22 Dec 2008 05:36:22 +0000</pubDate>
		<dc:creator>Riyesh</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Firewall]]></category>
		<category><![CDATA[Proxy]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[gateway]]></category>
		<category><![CDATA[Iptables]]></category>
		<category><![CDATA[Linux server]]></category>

		<guid isPermaLink="false">http://linuxbuddies.com/?p=68</guid>
		<description><![CDATA[Hi guys…
On this documentation… Will help you to setup linux server as a network gateway without installing any proxy softwares….
#!/bin/sh
# The interface conneected to Your LAN
INTIF=”eth1?
# The interface conneected to Internet (ppp0 or eth)
EXTIF=”eth0?
# If you have a static IP (Public IP), Use the following line. Otherwise comment following line ...]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-thumbnail wp-image-69" title="gateway" src="http://linuxbuddies.com/wp-content/uploads/2008/12/gateway-150x150.png" alt="gateway" width="150" height="150" />Hi guys…</p>
<p>On this documentation… Will help you to setup linux server as a network gateway without installing any proxy softwares….</p>
<blockquote><p><span>#!/bin/sh<br />
# The interface conneected to Your LAN</span><br />
INTIF=”eth1?<br />
# The interface conneected to Internet (ppp0 or eth)<br />
EXTIF=”eth0?<br />
<span># If you have a static IP (Public IP), Use the following line. Otherwise comment following line and use the next line</span><br />
EXTIP=”XXX.XXX.XXX.XXX”</p>
<p>EXTIP=”`/sbin/ifconfig ppp0 | grep ‘inet addr’ | awk ‘{print $2}’ | sed -e ’s/.*://’`”</p>
<p>/sbin/depmod -a<br />
/sbin/modprobe ip_tables<br />
/sbin/modprobe ip_conntrack<br />
/sbin/modprobe ip_conntrack_ftp<br />
/sbin/modprobe ip_conntrack_irc<br />
/sbin/modprobe iptable_nat<br />
/sbin/modprobe ip_nat_ftp<br />
echo “1? &gt; /proc/sys/net/ipv4/ip_forward<br />
echo “1? &gt; /proc/sys/net/ipv4/ip_dynaddr<br />
iptables -P INPUT ACCEPT<br />
iptables -F INPUT<br />
iptables -P OUTPUT ACCEPT<br />
iptables -F OUTPUT<br />
iptables -P FORWARD DROP<br />
iptables -F FORWARD<br />
iptables -t nat -F<br />
iptables -A FORWARD -i $EXTIF -o $INTIF -m state –state ESTABLISHED,RELATED -j ACCEPT<br />
iptables -A FORWARD -i $INTIF -o $EXTIF -j ACCEPT<br />
iptables -t nat -A POSTROUTING -o $EXTIF -j MASQUERADE<br />
<span>#End Of file<br />
# execute this script and bring it to the startup of your system.<br />
# Go to a client machine in your LAN, and set the gateway to the Linux server’s internal IP address, that’s all.</span></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://linuxbuddies.com/2008/12/22/how-to-install-a-linux-server-as-a-gateway/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
