How to block all the outbound traffic while allowing SSH connections?

Learn how to block all the outbound traffic while allowing SSH connections from the portal step-by-step.

Step 1: Login to your account

Step 2: Navigate to Services and then click on My Services.

Step 3: Click on your project.

Step 4: From the left-hand side menu select Networks and click Security Group.

Step 5: Choose the security group in which you want to change rules and click on Select and choose Manage Rules from the drop-down.

Step 6: Click on Add Rules to set a rule in an instance.

Step 7: Enter the following details according to your requirements and security needs:

Then, click the Add Rule button.

Therefore, if you want to allow SSH connections while blocking all the outbound traffic with a cloud firewall, you need to select the Egress filter rule in the Direction category.

Last updated