<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://opensimulator.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://opensimulator.org/index.php?action=history&amp;feed=atom&amp;title=User%3AThomax%3Anat-loopback</id>
		<title>User:Thomax:nat-loopback - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://opensimulator.org/index.php?action=history&amp;feed=atom&amp;title=User%3AThomax%3Anat-loopback"/>
		<link rel="alternate" type="text/html" href="http://opensimulator.org/index.php?title=User:Thomax:nat-loopback&amp;action=history"/>
		<updated>2026-04-04T22:57:11Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.19.9</generator>

	<entry>
		<id>http://opensimulator.org/index.php?title=User:Thomax:nat-loopback&amp;diff=21890&amp;oldid=prev</id>
		<title>Makopoppo: Users:Thomax:nat-loopback moved to User:Thomax:nat-loopback: wrong namespace</title>
		<link rel="alternate" type="text/html" href="http://opensimulator.org/index.php?title=User:Thomax:nat-loopback&amp;diff=21890&amp;oldid=prev"/>
				<updated>2011-05-04T02:21:14Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;a href=&quot;/wiki/Users:Thomax:nat-loopback&quot; class=&quot;mw-redirect&quot; title=&quot;Users:Thomax:nat-loopback&quot;&gt;Users:Thomax:nat-loopback&lt;/a&gt; moved to &lt;a href=&quot;/wiki/User:Thomax:nat-loopback&quot; title=&quot;User:Thomax:nat-loopback&quot;&gt;User:Thomax:nat-loopback&lt;/a&gt;: wrong namespace&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 02:21, 4 May 2011&lt;/td&gt;
			&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Makopoppo</name></author>	</entry>

	<entry>
		<id>http://opensimulator.org/index.php?title=User:Thomax:nat-loopback&amp;diff=20414&amp;oldid=prev</id>
		<title>Thomax at 10:27, 5 December 2010</title>
		<link rel="alternate" type="text/html" href="http://opensimulator.org/index.php?title=User:Thomax:nat-loopback&amp;diff=20414&amp;oldid=prev"/>
				<updated>2010-12-05T10:27:54Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 10:27, 5 December 2010&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;NAT Loopback Configuration on OpenWRT&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;== &lt;/ins&gt;NAT Loopback Configuration on OpenWRT &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Well, first is this little script, which should be placed in ''/etc/firewall.user'':&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Well, first is this little script, which should be placed in ''/etc/firewall.user'':&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Thomax</name></author>	</entry>

	<entry>
		<id>http://opensimulator.org/index.php?title=User:Thomax:nat-loopback&amp;diff=20413&amp;oldid=prev</id>
		<title>Thomax at 10:27, 5 December 2010</title>
		<link rel="alternate" type="text/html" href="http://opensimulator.org/index.php?title=User:Thomax:nat-loopback&amp;diff=20413&amp;oldid=prev"/>
				<updated>2010-12-05T10:27:32Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 10:27, 5 December 2010&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;NAT Loopback Configuration on OpenWRT&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Well, first is this little script, which should be placed in ''/etc/firewall.user'':&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Well, first is this little script, which should be placed in ''/etc/firewall.user'':&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Thomax</name></author>	</entry>

	<entry>
		<id>http://opensimulator.org/index.php?title=User:Thomax:nat-loopback&amp;diff=14199&amp;oldid=prev</id>
		<title>Thomax at 21:29, 18 July 2009</title>
		<link rel="alternate" type="text/html" href="http://opensimulator.org/index.php?title=User:Thomax:nat-loopback&amp;diff=14199&amp;oldid=prev"/>
				<updated>2009-07-18T21:29:08Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 21:29, 18 July 2009&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 26:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 26:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Well, and &lt;/del&gt;just because I have a dynamic IP address I need to be sure that the firewall rules get reloaded on each new PPPoE connect. Thats why I created the script ''/etc/ppp/ip-up.d/connect.sh''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;And &lt;/ins&gt;just because I have a dynamic IP address I need to be sure that the firewall rules get reloaded on each new PPPoE connect. Thats why I created the script ''/etc/ppp/ip-up.d/connect.sh''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;which looks like this:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;which looks like this:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Thomax</name></author>	</entry>

	<entry>
		<id>http://opensimulator.org/index.php?title=User:Thomax:nat-loopback&amp;diff=14198&amp;oldid=prev</id>
		<title>Thomax: New page: Well, first is this little script, which should be placed in ''/etc/firewall.user'':  &lt;pre&gt; # get the WANIP from the ppp0 interface WANIP=`ifconfig ppp0 | awk '/inet addr/ {split ($2,A,&quot;:&quot;...</title>
		<link rel="alternate" type="text/html" href="http://opensimulator.org/index.php?title=User:Thomax:nat-loopback&amp;diff=14198&amp;oldid=prev"/>
				<updated>2009-07-18T21:28:44Z</updated>
		
		<summary type="html">&lt;p&gt;New page: Well, first is this little script, which should be placed in &amp;#039;&amp;#039;/etc/firewall.user&amp;#039;&amp;#039;:  &amp;lt;pre&amp;gt; # get the WANIP from the ppp0 interface WANIP=`ifconfig ppp0 | awk &amp;#039;/inet addr/ {split ($2,A,&amp;quot;:&amp;quot;...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Well, first is this little script, which should be placed in ''/etc/firewall.user'':&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# get the WANIP from the ppp0 interface&lt;br /&gt;
WANIP=`ifconfig ppp0 | awk '/inet addr/ {split ($2,A,&amp;quot;:&amp;quot;); print A[2]}'`&lt;br /&gt;
&lt;br /&gt;
# my lan ip&lt;br /&gt;
LANIP = 192.168.1.100&lt;br /&gt;
&lt;br /&gt;
nat_loopback() {         &lt;br /&gt;
        iptables -t nat -A prerouting_rule -d $WANIP -p $3 --dport $1 -j DNAT --to $2&lt;br /&gt;
        iptables -A forwarding_rule -p $3 --dport $1 -d $2 -j ACCEPT&lt;br /&gt;
        iptables -t nat -A postrouting_rule -s 192.168.1.0/24 -p $3 --dport $1 -d $2 -j MASQUERADE&lt;br /&gt;
}                                                                                             &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# thats for a local apache (yepp, i have a local web server..)&lt;br /&gt;
nat_loopback 80 $LANIP tcp&lt;br /&gt;
&lt;br /&gt;
# http_listen_port from the OpenSim.ini&lt;br /&gt;
nat_loopback 9000 $LANIP tcp         &lt;br /&gt;
&lt;br /&gt;
# and the udp port of the region (RegionConfig.ini)&lt;br /&gt;
nat_loopback 19010 $LANIP udp&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Well, and just because I have a dynamic IP address I need to be sure that the firewall rules get reloaded on each new PPPoE connect. Thats why I created the script ''/etc/ppp/ip-up.d/connect.sh''&lt;br /&gt;
which looks like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
# Put stuff here you need todo just when your router reconnects to the provider&lt;br /&gt;
&lt;br /&gt;
/etc/init.d/firewall reload&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Thats what I've additionally done beside the normal LuCI settings on my openWRT router, which is an asus wl-500gP (with this nice two USB slots :-)&lt;br /&gt;
&lt;br /&gt;
Let me know if it helps you too...&lt;br /&gt;
&lt;br /&gt;
thomax&lt;/div&gt;</summary>
		<author><name>Thomax</name></author>	</entry>

	</feed>