Hamachi

From Guides

Jump to: navigation, search

Contents

Installation

  1. Create a device node.
    mkdir /dev/net mknod
    /dev/net/tun c 10 200
  2. Run 'make install' and then 'tuncfg' from under the root account
    make install tuncfg
  3. Run 'hamachi-init' to generate crypto identity (any account).
    hamachi-init
  4. Run 'hamachi start' to launch Hamachi daemon.
    hamachi start
  5. Run 'hamachi login' to put the daemon online and to create an account.
    hamachi login
  6. Run 'hamachi join <network>' to join the network.
    hamachi join
  7. Run 'hamachi go-online <network>' to go online in the network.
    hamachi go-online <network>
  8. Run 'hamachi get-nicks' to fetch nicknames from network.
    hamachi get-nicks
  9. Run 'hamachi list' to list network members and their status.
    hamachi list

Automatic Startup

  • Important
You might need to move your config location.
mv ~/.hamachi /opt/hamachi/conf
You can use the -c parameter with hamachi to point to the new config location.


  1. Create a shell script to boot hamachi.
    vi /etc/init.d/hamachi.sh
  2. Add some commands to be able to boot hamachi.
    /sbin/tuncfg
    /usr/bin/hamachi start -c /opt/hamachi/conf/
    /usr/bin/hamachi login -c /opt/hamachi/conf/
  3. Create a symbolic link in the rc#.d directory. Choose according to runlevel.
    ln -sf /etc/init.d/hamachi.sh S99hamachi
Personal tools
Google Ads