Hamachi
From ArchWiki
Contents |
Hamachi
What is it?
With Hamachi you can organize two or more computers with an Internet connection into their own virtual network for direct secure communication.
Hamachi is fast, secure and simple. It is also free.
READ! - External Links
Hamachi public networks for popular Games : www.hamachi.cz
English translate : www.eng.hamachi.cz
Individual help : www.Forum.hamachi.cz
Initial Configuration
To run Hamachi you need /dev/net/tun.
This is created by the tun module. As root run,
modprobe tun
Or you can manually create /dev/net/tun by running...
mkdir /dev/net mknod /dev/net/tun c 10 200
Also, make sure to add the "tun" modules to rc.conf so that /dev/net/tun is created next time your computer turns on.
MODULES=(... ... ... ... ... tun ... ... ...)
Download And Install Hamachi
Hamachi is avaiable in the AUR!
Download the package, untar it, and run...
makepkg
in the hamachi directory that is created.
Then add the package with...
pacman -A hamachi-(package version)
Now as root run...
tuncfg
Finally, run hamachi-init
hamachi-init
Or you can get it manually.
Head to hamachi.cc and download their linux client.
Untar it
tar zxvf hamachi-x.x.x-x.tar.gz
Compile:
cd hamachi-x.x.x-x make install
And run tunecfg
cd tuncfg ./tuncfg
Run hamachi-init
$hamachi-init
And thats the installation.
Running Hamachi
Start up the (matt) daemon
$hamachi start
Now you have a whole bunch of commands at your disposal. These are in no particular order, and are fairly self explanitory.
$hamachi set-nick bob $hamachi login $hamachi create my-net secretpassword $hamachi go-online my-net $hamachi list $hamachi go-offline my-net
To get a list of all the commands just run:
$hamachi ?
Note: Make sure you change the status of the channel(s) you are in to online if you want to perform any network actions on computers in there.
GUI
I found this link on the forums at hamachii. Its a GTK2+ GUI frontend. Not bad if your into that sort of thing.
If Hamachi times out soon after launch
When I was trying to get hamachi working on my two arch systems, I was testing it with some friends, who were running the windows Hamachi2 client. They could access each other fine, and both could access my system for a short (< 1 minute) period of time after I started Hamachi and logged on. Then, my hamachi connection would die. It turned out to be that my client was timing out. I created ~/.hamchi/config and added the following to it:
KeepAlive 10
Afterwards, the connection was stable. --sdellysse