Hey, so I’ve been using Hamachi with Haguichi on Linux (Mint) for some time, and for the most part it works fine; however, hamachi will occasionally disconnect and then ask for my password to restart the service. This seems to happen kind of irregularly, and some days it barely happens, while others it seems to happen every 5 minutes.

After some search, I only managed to find a couple of old results - with no solutions - but which suggested it was a memory leak issue. I checked the systemctl logs and it seems like that might be the case:

systemd-coredump[96279]: Process 93832 (hamachid) of user 0 dumped core.
            #11 0x000000000040954f n/a (hamachid + 0x954f)
            #12 0x0000000000462f71 n/a (hamachid + 0x62f71)
            #13 0x0000000000464d10 n/a (hamachid + 0x64d10)
            #14 0x00000000004afe24 n/a (hamachid + 0xafe24)
            #15 0x00000000004e816c n/a (hamachid + 0xe816c)
            #16 0x00000000005005d4 n/a (hamachid + 0x1005d4)
            #17 0x000000000050eb48 n/a (hamachid + 0x10eb48)
            #18 0x0000000000446c9e n/a (hamachid + 0x46c9e)
            #19 0x00000000004bebe2 n/a (hamachid + 0xbebe2)
            #20 0x000000000040709e n/a (hamachid + 0x709e)
            #23 0x00000000004076cf n/a (hamachid + 0x76cf)

I guess my question is, is this a known issue? Does anyone else have the same problem and/or know a fix? And, if not, does anyone know of a good alternative that is available on both Linux and Windows (I’m connecting to people on Windows)?

Thanks in advance.

  • lordnikon@lemmy.world
    link
    fedilink
    English
    arrow-up
    18
    ·
    1 day ago

    Wouldn’t it be better using wireguard at this point. I thought hamachi was long past it’s prime.

  • Preußisch Blau@lemmy.ca
    link
    fedilink
    arrow-up
    10
    ·
    1 day ago

    After having that same issue with haguichi, I switched to using hamachi in the terminal only and haven’t had it happen since.

  • Max-P@lemmy.max-p.me
    link
    fedilink
    arrow-up
    9
    ·
    1 day ago

    As for alternatives, I’ve heard lots of good things about Tailscale (or headscale if you want to self host).

    If them connecting to you is an option, WireGuard is also stupidly easy to set up and very reliable. If you need to also forward layer 2 traffic (old LAN games and weird local protocols), you can use OpenVPN for that. A bit hard to set up but also quite capable.

  • Godort@lemm.ee
    link
    fedilink
    arrow-up
    9
    ·
    edit-2
    1 day ago

    I haven’t tried to use hamachi in years so I’m not sure about a solution to your problem. However, I can strongly recommend Zerotier as a potential alternative

  • Max-P@lemmy.max-p.me
    link
    fedilink
    arrow-up
    6
    ·
    1 day ago

    Unfortunately that trace isn’t very useful due to the lack of debug symbols. One would have to decompile and analyze the binary to really gather some information as to how that happened, and it’s probably against their TOS.

    hamachi will occasionally disconnect *and then ask for my password to restart the service. *

    The GUI is probably trying to restart the daemon for you which causes this, because that’s not standard behaviour. You can probably fix that but just allowing your user to do that passwordless, although it’s dumb:

    # /etc/polkit-1/rules.d/50-hamachi.rules
    polkit.addRule(function (action, subject) {
        if (
            subject.user === "YOURUSERNAMEHERE"
            && action.id === "org.freedesktop.systemd1.manage-units"
            && action.lookup("unit") === "logmein-hamachi.service"
        ) {
            return polkit.Result.YES;
        }
    })
    

    You’ll want to change your username in there and also adjust the service name if it’s different.