<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Facendo il comando che mi hai detto è venuta fuori questa cosa qui... ma non la so leggere bene... cosa vuol dire?</div><div><br></div><div><div>Tabella di routing IP del kernel</div><div>Destination &nbsp; &nbsp; Gateway &nbsp; &nbsp; &nbsp; &nbsp; Genmask &nbsp; &nbsp; &nbsp; &nbsp; Flags Metric Ref &nbsp; &nbsp;Use Iface</div><div>192.168.0.0 &nbsp; &nbsp; 0.0.0.0 &nbsp; &nbsp; &nbsp; &nbsp; 255.255.255.0 &nbsp; U &nbsp; &nbsp; 0 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp; &nbsp;0 eth0</div><div>10.198.152.0 &nbsp; &nbsp;0.0.0.0 &nbsp; &nbsp; &nbsp; &nbsp; 255.255.248.0 &nbsp; U &nbsp; &nbsp; 0 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp; &nbsp;0 eth1</div><div>0.0.0.0 &nbsp; &nbsp; &nbsp; &nbsp; 10.198.152.1 &nbsp; &nbsp;0.0.0.0 &nbsp; &nbsp; &nbsp; &nbsp; UG &nbsp; &nbsp;100 &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp; &nbsp;0 eth1</div><div><br></div></div><br><div><div>Il giorno 26/mar/2010, alle ore 16.24, Yusef Maali ha scritto:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Le route?<br><br>Fai un route -n e vedi se ci sono tutte.<br><br><br>Ciao<br><br><br><br>In data venerdì 26 marzo 2010 12:37:45, Andrea Ciani ha scritto:<br><blockquote type="cite">Ciao a tutti,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">stavo configurando un router/firewall con linux ubuntu server utilizzando<br></blockquote><blockquote type="cite"> le iptables.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Ho 2 schede di rete chiamate eht0 (LAN) ed eth1 (collegata a sua volta con<br></blockquote><blockquote type="cite"> un modem/router di fastweb).<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Ho creato un DHCP che assegna correttamente gli indirizzi nella lan. La<br></blockquote><blockquote type="cite"> scheda eth0 ha indirizzo 192.168.0.2 e la eth1 invece prende gli ip<br></blockquote><blockquote type="cite"> direttamente da fastweb.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Il computer è correttamente connesso a internet (ho provato e testato con<br></blockquote><blockquote type="cite"> wget) e la eth0 è correttamente configurata in lan (ho provato a scambiare<br></blockquote><blockquote type="cite"> risorse condivise e funziona tutto).<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Però, come faccio a far andare i computer della lan su internet?? Perché<br></blockquote><blockquote type="cite"> non riescono a dialogare??<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Con iptables ho inserito le seguenti regole:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">iptables -P INPUT ACCEPT<br></blockquote><blockquote type="cite">iptables -P FORWARD ACCEPT<br></blockquote><blockquote type="cite">iptables -P OUTPUT ACCEPT<br></blockquote><blockquote type="cite">iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">ed ho inserito la seguente riga nel file /etc/sysctl.conf<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">net.ipv4.ip_forward = 1<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">riavviando ho notato che iptables aveva mantenuto i settaggi, però ancora<br></blockquote><blockquote type="cite"> niente internet dalla LAN!!! Perché?? Cosa ho sbagliato?? Qualcuno mi<br></blockquote><blockquote type="cite"> saprebbe dare una mano?<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">-----------------------------------------------<br></blockquote><blockquote type="cite">Andrea Ciani<br></blockquote><blockquote type="cite"><br></blockquote>_______________________________________________<br>Tecnica mailing list<br><a href="mailto:Tecnica@liste.siena.linux.it">Tecnica@liste.siena.linux.it</a><br>http://liste.siena.linux.it/cgi-bin/mailman/listinfo/tecnica<br></div></blockquote></div><br><div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><font class="Apple-style-span" face="'Apple Chancery'" size="4"><span class="Apple-style-span" style="font-size: 14px; "><i><font class="Apple-style-span" color="#4E4D4E"><br class="Apple-interchange-newline">---------------------------------------</font></i></span></font></div><div><span class="Apple-style-span" style="color: rgb(78, 77, 78); font-family: 'Apple Chancery'; font-size: 14px; font-style: italic; ">Andre</span></div></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br></body></html>