Difference between revisions of "Hamachi"
Thestinger (talk | contribs) (see also section) |
(mark the installation section as unclear) |
||
(34 intermediate revisions by 12 users not shown) | |||
Line 1: | Line 1: | ||
− | [[ | + | [[it:Hamachi]] |
+ | [[Category:Virtual Private Network]] | ||
+ | {{Poor writing|Needs to be updated for [[Help:Style]] compliance.}} | ||
+ | {{Out of date|initscripts and sysvinit are deprecated but this page isn't clear on what service info pertains to what}} | ||
[[Wikipedia:Hamachi (software)|Hamachi]] is a proprietary (closed source) commercial VPN software. With Hamachi you can organize two or more computers with an Internet connection into their own virtual network for direct secure communication. | [[Wikipedia:Hamachi (software)|Hamachi]] is a proprietary (closed source) commercial VPN software. With Hamachi you can organize two or more computers with an Internet connection into their own virtual network for direct secure communication. | ||
− | = | + | == Installation == |
+ | {{Poor writing|Arch Linux doesn't use APT. It's incredibly unclear what the author of this section is saying you should do.}} | ||
+ | Best way to install hamachi2 is to download the .deb package from the official source and then installing it (with sudo dpkg -i pakcage.deb && apt-get install -f), hamachi settings are available via command line. Look at the bottom of the page for GUI. | ||
+ | Version 2 of the Linux Hamachi client exists and is currently in beta. It is available from [https://secure.logmein.com/US/labs/ the labs page on the Hamachi website]. | ||
− | + | == Configuration == | |
− | + | === Set Up Tun === | |
− | |||
− | |||
− | |||
− | + | Being as section above can only be applied for init.scripts, in order to install the module, as root run: | |
− | + | # modprobe tun | |
− | |||
− | |||
− | |||
− | + | Then add tun to the list of modules by using your favorite text editor and Create | |
+ | {{hc|/etc/modules-load.d/tun.conf | | ||
+ | #Load tun module at boot. | ||
+ | tun | ||
+ | }} | ||
− | + | === Hamachi 2 (beta) === | |
− | |||
− | |||
− | + | Hamachi 2 is configured in {{ic|/var/lib/logmein-hamachi/h2-engine-override.cfg}} (create that file if it doesn't exist). | |
+ | Unfortunately, it isn't easy to find a comprehensive list of possible configuration options, so here are a few that you can use. | ||
− | == | + | ====Using the hamachi command line tool as a regular user==== |
− | + | In order to use the {{ic|hamachi}} command line tool as a regular user, add the following line to the configuration file: | |
+ | {{bc|Ipc.User YourUserNameHere}} | ||
− | + | ====Automatically setting a custom nickname==== | |
− | + | Normally, Hamachi uses your system's hostname as the nickname that other Hamachi users will see. If you want to automatically set a custom nickname every time Hamachi starts, add the following line to the configuration file: | |
− | + | {{bc|Setup.AutoNick YourNicknameHere}} | |
− | |||
− | + | You can also manually set a nickname using the {{ic|hamachi}} command line tool: | |
− | + | {{bc|# hamachi set-nick YourNicknameHere}} | |
− | |||
− | |||
− | |||
− | + | However, this needs to be done every time Hamachi is (re-)started, so if you always want to use the same nickname, setting it automatically (as explained above) is probably easier. | |
− | |||
− | |||
− | . | ||
− | |||
− | + | ==Running Hamachi== | |
− | |||
− | |||
− | |||
− | |||
− | + | Start up the (matt) daemon | |
+ | {{bc| | ||
+ | $hamachi start | ||
+ | }} | ||
− | + | or, if you use systemd | |
+ | |||
+ | {{bc| | ||
+ | #systemctl start logmein-hamachi}} | ||
− | + | Now you have a whole bunch of commands at your disposal. These are in no particular order and are fairly self explanatory. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | Now you have a whole bunch of commands at your disposal. These are in no particular order | ||
− | + | {{bc| | |
$hamachi set-nick bob | $hamachi set-nick bob | ||
$hamachi login | $hamachi login | ||
Line 72: | Line 63: | ||
$hamachi list | $hamachi list | ||
$hamachi go-offline my-net | $hamachi go-offline my-net | ||
− | + | }} | |
− | To get a list of all the commands | + | To get a list of all the commands, run: |
− | + | {{bc| | |
$hamachi ? | $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. | |
− | |||
− | |||
− | + | ===Systemd=== | |
− | + | The {{AUR|logmein-hamachi}} AUR package also includes a nice little [[Systemd]] daemon. | |
− | . | ||
− | |||
− | + | If you feel like it, you can set Hamachi to start at every boot with Systemd: | |
− | |||
− | |||
− | |||
− | + | {{Bc| | |
− | + | systemctl enable logmein-hamachi | |
− | + | }} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | To start the Hamachi Daemon immediately, use this command: | |
− | + | {{Bc| | |
+ | systemctl start logmein-hamachi | ||
+ | }} | ||
− | + | {{Note|If for some reason, hamachi doesn't have a Systemd daemon, you can use [[Services#Logmein_Hamachi|one from here]].}} | |
− | |||
− | |||
− | =GUI= | + | ==GUI== |
− | Various GUI frontends | + | Various GUI frontends for Hamachi are available in the AUR. |
− | For | + | For Hamachi 1: |
*haguichi (Gtk2, mono) | *haguichi (Gtk2, mono) | ||
Line 153: | Line 99: | ||
*hamachi-gui (Gtk2) | *hamachi-gui (Gtk2) | ||
− | For | + | For Hamachi 2 (beta): |
*quamachi (Qt4) | *quamachi (Qt4) | ||
*haguichi (Gtk2, mono) | *haguichi (Gtk2, mono) | ||
− | =Troubleshooting= | + | ==Troubleshooting== |
− | == | + | ===Hamachi times out soon after launch=== |
If hamachi stops working after a short period of time it can be that the client is timing out. Create ~/.hamachi/config and add the following to it: | If hamachi stops working after a short period of time it can be that the client is timing out. Create ~/.hamachi/config and add the following to it: | ||
− | + | {{bc| | |
KeepAlive 10 | KeepAlive 10 | ||
− | + | }} | |
− | ==If you have | + | ===If you have problems connecting to some hosts=== |
− | Check if they are using | + | Check if they are using Hamachi 2. If that is the case, then it is a known issue with the Hamachi 2 client connecting to the Hamachi Linux client. |
− | == | + | ===''/etc/init.d/logmein-hamachi'' is not found=== |
− | Replace | + | Replace that path with ''/etc/rc.d/logmein-hamachi''. |
− | ==Error when trying to run hamachi-init== | + | ===Error when trying to run hamachi-init=== |
− | If there is error while trying to load libstdc++.so.5 you want to install it can be found | + | If there is an error while trying to load libstdc++.so.5, you want to install it. This library can be found in the ''extra'' repository, so you can install it by running {{ic|pacman -S libstdc++5}}. |
− | If you get error while trying to load libcrypto.so.0.9.7 | + | If you get an error while trying to load libcrypto.so.0.9.7, a temporary solution is to create a link from /usr/lib/libcrypto.so.0.9.7 to /usr/lib/libcrypto.so by running {{ic|ln -s /usr/lib/libcrypto.so /usr/lib/libcrypto.so.0.9.7}}. |
==See also== | ==See also== | ||
* [https://secure.logmein.com/products/hamachi/ Project home page] | * [https://secure.logmein.com/products/hamachi/ Project home page] |
Revision as of 05:22, 24 June 2013
Installation
Best way to install hamachi2 is to download the .deb package from the official source and then installing it (with sudo dpkg -i pakcage.deb && apt-get install -f), hamachi settings are available via command line. Look at the bottom of the page for GUI. Version 2 of the Linux Hamachi client exists and is currently in beta. It is available from the labs page on the Hamachi website.
Configuration
Set Up Tun
Being as section above can only be applied for init.scripts, in order to install the module, as root run:
# modprobe tun
Then add tun to the list of modules by using your favorite text editor and Create
/etc/modules-load.d/tun.conf
#Load tun module at boot. tun
Hamachi 2 (beta)
Hamachi 2 is configured in /var/lib/logmein-hamachi/h2-engine-override.cfg
(create that file if it doesn't exist).
Unfortunately, it isn't easy to find a comprehensive list of possible configuration options, so here are a few that you can use.
Using the hamachi command line tool as a regular user
In order to use the hamachi
command line tool as a regular user, add the following line to the configuration file:
Ipc.User YourUserNameHere
Automatically setting a custom nickname
Normally, Hamachi uses your system's hostname as the nickname that other Hamachi users will see. If you want to automatically set a custom nickname every time Hamachi starts, add the following line to the configuration file:
Setup.AutoNick YourNicknameHere
You can also manually set a nickname using the hamachi
command line tool:
# hamachi set-nick YourNicknameHere
However, this needs to be done every time Hamachi is (re-)started, so if you always want to use the same nickname, setting it automatically (as explained above) is probably easier.
Running Hamachi
Start up the (matt) daemon
$hamachi start
or, if you use systemd
#systemctl start logmein-hamachi
Now you have a whole bunch of commands at your disposal. These are in no particular order and are fairly self explanatory.
$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, 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.
Systemd
The logmein-hamachiAUR AUR package also includes a nice little Systemd daemon.
If you feel like it, you can set Hamachi to start at every boot with Systemd:
systemctl enable logmein-hamachi
To start the Hamachi Daemon immediately, use this command:
systemctl start logmein-hamachi
GUI
Various GUI frontends for Hamachi are available in the AUR.
For Hamachi 1:
- haguichi (Gtk2, mono)
- ghamachi (Gtk2)
- hamachi-gui (Gtk2)
For Hamachi 2 (beta):
- quamachi (Qt4)
- haguichi (Gtk2, mono)
Troubleshooting
Hamachi times out soon after launch
If hamachi stops working after a short period of time it can be that the client is timing out. Create ~/.hamachi/config and add the following to it:
KeepAlive 10
If you have problems connecting to some hosts
Check if they are using Hamachi 2. If that is the case, then it is a known issue with the Hamachi 2 client connecting to the Hamachi Linux client.
/etc/init.d/logmein-hamachi is not found
Replace that path with /etc/rc.d/logmein-hamachi.
Error when trying to run hamachi-init
If there is an error while trying to load libstdc++.so.5, you want to install it. This library can be found in the extra repository, so you can install it by running pacman -S libstdc++5
.
If you get an error while trying to load libcrypto.so.0.9.7, a temporary solution is to create a link from /usr/lib/libcrypto.so.0.9.7 to /usr/lib/libcrypto.so by running ln -s /usr/lib/libcrypto.so /usr/lib/libcrypto.so.0.9.7
.