cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Active Contributor

Route all the traffic through Hamachi

Hi, I'm having two Networks:

#1: 192.168.5.0

#2: 192.168.2.0

 

Network #1 is some kind of censored and all the traffic is beeing routed through a proxy. However im connected to the room of #2, which is the server.

 

So I want to route all the traffic from #1 to #2, to access the Internet!

 

Here my steps:

 

-  Through the Web Interface of Log Me In I've set the connection to gateway mode.

-  Enabled IP Routing in the Registry of #2

-  Added dynamic route on #1: route -p add 0.0.0.0 mask 0.0.0.0 <HAMACHI_IP_OF_#2>

 

So i can ping the #2 hamachi IP from #1, but I cannot ping public internet adresses, neither the default gateway of network #2, which is 192.168.2.1

 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Active Contributor

solved

Got it now! I've added a static route to the client:

route -p add 0.0.0.0 mask 0.0.0.0 192.168.2.18

 

where 192.168.2.18 is the server, where hamachi is running onto. Now i can tracert public adresses and they get tunneld as I wanted.

 

Thanks

View solution in original post

5 REPLIES 5
Highlighted
Retired LogMeIn Contributor

Re: Route all the traffic through Hamachi

Follow the instructions here to enable local and remote forwarding.

Sean Keough
Product Specialist, LogMeIn Support
Highlighted
Active Contributor

Re: Route all the traffic through Hamachi

Hey thanks for your answer. I just deleted everything and began setting up the network again. Now i could configure the gateway settings in the hamachi client of the server, and allowed the hamachi client to access the physical subnet.

 

So my client has retrieved an ip address of the servers network now and i can ping for example the router. Whenever I want to access a IP-Adress, which isnt in the target network then my client still connects to that adress, without routing through hamachi. I didnt modify any static routes this time.

 

Routing table client:

 

Aktive Routen:
     Netzwerkziel    Netzwerkmaske          Gateway    Schnittstelle Metrik
          0.0.0.0          0.0.0.0   192.168.150.11   192.168.150.35     20
         25.0.0.0        255.0.0.0   Auf Verbindung        25.42.9.88   9256
       25.42.9.88  255.255.255.255   Auf Verbindung        25.42.9.88   9256
   25.255.255.255  255.255.255.255   Auf Verbindung        25.42.9.88   9256

===========================================================================
Ständige Routen:
  Netzwerkadresse          Netzmaske  Gatewayadresse  Metrik
      192.168.2.0    255.255.255.0    25.34.202.223       1

===========================================================================

 

Routing table server:

Aktive Routen:
     Netzwerkziel    Netzwerkmaske          Gateway    Schnittstelle Metrik
          0.0.0.0          0.0.0.0         25.0.0.1    25.34.124.208   9256
          0.0.0.0          0.0.0.0      192.168.2.1     192.168.2.18     10
         25.0.0.0        255.0.0.0   Auf Verbindung     25.34.124.208   9256
    25.34.124.208  255.255.255.255   Auf Verbindung     25.34.124.208   9256
   25.255.255.255  255.255.255.255   Auf Verbindung     25.34.124.208   9256

===========================================================================
Ständige Routen:
  Netzwerkadresse          Netzmaske  Gatewayadresse  Metrik
      192.168.2.0    255.255.255.0    25.34.202.223       1
===========================================================================

Highlighted
Active Contributor

solved

Got it now! I've added a static route to the client:

route -p add 0.0.0.0 mask 0.0.0.0 192.168.2.18

 

where 192.168.2.18 is the server, where hamachi is running onto. Now i can tracert public adresses and they get tunneld as I wanted.

 

Thanks

View solution in original post

Highlighted
New Contributor

Re: solved

192.168.2.18 - is it its local adres, public address or address given to it by Hamachi?

Highlighted
New Contributor

Split tunnel

I'd like to know if Hamachi creates a split tunnel? On a traditional PPTP/L2TP tunnel, all traffic goes through the VPN so things like Zoom create enormous traffic on the VPN and through the office where the VPN connects.

 

While I'm on Hamachi, does zoom traffic go out the local gateway or does it too go through the Hamachi VPN?