<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://www.slacky.eu/wikislack/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="it">
		<id>http://www.slacky.eu/wikislack/index.php?title=Slackware_Linux_come_Gateway&amp;feed=atom&amp;action=history</id>
		<title>Slackware Linux come Gateway - Cronologia</title>
		<link rel="self" type="application/atom+xml" href="http://www.slacky.eu/wikislack/index.php?title=Slackware_Linux_come_Gateway&amp;feed=atom&amp;action=history"/>
		<link rel="alternate" type="text/html" href="http://www.slacky.eu/wikislack/index.php?title=Slackware_Linux_come_Gateway&amp;action=history"/>
		<updated>2013-05-22T03:27:07Z</updated>
		<subtitle>Cronologia della pagina su questo sito</subtitle>
		<generator>MediaWiki 1.20.3</generator>

	<entry>
		<id>http://www.slacky.eu/wikislack/index.php?title=Slackware_Linux_come_Gateway&amp;diff=3353&amp;oldid=prev</id>
		<title>Switch` il 10:37, 4 feb 2007</title>
		<link rel="alternate" type="text/html" href="http://www.slacky.eu/wikislack/index.php?title=Slackware_Linux_come_Gateway&amp;diff=3353&amp;oldid=prev"/>
				<updated>2007-02-04T10:37:14Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Versione meno recente&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Versione delle 10:37, 4 feb 2007&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Riga 70:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Riga 70:&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: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Fatto tutto ciò tutte le vostre macchine della rete saranno abilitate per andare in internet!!&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt; &lt;/td&gt;
  &lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Fatto tutto ciò tutte le vostre macchine della rete saranno abilitate per andare in internet!!&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: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt; &lt;/td&gt;
  &lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&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: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;span class=&quot;diffchange diffchange-inline&quot;&gt;= Autore =&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;+&lt;/td&gt;
  &lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;span class=&quot;diffchange diffchange-inline&quot;&gt;Autore: [[utente:Switch`| Switch`]]&lt;/span&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: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;
  &lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&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: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Sw|tCh` [ switch@gxware.org ]&lt;/div&gt;&lt;/td&gt;
  &lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Switch`</name></author>	</entry>

	<entry>
		<id>http://www.slacky.eu/wikislack/index.php?title=Slackware_Linux_come_Gateway&amp;diff=2225&amp;oldid=prev</id>
		<title>Darkside04 il 22:02, 10 set 2006</title>
		<link rel="alternate" type="text/html" href="http://www.slacky.eu/wikislack/index.php?title=Slackware_Linux_come_Gateway&amp;diff=2225&amp;oldid=prev"/>
				<updated>2006-09-10T22:02:04Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nuova pagina&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:Networking]]&lt;br /&gt;
&lt;br /&gt;
= Usare la propria macchina Slackware Linux come Gateway =&lt;br /&gt;
&lt;br /&gt;
Questi riportati qui sotto sono i comandi da eseguire come root per far sì che la nostra macchina Linux si trasformi in un Gateway. Per far ciò bisogna che iptables sia installato e che funzioni correttamente.&lt;br /&gt;
Anche qui avrete 3 possibilità: &lt;br /&gt;
* Eseguirli di volta in volta &lt;br /&gt;
* Creare un file che eseguirete quando sarà necessario &lt;br /&gt;
* Scrivere questi comandi in un file che viene eseguito all'avvio per esempio rc.local in /etc/rc.d &lt;br /&gt;
&lt;br /&gt;
Io faccio l'esempio del file gw.sh che eseguirete quando ne avrete bisogno: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh o #!/bin/bash&lt;br /&gt;
&lt;br /&gt;
#Attivo l'interfaccia di rete locale eth1 [Se avete una sola scheda di rete al posto di eth1 mettete eth0 e al&lt;br /&gt;
#posto di #192.168.0.2 mettete l'ip che volete assegnare alla vostra macchina] a meno che non l'abbiate già &lt;br /&gt;
#configurata nel file #rc.inet1.conf&lt;br /&gt;
ifconfig eth1 192.168.0.2 &lt;br /&gt;
&lt;br /&gt;
#Abilito il supporto forwarding [In slackware 10.0 in /etc/rc.d c'è il file rc.ip_forward che se non vi viene &lt;br /&gt;
#eseguito all'avvio fate da root chmod +x /etc/rc.d/rc.ip_forward]&lt;br /&gt;
echo &amp;quot;1&amp;quot; &amp;gt; /proc/sys/net/ipv4/ip_forward &lt;br /&gt;
&lt;br /&gt;
#carico i moduli del kernel &lt;br /&gt;
modprobe ip_tables &lt;br /&gt;
modprobe ip_conntrack &lt;br /&gt;
modprobe iptable_nat &lt;br /&gt;
modprobe ipt_MASQUERADE &lt;br /&gt;
&lt;br /&gt;
#Maschero i pacchetti [Al posto di 192.168.0.0 dovete mettere la classe di ip che avete scelto con gli 0 finali] &lt;br /&gt;
iptables -t nat -A POSTROUTING -d ! 192.168.0.0/24 -j MASQUERADE &lt;br /&gt;
&lt;br /&gt;
#Abilito l'ip forwarding solo per la mia rete &lt;br /&gt;
iptables -A FORWARD -s 192.168.0.0/24 -j ACCEPT &lt;br /&gt;
iptables -A FORWARD -d 192.168.0.0/24 -j ACCEPT &lt;br /&gt;
iptables -A FORWARD -j DROP &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Salvato il file con il nome '''gw.sh''' da terminale entrate nella cartella dove l'avete salvato e digitate: &lt;br /&gt;
&lt;br /&gt;
chmod +x gw.sh &lt;br /&gt;
&lt;br /&gt;
così facendo abilitate l'esecuzione del file, quando lo eseguirete ricordatevi che dovete essere root. &lt;br /&gt;
&lt;br /&gt;
Se scriverete i comandi di volta in volta da root o li aggiungerete in un file d'avvio [Es. rc.local in /etc/rc.d] tralasciate: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh o #!/bin/bash&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Ora non vi resta che configuarare le altre macchine, assengnandogli un ip della classe che avete scelto, dargli l'ip del Gateway. &lt;br /&gt;
&lt;br /&gt;
Se sono macchine linux, sempre da root, fate:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
route add default gw ip.gateway&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[ip.gateway: quello che avete scelto all'inizio di questa guida] e infine dargli l'ip dei server DNS di internet..ve ne do alcuni: &lt;br /&gt;
- 151.99.125.1 &lt;br /&gt;
- 212.216.112.222 &lt;br /&gt;
- 212.216.172.162 &lt;br /&gt;
&lt;br /&gt;
sempre se sono macchine linux aprite il file /etc/resolv.conf e aggiungete le seguenti righe:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
nameserver 151.99.125.1 &lt;br /&gt;
nameserver 212.216.112.222 &lt;br /&gt;
nameserver 212.216.172.162 &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Fatto tutto ciò tutte le vostre macchine della rete saranno abilitate per andare in internet!!&lt;br /&gt;
&lt;br /&gt;
= Autore =&lt;br /&gt;
&lt;br /&gt;
Sw|tCh` [ switch@gxware.org ]&lt;/div&gt;</summary>
		<author><name>Darkside04</name></author>	</entry>

	</feed>