How can I only allow SSH from my IP address and block it on the firewall for everyone else?

Overview

This procedure outlines how to restrict SSH access exclusively to your designated IP address while blocking inbound traffic on port 22 for all other sources using the Juggernaut Firewall.

Prerequisites

Configuration Steps

  1. Navigate to Juggernaut Firewall > Settings > Firewall > Port Settings.
  2. Locate port 22 within the TCP in and TCP6 in configuration fields.
  3. Remove port 22 from both lists. This action blocks inbound SSH traffic for all addresses except those explicitly whitelisted.
  4. Click the Update button to save your changes.
  5. Click the Restart button to apply the updated firewall rules and reload the service.

Troubleshooting

  • Unexpected Lockout: If SSH connectivity is lost after applying these changes, verify that your IP address was correctly whitelisted prior to removing port 22. Use the provider's emergency console or out-of-band management interface to restore access if necessary.
  • Rules Not Applying: Ensure the firewall service completes its restart cycle. If issues persist, review the firewall logs for syntax errors or conflicting rules.
  • ssh
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Where are the configuration files for Juggernaut Firewall located?

Configuration files are located in the /etc/csf/ directory with the main firewall configuration...

Can I use Juggernaut Firewall to block Wordpress bruteforce attacks?

Yes we support blocking attacks like these very easily. See below for more information: How can...

How can I install or upgrade the extension?

We provide free installation and configuration for all our paid licenses. Open a support ticket...

How can I change the interface language of the extension?

Overview This article provides instructions on how to change the interface language within the...

How can I get detailed help about a specific setting?

Overview This article outlines how to access contextual assistance and detailed configuration...