<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://kb.rvmgroup.it/index.php?action=history&amp;feed=atom&amp;title=Redirezione_del_traffico_su_un_host_interno</id>
	<title>Redirezione del traffico su un host interno - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://kb.rvmgroup.it/index.php?action=history&amp;feed=atom&amp;title=Redirezione_del_traffico_su_un_host_interno"/>
	<link rel="alternate" type="text/html" href="https://kb.rvmgroup.it/index.php?title=Redirezione_del_traffico_su_un_host_interno&amp;action=history"/>
	<updated>2026-05-05T22:36:25Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://kb.rvmgroup.it/index.php?title=Redirezione_del_traffico_su_un_host_interno&amp;diff=11046&amp;oldid=prev</id>
		<title>Gabriele.vivinetto at 15:37, 5 December 2023</title>
		<link rel="alternate" type="text/html" href="https://kb.rvmgroup.it/index.php?title=Redirezione_del_traffico_su_un_host_interno&amp;diff=11046&amp;oldid=prev"/>
		<updated>2023-12-05T15:37:30Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&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;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 15:37, 5 December 2023&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-l1&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; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;Altrimenti detta &#039;&#039;&#039;NAT REFLECTION&#039;&#039;&#039;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; 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;Situazione:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; 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;Situazione:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; 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;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; 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;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Gabriele.vivinetto</name></author>
	</entry>
	<entry>
		<id>https://kb.rvmgroup.it/index.php?title=Redirezione_del_traffico_su_un_host_interno&amp;diff=3450&amp;oldid=prev</id>
		<title>Gabriele.vivinetto at 14:52, 18 May 2005</title>
		<link rel="alternate" type="text/html" href="https://kb.rvmgroup.it/index.php?title=Redirezione_del_traffico_su_un_host_interno&amp;diff=3450&amp;oldid=prev"/>
		<updated>2005-05-18T14:52:45Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&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;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:52, 18 May 2005&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-l41&quot;&gt;Line 41:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 41:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; 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;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; 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;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; 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;E&amp;#039; la seconda regola che è importante.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; 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;E&amp;#039; la seconda regola che è importante.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;Vedi http://www.skullkrusher.net/linux/iptables.html Caso 4.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Gabriele.vivinetto</name></author>
	</entry>
	<entry>
		<id>https://kb.rvmgroup.it/index.php?title=Redirezione_del_traffico_su_un_host_interno&amp;diff=26&amp;oldid=prev</id>
		<title>Gabriele.vivinetto at 14:50, 18 May 2005</title>
		<link rel="alternate" type="text/html" href="https://kb.rvmgroup.it/index.php?title=Redirezione_del_traffico_su_un_host_interno&amp;diff=26&amp;oldid=prev"/>
		<updated>2005-05-18T14:50:35Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Situazione:&lt;br /&gt;
&lt;br /&gt;
  +--------+192.168.253.253                      #####&lt;br /&gt;
  |Firewall|                 +------+          ##     ##&lt;br /&gt;
  | Linux  |_________________|Router|_________#Internet#&lt;br /&gt;
  +----|---+  192.168.253.254+------+ 1.2.3.4  ##     ##&lt;br /&gt;
       |                                         #####&lt;br /&gt;
       |192.168.254.254&lt;br /&gt;
       |&lt;br /&gt;
       |&lt;br /&gt;
    ___________________________&lt;br /&gt;
    |                         |&lt;br /&gt;
    |                         |&lt;br /&gt;
    |192.168.254.100          |192.168.254.18&lt;br /&gt;
   +|----------+             +|-----+&lt;br /&gt;
   |Mail Server|             |Client|&lt;br /&gt;
   +-----------+             +------+&lt;br /&gt;
&lt;br /&gt;
 fire.domain.tld=1.2.3.4&lt;br /&gt;
&lt;br /&gt;
Se si vuole accedere dal client in ssh al firewall usando &amp;#039;ssh fire.domain.tld&amp;#039;:&lt;br /&gt;
&lt;br /&gt;
 $IPT -t nat -A PREROUTING  -s 192.168.254.0/24 --dst 1.2.3.4 \&lt;br /&gt;
         -p tcp --dport 22 -j DNAT \&lt;br /&gt;
         --to-destination 192.168.254.254:22&lt;br /&gt;
 # tutto ciò che entra nel firewall destinato all&amp;#039;ip pubblico del router porta &lt;br /&gt;
 # 22 viene girato al fw stesso.&lt;br /&gt;
&lt;br /&gt;
Se si vuole accedere dal client Lan al Mailserver usando &amp;#039;telnet fire.domain.tld 25&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 $IPT -t nat -A PREROUTING  -s 192.168.254.0/24 --dst 1.2.3.4 \&lt;br /&gt;
         -p tcp --dport 25 -j DNAT \&lt;br /&gt;
         --to-destination 192.168.254.100:25&lt;br /&gt;
 # tutto ciò che entra nel firewall destinato all&amp;#039;ip pubblico del router porta 25 &lt;br /&gt;
 # viene girato al mailserver interno.&lt;br /&gt;
&lt;br /&gt;
 $IPT -t nat -A POSTROUTING -s 192.168.254.0/24 -d 192.168.254.100 \&lt;br /&gt;
        -p tcp --dport 25 -j SNAT --to-source 192.168.254.254&lt;br /&gt;
 # tutto ciò che arriva nel router destinato al mailserver viene marcato come &lt;br /&gt;
 # proveniente dal firewall, per &amp;quot;imbrogliare la risposta dal mailserver al client&amp;quot;&lt;br /&gt;
&lt;br /&gt;
E&amp;#039; la seconda regola che è importante.&lt;/div&gt;</summary>
		<author><name>Gabriele.vivinetto</name></author>
	</entry>
</feed>