<?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=Utilizzo_di_UFW_come_firewall_Debian_Ubuntu</id>
	<title>Utilizzo di UFW come firewall Debian Ubuntu - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://kb.rvmgroup.it/index.php?action=history&amp;feed=atom&amp;title=Utilizzo_di_UFW_come_firewall_Debian_Ubuntu"/>
	<link rel="alternate" type="text/html" href="https://kb.rvmgroup.it/index.php?title=Utilizzo_di_UFW_come_firewall_Debian_Ubuntu&amp;action=history"/>
	<updated>2026-05-06T01:32:38Z</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=Utilizzo_di_UFW_come_firewall_Debian_Ubuntu&amp;diff=10929&amp;oldid=prev</id>
		<title>Gabriele.vivinetto: Created page with &quot;  apt install ufw  * Abilitare il routing:  vi /etc/default/ufw  * Abilitare default policies  ...  DEFAULT_FORWARD_POLICY=&quot;ACCEPT&quot;  ...  * Abilitare routing  vi /etc/ufw/sysc...&quot;</title>
		<link rel="alternate" type="text/html" href="https://kb.rvmgroup.it/index.php?title=Utilizzo_di_UFW_come_firewall_Debian_Ubuntu&amp;diff=10929&amp;oldid=prev"/>
		<updated>2023-04-21T13:50:51Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;  apt install ufw  * Abilitare il routing:  vi /etc/default/ufw  * Abilitare default policies  ...  DEFAULT_FORWARD_POLICY=&amp;quot;ACCEPT&amp;quot;  ...  * Abilitare routing  vi /etc/ufw/sysc...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
 apt install ufw&lt;br /&gt;
&lt;br /&gt;
* Abilitare il routing:&lt;br /&gt;
 vi /etc/default/ufw&lt;br /&gt;
&lt;br /&gt;
* Abilitare default policies&lt;br /&gt;
 ...&lt;br /&gt;
 DEFAULT_FORWARD_POLICY=&amp;quot;ACCEPT&amp;quot;&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
* Abilitare routing&lt;br /&gt;
 vi /etc/ufw/sysctl.conf&lt;br /&gt;
&lt;br /&gt;
 net.ipv4.ip_forward=1&lt;br /&gt;
&lt;br /&gt;
=Outbound Nat=&lt;br /&gt;
&lt;br /&gt;
* Aggiungere la sezione prima di quella filter&lt;br /&gt;
&lt;br /&gt;
 vi /etc/ufw/before.rules&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# NAT table rules&lt;br /&gt;
*nat&lt;br /&gt;
:PREROUTING ACCEPT [0:0]&lt;br /&gt;
:POSTROUTING ACCEPT [0:0]&lt;br /&gt;
&lt;br /&gt;
# Port Forwardings&lt;br /&gt;
#-A PREROUTING -i eth0 -p tcp --dport 22 -j DNAT --to-destination 192.168.1.10&lt;br /&gt;
&lt;br /&gt;
# Nat traffic through eth1 - Change to match you out-interface&lt;br /&gt;
-A POSTROUTING -s 10.0.1.0/24 -o eth1 -j MASQUERADE&lt;br /&gt;
&lt;br /&gt;
# don&amp;#039;t delete the &amp;#039;COMMIT&amp;#039; line or these nat table rules won&amp;#039;t&lt;br /&gt;
# be processed&lt;br /&gt;
COMMIT&lt;br /&gt;
&lt;br /&gt;
# Don&amp;#039;t delete these required lines, otherwise there will be errors&lt;br /&gt;
*filter&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Attivazione=&lt;br /&gt;
 sudo ufw disable &amp;amp;&amp;amp; sudo ufw enable&lt;br /&gt;
&lt;br /&gt;
=Riferimenti=&lt;br /&gt;
*[https://gist.github.com/kimus/9315140 NAT and FORWARD with Ubuntu’s ufw firewall · GitHub]&lt;/div&gt;</summary>
		<author><name>Gabriele.vivinetto</name></author>
	</entry>
</feed>