Aller au contenu

Featured Replies

Posté(e)

Bonjour,

Je souhaitais avoir hamachi sur mon DS211 pour un accès à distance. J'ai un peu galéré pour monter Hamachi donc je vais vous donner les différent élèments que j'ai trouvé sur différents sites.

Tout d'abord il faut installer IPKG sur le Syno.

Ce mini-tuto doit normalement fonctionner sur tous les modèles ARM.

(ipkg install nano j'aime bien cet éditeur)

ipkg install openssl

cd /opt

wget http://files.hamachi...lnx-n770.tar.gz

tar -xvf hamachi-0.9.9.9-20-lnx-n770.tar.gz

rm hamachi-0.9.9.9-20-lnx-n770.tar.gz

cd hamachi-n770-0.9.9.9-20/

./install

ln -s /opt/lib/libcrypto.so.0.9.8 /usr/lib/libcrypto.so.0.9.7

tuncfg

hamachi-init

hamachi start

hamachi set-nick [Le nom pour votre Syno]

hamachi login

hamachi join [L'ID de votre réseau du style 000-000-000]

hamachi go-online [L'ID de votre réseau du style 000-000-000]

echo "KeepAlive 10" >> ~/.hamachi/config

Pour avoir un lancement automatique:

cd /opt/etc/init.d

> S99hamachi.sh

nano S99hamachi.sh

coller le script suivant dans l'éditeur de texte (perso j'utilise nano mais vous pouvez utiliser vi ou autre):


#!/bin/sh

# Make sure the tunnel driver is loaded

if ( !(lsmod | grep -q "^tun") ); then

        insmod /lib/modules/tun.ko

fi


hamachi_start() {

        echo "Lancement de hamachi..."

        /sbin/tuncfg

        /usr/bin/hamachi -c /root/.hamachi start

        /bin/chmod 760 /var/run/tuncfg.sock

}


hamachi_stop() {

        echo "Arret de hamachi..."

        killall tuncfg

        /usr/bin/hamachi stop

}


hamachi_restart() {

        hamachi_stop

        sleep 1

        hamachi_start

}


case "$1" in

'start')

        hamachi_start

        ;;

'stop')

        hamachi_stop

        ;;

'restart')

        hamachi_restart

        ;;

*)

        hamachi_start

esac

"CTRL+X" pour quitter et "Y" pour sauvegarder et "ENTREE" pour garder le même nom.

on peut relancer Hamachi ainsi:

sh S99hamachi.sh restart

Si comme moi vous vous retrouvez un jour bloqué et que la commande "hamachi login" vous renvoie failed alors stoppez Hamachi, allez dans "~/.hamachi/" et supprimez le fichier state.

PS je complèterai ce tuto ASAP.

TimY

  • 2 ans après...
Posté(e)

dommage ...

410J> cd /opt
410J> wget http://files.hamachi...lnx-n770.tar.gz
--2012-12-30 15:16:56--  http://files.hamachi...lnx-n770.tar.gz/
Resolving files.hamachi...lnx-n770.tar.gz... failed: Name or service not known.
wget: unable to resolve host address `files.hamachi...lnx-n770.tar.gz'
410J>
  • 5 semaines après...
Posté(e)

désolé de faire remonté ce topik

mais que veux dire atdd10 par "dommage" ?

merci

Rejoindre la conversation

Vous pouvez publier maintenant et vous inscrire plus tard. Si vous avez un compte, connectez-vous maintenant pour publier avec votre compte.

Invité
Répondre à ce sujet…

Information importante

Nous avons placé des cookies sur votre appareil pour aider à améliorer ce site. Vous pouvez choisir d’ajuster vos paramètres de cookie, sinon nous supposerons que vous êtes d’accord pour continuer.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.