Is there any possibility to get wireguard working to access my raspberry pi from outside my home? I’ve port forwarded the wireguard udp port and it doesn’t work… Likely because I’m behind a NAT. My wan public ip is like 10.x.x.x which is most likely a private ip. Running tailscale for now

  • SK4nda1@lemmy.ml
    link
    fedilink
    English
    arrow-up
    20
    arrow-down
    3
    ·
    1 year ago

    I’d advise to use headscale on a vps somewhere. Its tailscale but selfhosted.

    • biscoot@lemmy.getmeotter.work
      link
      fedilink
      English
      arrow-up
      7
      ·
      1 year ago

      Not OP, but thanks for sharing about headscale. I wasn’t aware this existed. Probably won’t make a switch to it anytime soon, personally. I have way too much connected on tailscale right now.

  • Schmeckinger@feddit.de
    link
    fedilink
    English
    arrow-up
    5
    ·
    1 year ago

    Another thing is if where you want to access it from has a IPv6 then you can just connect via IPv6.

  • Knusper@feddit.de
    link
    fedilink
    English
    arrow-up
    3
    ·
    1 year ago

    It is definitely possible, yeah. Tailscale and similar don’t do magic either.

    I’m not sure on the specifics, though. I think, you want a TURN server or a STUN server.

    • vzq@lemmy.blahaj.zone
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      I’ve gotten decent results with NAT traversal tricks, but the only way I’ve gotten it to perform reliably is with a relay fall back.

      This is exactly what you get with tailscale.

  • pyt0xic@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    You need to expose the ports you want to access on an external, publicly accessible server like a cheap vps. Then you can use wireguard to forward the traffic to your Pi.

    I haven’t done it in a long while, so I can’t explain it well enough, try searching for “vps wireguard gateway”. That should bring up some blog posts that will explain the process better. I used a VPS I got on the AWS free tier, you really don’t need anything expensive.