<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ca">
		<id>http://wikiserver.infomerce.es/index.php?action=history&amp;feed=atom&amp;title=Script_iptables</id>
		<title>Script iptables - Historial de revisió</title>
		<link rel="self" type="application/atom+xml" href="http://wikiserver.infomerce.es/index.php?action=history&amp;feed=atom&amp;title=Script_iptables"/>
		<link rel="alternate" type="text/html" href="http://wikiserver.infomerce.es/index.php?title=Script_iptables&amp;action=history"/>
		<updated>2026-04-19T21:46:22Z</updated>
		<subtitle>Historial de revisió per a aquesta pàgina del wiki</subtitle>
		<generator>MediaWiki 1.28.0</generator>

	<entry>
		<id>http://wikiserver.infomerce.es/index.php?title=Script_iptables&amp;diff=6814&amp;oldid=prev</id>
		<title>Jnoguera: Es crea la pàgina amb «&lt;source lang=&quot;bash&quot;&gt; #!/bin/sh # Script cortafuegos.sh para la configuración de iptables # # Primero borramos todas las reglas previas que puedan existir iptables -F ipt…».</title>
		<link rel="alternate" type="text/html" href="http://wikiserver.infomerce.es/index.php?title=Script_iptables&amp;diff=6814&amp;oldid=prev"/>
				<updated>2016-04-19T18:22:20Z</updated>
		
		<summary type="html">&lt;p&gt;Es crea la pàgina amb «&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt; #!/bin/sh # Script cortafuegos.sh para la configuración de iptables # # Primero borramos todas las reglas previas que puedan existir iptables -F ipt…».&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Pàgina nova&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
# Script cortafuegos.sh para la configuración de iptables&lt;br /&gt;
#&lt;br /&gt;
# Primero borramos todas las reglas previas que puedan existir&lt;br /&gt;
iptables -F&lt;br /&gt;
iptables -X&lt;br /&gt;
iptables -Z&lt;br /&gt;
iptables -t nat -F&lt;br /&gt;
# Después definimos que la politica por defecto sea ACEPTAR&lt;br /&gt;
iptables -P INPUT ACCEPT&lt;br /&gt;
iptables -P OUTPUT ACCEPT&lt;br /&gt;
iptables -P FORWARD ACCEPT&lt;br /&gt;
iptables -t nat -P PREROUTING ACCEPT&lt;br /&gt;
iptables -t nat -P POSTROUTING ACCEPT&lt;br /&gt;
#---------Aquí irán las reglas de iptables&lt;br /&gt;
&lt;br /&gt;
#---------&lt;br /&gt;
# Hacemos NAT si IP origen 10.0.0.0/8 y salen por eth0&lt;br /&gt;
iptables -t nat -A POSTROUTING -s 10.0.0.0/8 -o eth0 -j MASQUERADE&lt;br /&gt;
# Activamos el enrutamiento&lt;br /&gt;
echo 1 &amp;gt; /proc/sys/net/ipv4/ip_forward&lt;br /&gt;
# Comprobamos cómo quedan las reglas&lt;br /&gt;
iptables -L -n&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jnoguera</name></author>	</entry>

	</feed>