Wireguard is blocked in my country, so I no longer can use Tailscale or other Wireguard-based solutions. My home server is behind a NAT. What other ways of secure private connection can I use?

  • alienghic@slrpnk.net
    link
    fedilink
    English
    arrow-up
    3
    ·
    16 minutes ago

    Can you set your NAT to port forward a port to your ssh host?

    I’m currently using yggdrasil to deal with this problem, though I’ve also used tor hidden services.

    • Feathercrown@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      3 minutes ago

      This is what I do. For best security practice, make sure to use public key authentication and disable password authentication so nobody can even try to guess your password.

  • iocase@lemmy.zip
    link
    fedilink
    English
    arrow-up
    2
    ·
    7 hours ago

    I haven’t tried it myself but I’ve been looking at NetBird.

    Elevator pitch page

    Maybe others who’ve used it or know more can chime in on if this is a good idea or not?

  • sandwichsaregood@lemmy.world
    link
    fedilink
    English
    arrow-up
    11
    ·
    edit-2
    1 day ago

    Sing-box is a VPN tool built to evade censorship https://github.com/SagerNet/sing-box . It is extremely resilient and stealthy.

    See also, xray and v2ray, which are similar, but in my experience sing-box is a bit better documented (at least in English) and has better maintained client apps.

    Setting any of these up can be complicated, but LLMs can get you pretty far if you have safe access.

  • measureyoucanpleasure@lemmy.sdf.org
    link
    fedilink
    English
    arrow-up
    4
    arrow-down
    3
    ·
    15 hours ago

    Tor Hidden Services, easy to set up on the server side, can be annoying on the client side but HTTP and SSH are fine. Can be a bit slow but IMHO still usable.

    • xthexder@l.sw0.com
      link
      fedilink
      English
      arrow-up
      8
      ·
      2 days ago

      Neat, I might have to set this up for myself. It sounds like it could get around some of the VPN blocking I’ve seen while traveling through airports.

  • hendrik@palaver.p3x.de
    link
    fedilink
    English
    arrow-up
    37
    ·
    edit-2
    2 days ago

    https://github.com/erebe/wstunnel seems like the obvious solution.

    Or maybe OpenVPN over normal TLS on port 443.

    You could try to run Wireguard on a different port which would be otherwise used by some very common service, maybe there’s some general exemption for port 21, 22, 53, 80, 443…

    • shininghero@pawb.social
      link
      fedilink
      English
      arrow-up
      8
      ·
      2 days ago

      OpenVPN is my current method. Got it running on port 443 with user certificate authentication, and tls-crypt on top of that to completely mask the protocol from VPN detectors.

      Also technically prevents DoS attacks, but that wasn’t my primary goal.

  • black0ut@pawb.social
    link
    fedilink
    English
    arrow-up
    15
    ·
    1 day ago

    OpenVPN in TCP mode wrapped around Stunnel. That’s the thing that works.

    I have it set up to bypass VPN restrictions in some networks, but it also serves to bypass a lot more stuff if you know what you’re doing.

    DPI will only see TLS traffic, and assume it’s HTTP. You can even try to fool it by modifying the packet headers, so dumb enough DPI will think you’re connecting to the site you choose.

  • exu@feditown.com
    link
    fedilink
    English
    arrow-up
    32
    ·
    2 days ago

    Self hosted networking! Legitimately one of my favourite topics

    You won’t get around the requirement of a publicly reachable endpoint. That can either be a small server with a public ip or dynamic DNS to your home with port forwarding for the VPN.

    A classic option is OpenVPN. You can run it on Port 443 in TCP mode and while it won’t be performant, it has a better chance of bypassing most simple blocks

    Other than that I’m a fan of completely decentralized mesh VPNs.

    The one I use and am most familiar with is Yggdrasil. Connections can be established over TCP, TLS or QUIC on any port you want.
    I’ve written a somewhat lengthy comment under this post. One advantage to Yggdrasil would be its existing public network. If you can firewall of your home lab to the point where joining the public network doesn’t expose a security risk to your local network, you could use that to transport your traffic instead of having your own public node or port forwarding.

    The same post also mentions Anywherelan, it’s intended to have better NAT handling out of the box by using community nodes.

    Then there’s also EasyTier mentioned at the bottom, it is a Chinese project and those tend to have good censorship resistance.

    Finally I’ll mention Nebula, it requires at least one coordination server but might also be an option

  • MuttMutt@lemmy.world
    link
    fedilink
    English
    arrow-up
    16
    arrow-down
    1
    ·
    2 days ago

    First, you need to verify whether you actually have a public IP or if your ISP has you stuck behind CG-NAT, because that dictates your options.

    ​If you’re behind CG-NAT, ​Cloudflare Tunnel (cloudflared): This is usually the easiest path if you are mostly trying to access web-based services (HTTP/HTTPS) on your server. Your home server initiates the outbound connection to Cloudflare, so CG-NAT doesn’t matter. You just set up a domain (or subdomains) for each service you want to reach. If you need full network-level or SSH access rather than just web apps, check out ZeroTier.

    ​If you have a direct public IP (even a dynamic one), you can run a reverse proxy like Caddy paired with a free DDNS provider like DuckDNS or FreeDNS. One nice thing about Caddy is that it handles getting and renewing real, valid Let’s Encrypt SSL certificates automatically, so you don’t have to deal with manual or self-signed certs at all.

    ​Dealing with the WireGuard block, if your country’s ISP is using Deep Packet Inspection (DPI) to identify and drop WireGuard traffic, traditional VPNs like OpenVPN might get blocked pretty quickly too. If you still want a true VPN setup, look into AmneziaWG (it’s a fork of WireGuard specifically modified to scramble packet signatures and bypass DPI) or obfuscated proxy protocols like V2Ray / Xray or Shadowsocks.

  • q7mJI7tk1@lemmy.world
    link
    fedilink
    English
    arrow-up
    4
    ·
    edit-2
    1 day ago

    So this has been interesting to me as I’m travelling at the moment and wireguard has been blocked on the guest wifi I’ve been on across the hotels, I’ve had to rely on cellular instead.

    I’ve just tried Teleport on my Unifi router and that works. I believe it uses wireguard, and it is taking up to 20secs to connect, but I’m now curious as to what it’s doing to bypass the VPN restrictions that are blocking plain wireguard.

    • kalpol@lemmy.ca
      link
      fedilink
      English
      arrow-up
      3
      ·
      18 hours ago

      How is this even a thing? Businesses can’t just have open network connections.

      You could set up wireguard via stunnel maybe to port 22