hamachi unable to connect http or ssh

I've finally bumped into this problem myself. Not sure if this is a problem with hamachi or with the server I am trying to connect with. I suspect the server, however the solution is to change the local hamachi settings.

The problem manifests it self by ssh stalling and http failing to connect. ssh or connecting to other machines on the same network as the server/machine you are connecting too are accessible. ping also seems to work.

The issue is occuring on Windows 10 and Ubuntu 20.04.

The following is a solution for Ubuntu and ensures that the settings persist after a reboot. Windows solution is easier to find.

Add the following to the file /etc/dhcp/dhclient.conf

interface "ham0" {
default interface-mtu 1372;
supersede interface-mtu 1372;
}

interface "ham1" {
default interface-mtu 1372;
supersede interface-mtu 1372;
}

Note: 1372 is the MTU value that worked for me. You can use ping to find the best MTU value but in this case ping was not helpful.

Add the file 02-ham0-mtu.yaml to the directory /etc/netplan

# Let NetworkManager manage all devices on this system
network:
  version: 2
  renderer: NetworkManager
  ethernets:
    ham0:
      mtu: 1372
    ham1:
      mtu: 1372

Comments