<?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; Proxy</title>
	<atom:link href="http://linuxbuddies.com/tag/proxy/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>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>
