<?xml version="1.0"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>Masquerade - Revision history</title>
		<link>https://www.slackwiki.com/index.php?title=Masquerade&amp;action=history</link>
		<description>Revision history for this page on the wiki</description>
		<language>en</language>
		<generator>MediaWiki 1.40.0</generator>
		<lastBuildDate>Wed, 08 Apr 2026 16:08:50 GMT</lastBuildDate>
		<item>
			<title>Erik: Copy from old</title>
			<link>https://www.slackwiki.com/index.php?title=Masquerade&amp;diff=133&amp;oldid=prev</link>
			<guid isPermaLink="false">https://www.slackwiki.com/index.php?title=Masquerade&amp;diff=133&amp;oldid=prev</guid>
			<description>&lt;p&gt;Copy from old&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Masquerading is what Windows calls &amp;quot;Internet Connection Sharing&amp;quot;, although you can use it for sharing any network connection.&lt;br /&gt;
&lt;br /&gt;
This is just a basic script to give you the general idea, and to refine upon for yourself.&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 # Define as appropriate for your setup&lt;br /&gt;
 # external interface (connected to the internet)&lt;br /&gt;
 EXT_IF=eth0&lt;br /&gt;
 # internal interface (connected to your local network)&lt;br /&gt;
 INT_IF=eth3&lt;br /&gt;
 # path to your iptables binary - leave this alone on slack&lt;br /&gt;
 IPTABLES=/usr/sbin/iptables&lt;br /&gt;
 # We don't want to just forward anything to anyone, or let everything&lt;br /&gt;
 # into our local network&lt;br /&gt;
 $IPTABLES -F FORWARD&lt;br /&gt;
 $IPTABLES -P FORWARD DROP&lt;br /&gt;
 $IPTABLES -A FORWARD -i $INT_IF -o $EXT_IF -j ACCEPT&lt;br /&gt;
 $IPTABLES -A FORWARD -i $EXT_IF -o $INT_IF -m state --state ESTABLISHED,RELATED -j ACCEPT&lt;br /&gt;
 # Do the actual masquerading&lt;br /&gt;
 $IPTABLES -t nat -F POSTROUTING&lt;br /&gt;
 $IPTABLES -t nat -A POSTROUTING -o $EXT_IF -j MASQUERADE&lt;br /&gt;
 # Enable IP packet forwarding&lt;br /&gt;
 echo 1 &amp;gt; /proc/sys/net/ipv4/ip_forward&lt;br /&gt;
&lt;br /&gt;
[[Category:Security]]&lt;/div&gt;</description>
			<pubDate>Thu, 04 Jun 2009 05:18:06 GMT</pubDate>
			<dc:creator>Erik</dc:creator>
			<comments>https://www.slackwiki.com/Talk:Masquerade</comments>
		</item>
</channel></rss>