Skip to content
Shellbay

Networking & Firewall · about 1 min · 3 steps

Block addresses

Blocks all connections from specific IP addresses or ranges, for example an address attacking your website.

Runs on

  • Debian / Ubuntu: supported
  • RHEL / Fedora: supported
  • Alpine: supported

What it changes on your server

  • Adds a block rule per address to ufw (placed before the allow rules) or firewalld, whichever is on, and keeps it after reboots.
  • Never blocks the address you're connecting from.

What Shellbay asks you

  1. Which addresses should be blocked?

    Enter IP addresses or ranges, separated by commas. You can find attacking addresses in your web server's or SSH's logs. Your own address is always refused.

    Addresses
    Up to 20 IP addresses or ranges

    Example: 198.51.100.23, 203.0.113.0/24

Steps

  1. Make sure you won't be blocked
  2. Add the block rules
  3. Check the rules are active

Shellbay checks the server before the first step, and stops at the first step that fails.

When it's done

  • Those addresses are blocked. Run Unblock addresses to let them in again.