<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.slackwiki.com/index.php?action=history&amp;feed=atom&amp;title=Masquerade</id>
	<title>Masquerade - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.slackwiki.com/index.php?action=history&amp;feed=atom&amp;title=Masquerade"/>
	<link rel="alternate" type="text/html" href="https://www.slackwiki.com/index.php?title=Masquerade&amp;action=history"/>
	<updated>2026-04-08T16:08:53Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://www.slackwiki.com/index.php?title=Masquerade&amp;diff=133&amp;oldid=prev</id>
		<title>Erik: Copy from old</title>
		<link rel="alternate" type="text/html" href="https://www.slackwiki.com/index.php?title=Masquerade&amp;diff=133&amp;oldid=prev"/>
		<updated>2009-06-04T05:18:06Z</updated>

		<summary type="html">&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;</summary>
		<author><name>Erik</name></author>
	</entry>
</feed>