{"id":228,"date":"2015-02-18T20:52:59","date_gmt":"2015-02-18T12:52:59","guid":{"rendered":"http:\/\/matnet.my\/blog\/?p=228"},"modified":"2015-02-18T20:52:59","modified_gmt":"2015-02-18T12:52:59","slug":"i-need-vpn-on-my-office-but-im-not-the-one-who-control-the-network","status":"publish","type":"post","link":"https:\/\/matnet.my\/blog\/2015\/02\/i-need-vpn-on-my-office-but-im-not-the-one-who-control-the-network\/","title":{"rendered":"I need VPN on my office but I&#8217;m not the one, who control the network"},"content":{"rendered":"<p>1. Hamachi is the solution.<\/p>\n<p>2. I need to create a gateway at the office so then i can access all the devices in the office. This is better choice rather to use mesh or hub-and-spoke.<\/p>\n<p>3. I&#8217;m using Centos Linux as the gateway<\/p>\n<p>4. This is how i&#8217;m install hamachi on the Centos :<\/p>\n<p>yum install redhat-lsb<\/p>\n<p>wget https:\/\/secure.logmein.com\/labs\/logmein-hamachi-2.1.0.136-1.i486.rpm<\/p>\n<p class=\"p1\"><span class=\"s1\">rpm -ivh logmein-hamachi-2.1.0.136-1.i486.rpm<\/span><\/p>\n<p class=\"p1\"><span class=\"s1\">\/etc\/init.d\/logmein-hamachi start<\/span><\/p>\n<p class=\"p1\"><span class=\"s1\">hamachi login<\/span><\/p>\n<p class=\"p1\"><span class=\"s1\">hamachi attach your-email@email.com<\/span><\/p>\n<p class=\"p1\"><span class=\"s1\">hamachi set-nick &#8220;you-gw-name&#8221; \u00a0&lt;&#8212; optional<\/span><\/p>\n<p class=\"p1\">5. Logon to\u00a0https:\/\/secure.logmein.com\/central\/Central.aspx<\/p>\n<p class=\"p1\">6. On the left menu\u00a0&#8211; go\u00a0to Networks &#8211;&gt; My Networks &#8211; At the top of page you will see join pending request as image below :<\/p>\n<p class=\"p1\"><a href=\"https:\/\/matnet.my\/blog\/wp-content\/uploads\/2015\/02\/hamachi.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-230\" src=\"https:\/\/matnet.my\/blog\/wp-content\/uploads\/2015\/02\/hamachi.jpg\" alt=\"hamachi\" width=\"521\" height=\"275\" srcset=\"https:\/\/matnet.my\/blog\/wp-content\/uploads\/2015\/02\/hamachi.jpg 521w, https:\/\/matnet.my\/blog\/wp-content\/uploads\/2015\/02\/hamachi-300x158.jpg 300w\" sizes=\"auto, (max-width: 521px) 100vw, 521px\" \/><\/a><\/p>\n<p class=\"p1\">7. Accept the request<\/p>\n<p class=\"p1\">8. Now we create the Network by click on Add Network<\/p>\n<p class=\"p1\">9. Fill in network name, network description and select Network type : Gateway<\/p>\n<p class=\"p1\">10. Fill in the option for network request, network password, and subscription.<\/p>\n<p class=\"p1\">11. Select the gateway &#8211; This is where you select the linux gateway you setup just now.<\/p>\n<p class=\"p1\">12. Then select the clients\/members to join on this network<\/p>\n<p class=\"p1\">13. Next you need to setup DHCPD server on your gateway.<\/p>\n<p class=\"p1\">14. On ifconfig -a you will see new interfaces such as\u00a0ham-br0, ham0 and ham1. Your current IP address on eth0 will be on ham-br0. Thus you need to setup DHCPD on ham-br0<\/p>\n<p class=\"p1\">15. I&#8217;ll not show, how to setup DHCPD.<\/p>\n<p class=\"p1\">16. Forwarding the packets :<\/p>\n<p class=\"p1\">vi \/etc\/sysctl.conf<\/p>\n<p class=\"p1\">set to :<\/p>\n<p class=\"p1\">net.ipv4.conf.default.forwarding=1<\/p>\n<p class=\"p1\">then restart the network<\/p>\n<p class=\"p1\">17. Enable IP masquerading<\/p>\n<p class=\"p1\">iptables -t nat -A POSTROUTING -o ham-br0 -j MASQUERADE<\/p>\n<p class=\"p1\">service iptables save<\/p>\n<p class=\"p1\">service iptables restart<\/p>\n<p class=\"p1\">chkconfig iptables on<\/p>\n<p class=\"p1\">18. Launch hamachi on the client, then it should working now \ud83d\ude42<\/p>\n<p class=\"p1\">\n","protected":false},"excerpt":{"rendered":"<p>1. Hamachi is the solution. 2. I need to create a gateway at the office so then i can access &hellip; <a href=\"https:\/\/matnet.my\/blog\/2015\/02\/i-need-vpn-on-my-office-but-im-not-the-one-who-control-the-network\/\" class=\"more-link\">More <span class=\"screen-reader-text\">I need VPN on my office but I&#8217;m not the one, who control the network<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-228","post","type-post","status-publish","format-standard","hentry","category-bsd-nix","standard"],"_links":{"self":[{"href":"https:\/\/matnet.my\/blog\/wp-json\/wp\/v2\/posts\/228","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/matnet.my\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/matnet.my\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/matnet.my\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/matnet.my\/blog\/wp-json\/wp\/v2\/comments?post=228"}],"version-history":[{"count":3,"href":"https:\/\/matnet.my\/blog\/wp-json\/wp\/v2\/posts\/228\/revisions"}],"predecessor-version":[{"id":233,"href":"https:\/\/matnet.my\/blog\/wp-json\/wp\/v2\/posts\/228\/revisions\/233"}],"wp:attachment":[{"href":"https:\/\/matnet.my\/blog\/wp-json\/wp\/v2\/media?parent=228"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/matnet.my\/blog\/wp-json\/wp\/v2\/categories?post=228"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/matnet.my\/blog\/wp-json\/wp\/v2\/tags?post=228"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}