controllo configurazione
Marco d'Itri
fast6@lists.bofh.it
Tue Oct 1 18:45:05 2002
--9Ek0hoCL9XbhcSqy
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
Allego uno script che si può usare per verificare se un sistema rispetta
i requisiti. Per un tunnel broker è necessario che siano tutti
soddisfatti, gli utenti finali invece possono ignorare gli errori
relativi a ssh e pppd.
Direi che è il momento di passare all'azione, quindi invito a farsi
avanti un volontario disponibile ad attivare un primo tunnel broker
sulla propria macchina. Se non può lasciarla accesa 24/7 non è un
problema, l'importante è iniziare.
In futuro se ci saranno volontari disponibili sono intenzionato ad
attivare più di un tunnel broker per garantire ridondanza e dividere il
carico.
--
ciao,
Marco
--9Ek0hoCL9XbhcSqy
Content-Type: application/x-sh
Content-Disposition: attachment; filename="check-v6-support.sh"
Content-Transfer-Encoding: quoted-printable
#!/bin/bash=0A# vim: sw=3D2=0A=0APATH=3D"$PATH:/usr/local/sbin:/sbin:/usr/s=
bin"=0A=0ASSH=3D$(which ssh)=0APPPD=3D$(which pppd)=0AIPROUTE=3D$(which ip)=
=0A=0Aif [ "$UID" !=3D 0 ]; then=0A echo "ERROR: you must run this script =
as root."=0A exit 1=0Afi=0A=0Aif [ ! "$SSH" ]; then=0A echo "ERROR: ssh i=
s not in the PATH ($PATH)"=0Afi=0A=0Aif [ "$PPPD" ]; then=0A if ! grep -q =
ipv6cp-use-ipaddr $PPPD; then=0A echo "ERROR: $PPPD does not support IPv=
6."=0A fi=0Aelse=0A echo "ERROR: pppd is not in the PATH ($PATH)"=0Afi=0A=
=0Aif [ "$IPROUTE" ]; then=0A if ! $IPROUTE route show > /dev/null 2>&1; t=
hen=0A echo "ERROR: $IPROUTE failed. missing CONFIG_NETLINK support?"=0A=
fi=0A if ! $IPROUTE tunnel add test-$$ mode sit > /dev/null 2>&1; then=
=0A echo "ERROR: $IPROUTE failed. missing CONFIG_NET_IPIP support?"=0A =
fi=0Aelse=0A echo "ERROR: iproute is not in the PATH ($PATH)"=0Afi=0A=0Aif=
[ ! -d /proc/sys/net/ipv6 ]; then=0A echo "ERROR: missing CONFIG_IPV6 sup=
port."=0Afi=0A=0Aexit 0=0A
--9Ek0hoCL9XbhcSqy--