<?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>Ketan&#039;s Musings &#187; iptables</title>
	<atom:link href="http://ketan.padegaonkar.name/tag/iptables/feed" rel="self" type="application/rss+xml" />
	<link>http://ketan.padegaonkar.name</link>
	<description>Where he blogs about his eclipse musings</description>
	<lastBuildDate>Sat, 26 Feb 2011 18:24:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Port forwarding using IPTables</title>
		<link>http://ketan.padegaonkar.name/2007/11/07/port-forwarding-using-iptables.html</link>
		<comments>http://ketan.padegaonkar.name/2007/11/07/port-forwarding-using-iptables.html#comments</comments>
		<pubDate>Wed, 07 Nov 2007 13:58:50 +0000</pubDate>
		<dc:creator>Ketan</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[adsl]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[port-forwarding]]></category>

		<guid isPermaLink="false">http://ketan.padegaonkar.name/2007/11/07/port-forwarding-using-iptables.html</guid>
		<description><![CDATA[I&#8217;ve got a UT300R2U ADSL router that has a really bad web based UI that did not let me setup some basic port-forwarding rules. Thankfully the router was a linux based router with telnet installed on it. I was able to log in using the admin user, and set the following iptable rules: #iptables -I [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve got a UT300R2U ADSL router that has a really bad web based UI that did not let me setup some basic <a href="http://en.wikipedia.org/wiki/Port_forwarding">port-forwarding</a> rules.</p>
<p>Thankfully the router was a linux based router with telnet installed on it. I was able to log in using the admin user, and set the following iptable rules:</p>
<p><code><br />
#iptables -I PREROUTING -t nat -p tcp --dport 8080 -i ppp_0_35_1 -j DNAT --to 192.168.1.11:8080<br />
#iptables -I FORWARD -p tcp -d 192.168.1.11 --dport 8080 -i ppp_0_35_1 -o br0 -j ACCEPT<br />
#iptables -I FORWARD -p tcp -s 192.168.1.11 --sport 8080 -i br0 -o ppp_0_35_1 -j ACCEPT<br />
</code></p>
<p>the IP address 192.168.1.11 is the webserver that&#8217;s hosting tomcat on port 8080.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center">
<ul class="socials">
		<li class="shr-googlebuzz">
			<a href="http://www.shareaholic.com/api/share/?title=Port+forwarding+using+IPTables&amp;link=http://ketan.padegaonkar.name/2007/11/07/port-forwarding-using-iptables.html&amp;notes=I%27ve%20got%20a%20UT300R2U%20ADSL%20router%20that%20has%20a%20really%20bad%20web%20based%20UI%20that%20did%20not%20let%20me%20setup%20some%20basic%20port-forwarding%20rules.%0A%0AThankfully%20the%20router%20was%20a%20linux%20based%20router%20with%20telnet%20installed%20on%20it.%20I%20was%20able%20to%20log%20in%20using%20the%20admin%20user%2C%20and%20set%20the%20following%20iptable%20rules%3A%0A%0A%0A%23iptables%20-I%20P&amp;short_link=&amp;shortener=bitly&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-reddit">
			<a href="http://www.shareaholic.com/api/share/?title=Port+forwarding+using+IPTables&amp;link=http://ketan.padegaonkar.name/2007/11/07/port-forwarding-using-iptables.html&amp;notes=I%27ve%20got%20a%20UT300R2U%20ADSL%20router%20that%20has%20a%20really%20bad%20web%20based%20UI%20that%20did%20not%20let%20me%20setup%20some%20basic%20port-forwarding%20rules.%0A%0AThankfully%20the%20router%20was%20a%20linux%20based%20router%20with%20telnet%20installed%20on%20it.%20I%20was%20able%20to%20log%20in%20using%20the%20admin%20user%2C%20and%20set%20the%20following%20iptable%20rules%3A%0A%0A%0A%23iptables%20-I%20P&amp;short_link=&amp;shortener=bitly&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-twitter">
			<a href="http://www.shareaholic.com/api/share/?title=Port+forwarding+using+IPTables&amp;link=http://ketan.padegaonkar.name/2007/11/07/port-forwarding-using-iptables.html&amp;notes=I%27ve%20got%20a%20UT300R2U%20ADSL%20router%20that%20has%20a%20really%20bad%20web%20based%20UI%20that%20did%20not%20let%20me%20setup%20some%20basic%20port-forwarding%20rules.%0A%0AThankfully%20the%20router%20was%20a%20linux%20based%20router%20with%20telnet%20installed%20on%20it.%20I%20was%20able%20to%20log%20in%20using%20the%20admin%20user%2C%20and%20set%20the%20following%20iptable%20rules%3A%0A%0A%0A%23iptables%20-I%20P&amp;short_link=&amp;shortener=bitly&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=RT+%40ketanpkr+%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.shareaholic.com/api/share/?title=Port+forwarding+using+IPTables&amp;link=http://ketan.padegaonkar.name/2007/11/07/port-forwarding-using-iptables.html&amp;notes=I%27ve%20got%20a%20UT300R2U%20ADSL%20router%20that%20has%20a%20really%20bad%20web%20based%20UI%20that%20did%20not%20let%20me%20setup%20some%20basic%20port-forwarding%20rules.%0A%0AThankfully%20the%20router%20was%20a%20linux%20based%20router%20with%20telnet%20installed%20on%20it.%20I%20was%20able%20to%20log%20in%20using%20the%20admin%20user%2C%20and%20set%20the%20following%20iptable%20rules%3A%0A%0A%0A%23iptables%20-I%20P&amp;short_link=&amp;shortener=bitly&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-dzone">
			<a href="http://www.shareaholic.com/api/share/?title=Port+forwarding+using+IPTables&amp;link=http://ketan.padegaonkar.name/2007/11/07/port-forwarding-using-iptables.html&amp;notes=I%27ve%20got%20a%20UT300R2U%20ADSL%20router%20that%20has%20a%20really%20bad%20web%20based%20UI%20that%20did%20not%20let%20me%20setup%20some%20basic%20port-forwarding%20rules.%0A%0AThankfully%20the%20router%20was%20a%20linux%20based%20router%20with%20telnet%20installed%20on%20it.%20I%20was%20able%20to%20log%20in%20using%20the%20admin%20user%2C%20and%20set%20the%20following%20iptable%20rules%3A%0A%0A%0A%23iptables%20-I%20P&amp;short_link=&amp;shortener=bitly&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=102&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Add this to DZone">Add this to DZone</a>
		</li>
</ul><div style="clear: both;"></div><div class="shr-getshr" style="visibility:hidden;font-size:10px !important"><a target="_blank" href="http://www.shareaholic.com/?src=pub">Get Shareaholic</a></div><div style="clear: both;"></div></div>

]]></content:encoded>
			<wfw:commentRss>http://ketan.padegaonkar.name/2007/11/07/port-forwarding-using-iptables.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

