By default most people run Wireguard on port 51822. This of course shows that you are running a VPN. Is it better to run on another port, for example 443? But I heard that some ISPs frown on that.

What do the folks here think?

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

    I used 51968 when I still had WG in use (switched back to the old setup). Anything besides the default (51820 when I used DDG correctly) should be fine. I wouldn’t use 443 as that’s reserved for https, unless you want loads of https probes to be handled by wg ;) )

  • NightDice@feddit.de
    link
    fedilink
    English
    arrow-up
    6
    ·
    1 year ago

    Generally speaking, you never want to use a low port (<1024) for anything other than the service assigned to it, because it causes all kinds of headache. Both on your side and on the other side. As for high ports, pick whichever one you prefer. They don’t have any binding to a given service, though there are some conventions.

    The thing that shows people you’re running a VPN is not the port but the protocol header, so changing the port is pretty much useless if you want your ISP to not know you’re running a VPN for some reason.

    • Freeman@lemmy.pub
      link
      fedilink
      English
      arrow-up
      6
      ·
      1 year ago

      Tbh I moved my VPS vpn to port 443 because some public networks (ie; public wifi) will block the default ports (ie 1194 for openvpn).

      • GreyBeard@lemmy.one
        link
        fedilink
        English
        arrow-up
        4
        ·
        1 year ago

        I’ve had the opposite problem before. I’ve had public networks notice that the traffic on 443 is not actually https and kill it. That’s a little deeper than most places go though.

        • Freeman@lemmy.pub
          link
          fedilink
          English
          arrow-up
          3
          ·
          1 year ago

          I think the only place I had that was at a hospital that clearly had a snort tap running. And yeah the openvpn 1024 psk handshake in order to negotiate a TLS session is a dead giveaway.

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

    Just change the port slightly, like 51831 or something. That will help a bit, but VPN traffic can be identified regardless of what port it’s on.

  • cjerrington@kbin.social
    link
    fedilink
    arrow-up
    2
    ·
    1 year ago

    Changing ports isn’t a terrible thing, also not the perfect “fix” either, as you can still recognize open ports and scan the service on them.

    Some ports are reserved in networking, so should stay away from those.

    Some ISPs don’t allow you open ports on 80/443 as those are web hosting ports and they provide a service to consumers to download content from the internet, not for their consumer to be a web hosting provider as well. That’s at the residential level, if you have a business plan that might change, but it might be hard to convince and ISP otherwise.

  • kittyrunningnoise
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    picking a different port that isn’t also used by another common service will eliminate most of the botscans you’ll see otherwise.

    … do you have a reason to belive your ISP cares if you run wireguard?