Logs for bilbo_sb%hotmail.com@msn.gate.amessage.de
Thu Mar 18 21:52:31 2004 bilbo_sb%hotmail.com@msn.gate.amessage.de Salut, c'est moi.
Thu Mar 18 21:53:12 2004 bilbo_sb%hotmail.com@msn.gate.amessage.de Dis moi, ça fait plusieurs jours que je n'arrive pas a me connecter avec aMSN
Thu Mar 18 21:53:43 2004 bilbo_sb%hotmail.com@msn.gate.amessage.de il me répond que le serveur est occupé ou qu'il y a une erreur de connection
Thu Mar 18 21:54:20 2004 bilbo_sb%hotmail.com@msn.gate.amessage.de est-ce de même pour toi ou est-ce que cela vient de mon PC ?
Thu Mar 18 21:55:19 2004 bilbo_sb%hotmail.com@msn.gate.amessage.de tu peux m'envoyer un petit Mail pour confirmation : stephane.blaevoet@wanadoo.fr Merci et à samedi
TMP /etc/resolv.conf [ $r -ne 0 ] && return -1 # } check_() { echo "#+ check_" ifconfig route #slow??? ping -c 1 ${IP} && IP=www.yahoo.com && ping -c 1 ${IP} # return 0 if UP # 2 on err r=$? #echo "-check_ $?" #$r echo "#- check_" return $r } gateway_() { ipmask_ } ipmask_() { ping -c 1 ${IP_SERVER} || die_ iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE # @S echo "1" > /proc/sys/net/ipv4/ip_forward # @S ping -c 1 ${IP_CLIENT} || die_ } usb_() { # modrobe usbnet ifconfig ${INTERFACE} down # @S ifconfig ${INTERFACE} ${IP_SERVER} netmask 255.255.255.0 up # @S } share_() { echo "+share_" # usb_ ping -c 1 ${IP_SERVER} || die_ ipmask_ ping -c 1 ${IP_CLIENT} || die_ echo "-share_" } router_() { echo "#+ router_" pon_ [ $? -ne -1 ] && share_ check_ echo "#- router_" } route_() { ping -c 1 ${IP_SERVER} || die_ r=666 while [ $r -ne 7 ] do route del default # @C 0 7 r=$? echo "route=$r" done do_ route add default gw ${IP_SERVER} # @C # link to gateway ping -c 1 ${IP} && echo -e "\n nameserver $IP\n" >> /etc/resolv.conf # @C } client_() { echo "#+ client_" #poff_ # On USB client ping -c 1 ${IP_SERVER} || return -1 # @C # test local network ok ifconfig ${INTERFACE} down # @C do_ ifconfig ${INTERFACE} ${IP_CLIENT} netmask 255.255.255.0 up #@C ping -c 1 ${IP_CLIENT} # @C # test local network ok #[ $? -ne 0 ] && return -1 # ping -c 1 ${IP_SERVER} # @C # test local network ok #[ $? -ne 0 ] && return -1 # route_ check_ r=$? echo "#- client_" return $r } dhcp_() { echo "#+ dhcp_" return -1 } guess_() { echo "#+ guess_" ( dhcp_ || client_ || router_ ) echo "#- guess_" } default_() { date check_ r=$? [ $r -eq 0 ] && gateway_ [ $r -ne 0 ] && guess_ date } main_() { echo "#+ main" mkdir -p `dirname $LOCK` [ -f $LOCK ] && cat $LOCK && return -1 echo "$$" >| $LOCK default_ rm $LOCK echo "#- main" } if [ -z $1 ] then usage_ $* main_ $* else $* fi echo $? #_EOF__________________________________________________________________________