I want to set up ufw on my server, but something wrong here. Even when I trying to block 22 port ssh still working and nothing changing. I have ufw enabled, but nothing works.

  • MangoPenguinEnglish
    arrow-up
    3
    arrow-down
    0
    ·
    5 days ago
    link
    fedilink

    Is wireguard incoming or outgoing from the machine you’re trying to block it on?

    • someoneFromInternetOPEnglish
      arrow-up
      1
      arrow-down
      0
      ·
      5 days ago
      link
      fedilink

      outgoing, I guess. I mean, it’s on my vps which I want to use for vpn

      • MangoPenguinEnglish
        arrow-up
        2
        arrow-down
        0
        ·
        5 days ago
        link
        fedilink

        Make sure you’re creating a block rule specifically on outgoing in that case.

          • MangoPenguinEnglish
            arrow-up
            3
            arrow-down
            0
            ·
            5 days ago
            link
            fedilink

            Outgoing should already allow everything, so no need to specifically allow it.