Install and Configure LogMeIN ( Hamachi ) on RHEL/CentOS 5/6

Hamachi is used or setup VPN and connect system with each other using vpn network. For this tutorial I have already created hamachi network from its web interface and get a network id and connected a windows system with this network. This tutorial will help you to add Linux machine to this existing network and communicate other systems ( windows + linux ) on this network.

      Network ID: 181-585-285
      Windows Client IP: 25.70.100.134
      Linux Client IP: Will get after Install

Step 1: Install Required Packages

For installing hamachi on RHEL/CentOS system, you need to have redhat-lsb package installed. If you don’t have already install it using following command.

# yum install redhat-lsb

Step 2: Download LogMeIn ( Hamachi) and Install

Click here to download latest logmein-hamachi rpm file from logmein official site and install it on your system or just use below commands

# wget https://secure.logmein.com/labs/logmein-hamachi-2.1.0.119-1.i486.rpm
# rpm -ivh logmein-hamachi-2.1.0.119-1.i486.rpm

Start Hamachi Service using hamachi init service

# /etc/init.d/logmein-hamachi start

Step 3: Join Hamachi Existing Network

After installing hamachi, let’s join to existing network. But it required to be logged in first. There are no need of any login credentials for it, just use following command.

# hamachi login

Logging in .......... ok

Now use below command to join the network. 181-585-285 is the LogMeIn-Hamachi network id.

# hamachi join 181-585-285

Password:
Joining 181-585-285 .. ok

Now you have successfully joind to existing network.

Step 4: Check Hamachi Status and Details

To check the ip address, hamachi client id and other details about your system just type command ‘hamachi‘ and press enter.

# hamachi
version : 2.1.0.101
pid : 20578
status : logged in
client id : 134-582-152
address : 25.71.188.76 2620:9b::1947:bc4c
nickname : svr1.tecadmin.net
lmi account: -

To check the current joind network and other details about that network just use following command

# hamachi list

Let’s try to ping to windows client.

# ping 25.70.100.134 -c 4
PING 25.70.100.134 (25.70.100.134) 56(84) bytes of data.
64 bytes from 25.70.100.134: icmp_seq=1 ttl=128 time=1.88 ms
64 bytes from 25.70.100.134: icmp_seq=2 ttl=128 time=2.15 ms
64 bytes from 25.70.100.134: icmp_seq=3 ttl=128 time=1.56 ms
64 bytes from 25.70.100.134: icmp_seq=4 ttl=128 time=1.63 ms

--- 25.70.100.134 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3010ms
rtt min/avg/max/mdev = 1.563/1.806/2.150/0.237 ms

The above output showing that system is successfully communicating with windows client using hamachi network.

hamachi-stup

Congratulation’s! You have successfully installed and configured LogMeIn Hamachi on your Linux system.

Rahul

Founder of TecAdmin.net. I love to work with Linux and other open source application. Also I like to share knowledge with my friends and other Linux users. Follow me on Twitter, Add me on Google+ or Like Facebook page.

8 Comments

  1. Try this. Ammyy Admin is a powerful multi-task solution for remote desktop sharing, remote computer administration and distance learning from any location in the World.

  2. Starting LogMeIn Hamachi VPN tunneling engine logmein-hamachi/opt/logmein-hamachi/bin/hamachid: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15′ not found (required by /opt/logmein-hamachi/bin/hamachid)
    /opt/logmein-hamachi/bin/hamachid: /lib64/libc.so.6: version `GLIBC_2.14′ not found (required by /opt/logmein-hamachi/bin/hamachid)

  3. I had the same issue. GLIBCXX_3.4.15′ not found (required by /opt/logmein-hamachi/bin/hamachid)

    So many issues trying to do things on linux. Trying my best to learn but it seems simple things require lots of hours and research. I would say developers of OS are smart only if they can make tools that are easy to work with. Seems that there is never a straightforward way. You follow instructions and something is always not right… Maybe deep regulation and standardization would be good to have across all platforms.

  4. Important that users understand that Hamachi does not work with CentOS5 using RHEL6 because the latest version of GCLIB is sub 3X and this program requires 3.4.15. Installing this into CentOS5.X is done so at the users risk because you have to push GCLIB to an unsupported version that is at your peril. So basically if you see this GCLIB then forget touching hamachi and maybe go with openvpn instead.

  5. Same problem here, and is not easy to fix that GLIBCXX_3.4.15 issue.

  6. Hi,

    Same issue with GLIBCXX_3.4.15 not found, cannot go further. Is there any solution ?

    I’m using Linux 2.6.32-042stab081.5, it’s a CentOs 6 distrib.

  7. If you want to use it by the way, the old version is still working as it doesn’t required up to date libgcc library. More info here with the link to download the old revision : http://community.logmein.com/t5/Hamachi/Hamachi-and-CENTOS-6-4/td-p/103913

  8. Very precise, accurate steps given,
    it is working for me,,,,amazingly :)

    thank you for the this post and made my life easier.. LOL

    installed: logmein-hamachi-2.1.0.130-1.i486.rpm

Leave a Reply