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.

  • schizo@forum.uncomfortable.business
    link
    fedilink
    English
    arrow-up
    7
    ·
    25 days ago

    So you want to block port 22? Yet the rule you added allows access, or am I misunderstanding?

    You probably need to be DENY instead of ALLOW if that’s what you’re wanting to accomplish.

    • bmcgonag@lemmy.world
      link
      fedilink
      English
      arrow-up
      4
      ·
      24 days ago

      This! You have it set to “Allow”, so it’s allowing it. You need to set it to Deny.

      • schizo@forum.uncomfortable.business
        link
        fedilink
        English
        arrow-up
        4
        ·
        24 days ago

        That’s a website tool checking? It’s almost certainly only going to check TCP, since most of them don’t do anything with UDP because it’s… more complicated.

        You may need to find an alternate way to do that, something like iperf or netcat (nc -u ip port)

        • Ace! _SL/S@ani.social
          link
          fedilink
          English
          arrow-up
          2
          ·
          edit-2
          24 days ago

          nmap works great for this

          traceroute might also be usable vith the -p switch I guess?