<div dir="ltr"><div><br></div><div><br>>cosa contiene rc.local?<br><br>
<p style="margin-bottom:0cm;line-height:100%">root@Scooreggione:~#
cat /etc/rc.local
</p>
<p style="margin-bottom:0cm;line-height:100%"># Put your custom
commands here that should be executed once
</p>
<p style="margin-bottom:0cm;line-height:100%"># the system init
finished. By default this file does nothing.
</p>
<p style="margin-bottom:0cm;line-height:100%"><br>
</p>
<p style="margin-bottom:0cm;line-height:100%">#110 Local routes
</p>
<p style="margin-bottom:0cm;line-height:100%">#111 RtTable
</p>
<p style="margin-bottom:0cm;line-height:100%">#112 RtTableDefault
</p>
<p style="margin-bottom:0cm;line-height:100%">#113 Special Table
for /1
</p>
<p style="margin-bottom:0cm;line-height:100%">#114 blackholes
table
</p>
<p style="margin-bottom:0cm;line-height:100%"><br>
</p>
<p style="margin-bottom:0cm;line-height:100%">#Copy local routes
only from table main 254 to table 110
</p>
<p style="margin-bottom:0cm;line-height:100%">ip route show table
254 | grep -Ev ^default | grep -Ev ^blackhole | while read ROUTE ; do
</p>
<p style="margin-bottom:0cm;line-height:100%">MASK=`echo
"${ROUTE}" | awk '{print $1}' | awk -F/ '{print $2}'`
</p>
<p style="margin-bottom:0cm;line-height:100%">if [ "$MASK"
-ne 16 ] ; then
</p>
<p style="margin-bottom:0cm;line-height:100%">ip route add table
110 $ROUTE
</p>
<p style="margin-bottom:0cm;line-height:100%">fi
</p>
<p style="margin-bottom:0cm;line-height:100%">done
</p>
<p style="margin-bottom:0cm;line-height:100%"><br>
</p>
<p style="margin-bottom:0cm;line-height:100%">#First evaluate
local routes
</p>
<p style="margin-bottom:0cm;line-height:100%">ip rule add from all
lookup 110 pref 3
</p>
<p style="margin-bottom:0cm;line-height:100%"><br>
</p>
<p style="margin-bottom:0cm;line-height:100%">#Private routes to
OLSR table
</p>
<p style="margin-bottom:0cm;line-height:100%">ip rule add to
<a href="http://10.0.0.0/8" target="_blank">10.0.0.0/8</a> table 111 pref 4
</p>
<p style="margin-bottom:0cm;line-height:100%">ip rule add to
<a href="http://172.16.0.0/12" target="_blank">172.16.0.0/12</a> table 111 pref 4
</p>
<p style="margin-bottom:0cm;line-height:100%">ip rule add to
<a href="http://192.168.0.0/16" target="_blank">192.168.0.0/16</a> table 111 pref 4
</p>
<p style="margin-bottom:0cm;line-height:100%"><br>
</p>
<p style="margin-bottom:0cm;line-height:100%">#Ninux IP Addresses
to OLSR table
</p>
<p style="margin-bottom:0cm;line-height:100%">ip rule add to
<a href="http://176.62.53.0/24" target="_blank">176.62.53.0/24</a> table 111 pref 4
</p>
<p style="margin-bottom:0cm;line-height:100%"><br>
</p>
<p style="margin-bottom:0cm;line-height:100%">#Evaluate blackholes
</p>
<p style="margin-bottom:0cm;line-height:100%">ip rule add from all
table 114 pref 5
</p>
<p style="margin-bottom:0cm;line-height:100%"><br>
</p>
<p style="margin-bottom:0cm;line-height:100%">#Send traffic of
public addresses to BGP border routers
</p>
<p style="margin-bottom:0cm;line-height:100%">ip rule add from
<a href="http://176.62.53.0/24" target="_blank">176.62.53.0/24</a> table 113 pref 6
</p>
<p style="margin-bottom:0cm;line-height:100%"><br>
</p>
<p style="margin-bottom:0cm;line-height:100%">#Lookup default
route first from user and then from OLSR
</p>
<p style="margin-bottom:0cm;line-height:100%">ip rule add from all
lookup 254 pref 7
</p>
<p style="margin-bottom:0cm;line-height:100%">ip rule add from all
lookup 112 pref 8
</p>
<p style="margin-bottom:0cm;line-height:100%"><br>
</p>
<p style="margin-bottom:0cm;line-height:100%">#Blackhole private
aggregates
</p>
<p style="margin-bottom:0cm;line-height:100%">ip route add
blackhole <a href="http://10.0.0.0/8" target="_blank">10.0.0.0/8</a> table 114
</p>
<p style="margin-bottom:0cm;line-height:100%">ip route add
blackhole <a href="http://172.16.0.0/12" target="_blank">172.16.0.0/12</a> table 114
</p>
<p style="margin-bottom:0cm;line-height:100%">ip route add
blackhole <a href="http://192.168.0.0/16" target="_blank">192.168.0.0/16</a> table 114
</p>
<p style="margin-bottom:0cm;line-height:100%"><br>
</p>
<p style="margin-bottom:0cm;line-height:100%">#Blackhole Ninux
aggregate
</p>
<p style="margin-bottom:0cm;line-height:100%">ip route add
blackhole <a href="http://176.62.53.0/24" target="_blank">176.62.53.0/24</a> table 114
</p>
<p style="margin-bottom:0cm;line-height:100%"><br>
</p>
<p style="margin-bottom:0cm;line-height:100%">#Start olsr v4
</p>
<p style="margin-bottom:0cm;line-height:100%">olsrd -f
/etc/config/olsrd -d 0
</p>
<p style="margin-bottom:0cm;line-height:100%"><br>
</p>
<p style="margin-bottom:0cm;line-height:100%">#Start olsrd v6
</p>
<p style="margin-bottom:0cm;line-height:100%">#olsrd -f
/etc/config/olsrd6.conf -d 0
</p>
<p style="margin-bottom:0cm;line-height:100%"><br>
</p>
<p style="margin-bottom:0cm;line-height:100%">#MTU Clamping
</p>
<p style="margin-bottom:0cm;line-height:100%">iptables -A FORWARD
-p tcp -m tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu
</p>
<p style="margin-bottom:0cm;line-height:100%">ip6tables -I FORWARD
-p tcp --syn -j TCPMSS --clamp-mss-to-pmtu
</p>
<p style="margin-bottom:0cm;line-height:100%"><br>
</p>
<p style="margin-bottom:0cm;line-height:100%">exit 0 <br></p><p style="margin-bottom:0cm;line-height:100%"><br></p>
<br>>> root@Scooreggione:~# sh /etc/config/olsrd<br>
<br>
>cosa stai cercando di fare con questo comando??<br><br></div>inizialmente quando non riuscivo a pingare nulla ho provato a leggere le vecchie ML in una di queste veniva consigliato di vedere se questo comando restituiva errori, mi ha colpito il messagio di errore , ma non conosco il comando e conosco poco linux.<br><div><div class="gmail_extra"><br><br></div><div class="gmail_extra">Ciao e grazie<br></div><div class="gmail_extra"><br></div></div></div>