Hamachi is used or setup VPN and connect systems over VPN network. This provides an quick and easier way to create VPN network and attach system. You can create a free account on logmein.com and create networks. You can add up to 5 systems in each network with free account. To add more than 5 systems required to upgrade network to paid version.
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 set up LogMeIn VPN network and add Linux machines to this network. Also, attach a Windows system to communicate each host over VPN.
Windows Client IP:
Linux Client IP:
Step 1 – Install Required Packages
For installing hamachi on CentOS, RedHat systems, you must have installed redhat-lsb package. If you don’t have already install it using the following command.
sudo yum installredhat-lsb
Step 2 – Download LogMeIn and Install
Visit LogMeIn official download webpage to download latest LogMeIn-hamachi packages for your Debian, Redhat or Windows systems. You may also use the below commands to install LogMeIn hamachi client on your system.
wget https://www.vpn.net/installers/logmein-hamachi-220.127.116.11-1.x86_64.rpm sudo rpm -ivh logmein-hamachi-18.104.22.168-1.x86_64.rpm
wget https://www.vpn.net/installers/logmein-hamachi_22.214.171.124-1_amd64.deb sudo dpkg -i logmein-hamachi_126.96.36.199-1_amd64.deb
Start Hamachi service using the following command.
sudo /etc/init.d/logmein-hamachi start
Step 3 – Set Up LogMeIn Network
You can also create the network using the command line. But I prefer to login to the LogMeIn hamachi dashboard and create a Network under Networks >> My Networks section. For security, purpose assigns a password for your network. On creation of the network, you will get a network id. Use this network id and password to attach remote systems to this network.
Step 4 – Join LogMeIn Existing Network
After installing hamachi, let’s join existing network. But it required being logged in first. There is no need for any login credentials for it, just use the following command.
hamachi loginLogging in .......... ok
Now use the command to join the network. 181-585-285 is the LogMeIn-Hamachi network id.
hamachi join 181-585-285Password: Joining 181-585-285 .. ok
Now you have successfully joined to existing network.
Step 5 – Check Hamachi Status and Details
To check the IP address, hamachi client id and other details about your system just type command ‘
hamachiversion : 188.8.131.52 pid : 20578 status : logged in client id : 219-270-114 address : 184.108.40.206 2620:9b::1947:bc4c nickname : svr1.tecadmin.net lmi account: -
To check the current joined to network and other details about that network just use the following command
Let’s try to ping to windows client.
ping 220.127.116.11 -c 4 PING 18.104.22.168 (22.214.171.124) 56(84) bytes of data. 64 bytes from 126.96.36.199: icmp_seq=1 ttl=128 time=1.88 ms 64 bytes from 188.8.131.52: icmp_seq=2 ttl=128 time=2.15 ms 64 bytes from 184.108.40.206: icmp_seq=3 ttl=128 time=1.56 ms 64 bytes from 220.127.116.11: icmp_seq=4 ttl=128 time=1.63 ms --- 18.104.22.168 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.