<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="es">
	<id>https://wiki.cifprodolfoucha.es/index.php?action=history&amp;feed=atom&amp;title=Iptables</id>
	<title>Iptables - Historial de revisiones</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.cifprodolfoucha.es/index.php?action=history&amp;feed=atom&amp;title=Iptables"/>
	<link rel="alternate" type="text/html" href="https://wiki.cifprodolfoucha.es/index.php?title=Iptables&amp;action=history"/>
	<updated>2026-10-17T03:37:53Z</updated>
	<subtitle>Historial de revisiones de esta página en el wiki</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>https://wiki.cifprodolfoucha.es/index.php?title=Iptables&amp;diff=11283&amp;oldid=prev</id>
		<title>Joselv: /* Referencias */</title>
		<link rel="alternate" type="text/html" href="https://wiki.cifprodolfoucha.es/index.php?title=Iptables&amp;diff=11283&amp;oldid=prev"/>
		<updated>2020-11-14T20:36:02Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Referencias&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;es&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Revisión anterior&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revisión del 20:36 14 nov 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l73&quot; &gt;Línea 73:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línea 73:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [https://wiki.archlinux.org/index.php/Iptables_(Espa%C3%B1ol) iptables en archlinux]&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [https://wiki.archlinux.org/index.php/Iptables_(Espa%C3%B1ol) iptables en archlinux]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [https://www.hostinger.es/tutoriales/iptables-asegurar-ubuntu-vps-linux-firewall/ Exemplo práctico en Ubuntu]&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [https://www.hostinger.es/tutoriales/iptables-asegurar-ubuntu-vps-linux-firewall/ Exemplo práctico en Ubuntu]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* [https://es.wikipedia.org/wiki/Netfilter netfilter en wikipedia]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Joselv</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.cifprodolfoucha.es/index.php?title=Iptables&amp;diff=11242&amp;oldid=prev</id>
		<title>Joselv: /* Funcionamento básico */</title>
		<link rel="alternate" type="text/html" href="https://wiki.cifprodolfoucha.es/index.php?title=Iptables&amp;diff=11242&amp;oldid=prev"/>
		<updated>2020-11-14T19:11:32Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Funcionamento básico&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;es&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Revisión anterior&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revisión del 19:11 14 nov 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l30&quot; &gt;Línea 30:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línea 30:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  Explicación As tres cadeas establecense na política ACCEPT predeterminada. Actualmente non hai regras para ningunha das cadeas.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  Explicación As tres cadeas establecense na política ACCEPT predeterminada. Actualmente non hai regras para ningunha das cadeas.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Funcionamento &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;básico &lt;/del&gt;=&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Funcionamento &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;port forwarding &lt;/ins&gt;=&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;O redireccionamiento crease con iptables na táboa nat coas seguientes cadenas básicas:&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;O redireccionamiento crease con iptables na táboa nat coas seguientes cadenas básicas:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Joselv</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.cifprodolfoucha.es/index.php?title=Iptables&amp;diff=11236&amp;oldid=prev</id>
		<title>Joselv: /* Exemplo - reenvío de portos co protocolo ssh */</title>
		<link rel="alternate" type="text/html" href="https://wiki.cifprodolfoucha.es/index.php?title=Iptables&amp;diff=11236&amp;oldid=prev"/>
		<updated>2020-11-14T18:31:41Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Exemplo - reenvío de portos co protocolo ssh&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;es&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Revisión anterior&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revisión del 18:31 14 nov 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l60&quot; &gt;Línea 60:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línea 60:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Foron usadas as táboas nat e filter (por omisión).&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Foron usadas as táboas nat e filter (por omisión).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Exemplo - &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;reenvío &lt;/del&gt;de portos co protocolo ssh ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Exemplo - &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Reenvío &lt;/ins&gt;de portos co protocolo ssh ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Podemos usar o reenvío de portos co protocolo SSH (smpre por un porto superior a 1024 para non necesitar ser root):&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Podemos usar o reenvío de portos co protocolo SSH (smpre por un porto superior a 1024 para non necesitar ser root):&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Joselv</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.cifprodolfoucha.es/index.php?title=Iptables&amp;diff=11235&amp;oldid=prev</id>
		<title>Joselv: Página creada con «= Introducción = iptables é un programa que permite a un administrador de sistema configurar as táboas​ proporcionadas pola devesa do nucleo Linux (implementado como d…»</title>
		<link rel="alternate" type="text/html" href="https://wiki.cifprodolfoucha.es/index.php?title=Iptables&amp;diff=11235&amp;oldid=prev"/>
		<updated>2020-11-14T18:31:20Z</updated>

		<summary type="html">&lt;p&gt;Página creada con «= Introducción = iptables é un programa que permite a un administrador de sistema configurar as táboas​ proporcionadas pola devesa do nucleo Linux (implementado como d…»&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Página nueva&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Introducción =&lt;br /&gt;
iptables é un programa que permite a un administrador de sistema configurar as táboas​ proporcionadas pola devesa do nucleo Linux (implementado como diferentes módulos Netfilter) e as cadeas e regras que almacena. &lt;br /&gt;
&lt;br /&gt;
Utilízanse diferentes módulos do kernel e programas para protocolos diferentes:&lt;br /&gt;
 iptables aplicase a IPv4&lt;br /&gt;
 ip6tables a IPv6&lt;br /&gt;
 arptables a ARP&lt;br /&gt;
 ebtables a &amp;#039;&amp;#039;frames&amp;#039;&amp;#039; de Ethernet&lt;br /&gt;
&lt;br /&gt;
= Instalación =&lt;br /&gt;
Está preinstalado na maioría das distribucións de Linux. DE non ser así, para Ubuntu / Debian:&lt;br /&gt;
 sudo apt-get update&lt;br /&gt;
 sudo apt-get install iptables&lt;br /&gt;
&lt;br /&gt;
= Comprobación do estado actual das iptables =&lt;br /&gt;
 sudo iptables -L -v&lt;br /&gt;
 -L para listar todas as regras&lt;br /&gt;
 -v para unha lista máis detallada&lt;br /&gt;
&lt;br /&gt;
 Exemplo de saída do comando anterior&lt;br /&gt;
 Chain INPUT (policy ACCEPT 0 packets, 0 bytes)&lt;br /&gt;
 pkts bytes target     prot opt in     out     source             destination         &lt;br /&gt;
  &lt;br /&gt;
 Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)&lt;br /&gt;
 pkts bytes target     prot opt in     out     source             destination         &lt;br /&gt;
  &lt;br /&gt;
 Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)&lt;br /&gt;
 pkts bytes target     prot opt in     out     source             destination&lt;br /&gt;
 &lt;br /&gt;
 Explicación As tres cadeas establecense na política ACCEPT predeterminada. Actualmente non hai regras para ningunha das cadeas.&lt;br /&gt;
&lt;br /&gt;
= Funcionamento básico =&lt;br /&gt;
&lt;br /&gt;
O redireccionamiento crease con iptables na táboa nat coas seguientes cadenas básicas:&lt;br /&gt;
 &amp;#039;&amp;#039;&amp;#039;PREROUTING&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
 Todos los paquetes que entran, os que teñen este sistema como destino, pasan antes de que se traduzca a dirección de rede interna.&lt;br /&gt;
&lt;br /&gt;
 &amp;#039;&amp;#039;&amp;#039;POSTROUTING&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
 Todos os paquetes que saen, os que teñen este sistema como emisor, pasan despois de que se traduzca a dirección de rede externa.&lt;br /&gt;
&lt;br /&gt;
 &amp;#039;&amp;#039;&amp;#039;OUTPUT&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
 Solo para paquetes xenerados localmente. &lt;br /&gt;
&lt;br /&gt;
A opción da táboa nat ademáis das que tene a táboa filter é:&lt;br /&gt;
 &amp;#039;&amp;#039;&amp;#039;REDIRECT &amp;#039;&amp;#039;- -to-ports puerto&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
 Para redireccionar o paquete ó porto direccionado por - -to-pots.&lt;br /&gt;
&lt;br /&gt;
== Exemplo - Acceso a un servidor de páxinas web ==&lt;br /&gt;
&lt;br /&gt;
Se desexamos permitir el acceso a un servidor de páginas web con peticións que veñen da LAN 192.169.11.0 pola segunda tarxeta de rede (eth1), debemos crear as seguientes regras:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
iptables –t nat –A PREROUTING -s 192.168.11.0/255.255.255.0&lt;br /&gt;
  -p tcp -m tcp – –dport 80 -j REDIRECT – –to-ports 3128&lt;br /&gt;
iptables –t nat -A PREROUTING -s 192.168.11.0/255.255.255.0&lt;br /&gt;
  -p tcp -m tcp – –dport 80 -j REDIRECT – –to-ports 3128&lt;br /&gt;
iptables –A INPUT -i eth1 -p tcp -m state – –state NEW -p tcp&lt;br /&gt;
  – –dport 3128 -j ACCEPT&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Foron usadas as táboas nat e filter (por omisión).&lt;br /&gt;
&lt;br /&gt;
== Exemplo - reenvío de portos co protocolo ssh ==&lt;br /&gt;
&lt;br /&gt;
Podemos usar o reenvío de portos co protocolo SSH (smpre por un porto superior a 1024 para non necesitar ser root):&lt;br /&gt;
 ssh -L 8080:web.exemplo.com:80 web.exemplo.com&lt;br /&gt;
&lt;br /&gt;
= Relacionado =&lt;br /&gt;
O uso de iptables irá sendo substituido por [[nftables]]&lt;br /&gt;
&lt;br /&gt;
= Referencias =&lt;br /&gt;
* Servicios en red. Editorial Editex&lt;br /&gt;
* [https://es.wikipedia.org/wiki/Iptables iptables en wikipedia]&lt;br /&gt;
* [https://wiki.archlinux.org/index.php/Iptables_(Espa%C3%B1ol) iptables en archlinux]&lt;br /&gt;
* [https://www.hostinger.es/tutoriales/iptables-asegurar-ubuntu-vps-linux-firewall/ Exemplo práctico en Ubuntu]&lt;/div&gt;</summary>
		<author><name>Joselv</name></author>
		
	</entry>
</feed>