<?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>range &#8211; Luxing Huang</title>
	<atom:link href="https://luxing.im/tag/range/feed/" rel="self" type="application/rss+xml" />
	<link>https://luxing.im</link>
	<description>Thoughs and things</description>
	<lastBuildDate>Mon, 18 Jul 2016 01:57:37 +0000</lastBuildDate>
	<language>en-CA</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.2</generator>
<site xmlns="com-wordpress:feed-additions:1">58771605</site>	<item>
		<title>Port range forwarding using iptables</title>
		<link>https://luxing.im/port-range-forwarding-using-iptables/</link>
					<comments>https://luxing.im/port-range-forwarding-using-iptables/#respond</comments>
		
		<dc:creator><![CDATA[Luxing Huang]]></dc:creator>
		<pubDate>Mon, 18 Jul 2016 01:57:37 +0000</pubDate>
				<category><![CDATA[Techie Stuff]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[port forwarding]]></category>
		<category><![CDATA[range]]></category>
		<guid isPermaLink="false">https://luxing.im/?p=676</guid>

					<description><![CDATA[Ranged port forwarding has its uses. I want to port forward port number 1025 to 50000 from Machine A to Machine B&#8217;s 1025 to 50000. Here is how I did it with iptables. Machine A: 10.0.0.1 Machine B: 10.0.0.2 All operations are done in Machine A. iptables -A INPUT -p tcp -m multiport --dports 1025:50000 &#8230; <p class="link-more"><a href="https://luxing.im/port-range-forwarding-using-iptables/" class="more-link">Continue reading<span class="screen-reader-text"> "Port range forwarding using iptables"</span></a></p>]]></description>
										<content:encoded><![CDATA[<p>Ranged port forwarding has its uses. I want to port forward port number 1025 to 50000 from Machine A to Machine B&#8217;s 1025 to 50000. Here is how I did it with iptables.<br />
<span id="more-676"></span><br />
Machine A: 10.0.0.1<br />
Machine B: 10.0.0.2</p>
<p>All operations are done in Machine A.</p>
<pre>
iptables -A INPUT -p tcp -m multiport --dports 1025:50000 -j ACCEPT
iptables -t nat -I PREROUTING -p tcp -m tcp --dport 1025:50000 -j DNAT --to-destination 10.0.0.2:1024-50000
iptables -A FORWARD -d 10.0.0.1/32 -i eth0 -p tcp -m tcp --dport 1024:50000 -j ACCEPT
</pre>
<p>If you use UDP, alter the above command to UDP and apply it again.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://luxing.im/port-range-forwarding-using-iptables/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">676</post-id>	</item>
	</channel>
</rss>
