Results 1 to 2 of 2

Thread: UFW not blocking IP range

  1. #1
    Join Date
    Nov 2020
    Beans
    1

    UFW not blocking IP range

    I am running an Ubuntu box on digital ocean droplet with Nginx.
    I have set up a block for an IP range xxx.xxx.xxx.0/24
    This deny rule is set as rule #1 in UFW.

    Even though not necessary I have reloaded UFW, checked the status, config seems correct.
    However, IP addresses from that range are still hitting the website.

    I know the order of rules in UFW is important so for good measure I added the above deny rule as #1.

    So, what is wrong here? Why are those IP addresses not being blocked by UFW?

  2. #2
    Join Date
    Sep 2014
    Location
    United States
    Beans
    362
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: UFW not blocking IP range

    What's the rule? It should something like this.

    ufw deny proto tcp from 202.54.1.0/24 to any port 22
    I'm the Sisyphus in security engineering.

    Read about 14.04 ESM and Puppet inside of Docker Containers.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •