Skip to content
Shellbay

Networking & Firewall · about 1 min · 2 steps

Allow addresses

Lets specific IP addresses or ranges through the firewall, to every port or to one port, for example your office reaching a database.

Runs on

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

What it changes on your server

  • Adds an allow rule per address to ufw or firewalld, whichever is on, and keeps it after reboots.
  • With a port, only that TCP port is opened to those addresses; otherwise every port is.

What Shellbay asks you

  1. Which addresses should be let in?

    Enter IP addresses or ranges, separated by commas. Only allow addresses you trust, such as your office's fixed address.

    Addresses
    Up to 20 IP addresses or ranges

    Example: 203.0.113.10, 198.51.100.0/24

  2. To one port, or to everything?

    Enter a TCP port, for example 5432 for PostgreSQL, to open only that port to these addresses. Leave it empty to let them reach every port.

    Only this port (optional) (optional)
    A port number from 1 to 65535

    Example: 5432

Steps

  1. Add the allow rules
  2. 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 can now get through the firewall. A block on the same address still wins; remove it with Unblock addresses.