Applying Firewall Rules

February 2, 2023 / Virtual Server

This article applies to Hyperslice VPS and Hyperslice Cloud Servers.

You can set firewall rules for the network interfaces of Hyperslice virtual servers.

Important: Any rules set here will be executed before any rules configured on the software firewall installed on the server, if a rule appears to not be working, check that you do not have a conflicting rule on your server. 

There are two types of rules:

ACCEPT – Allows traffic from the sources destination(s)
DROP – Blocks traffic from the source destination(s)

Firewall rules are applied in order from first to last, the last being the default firewall action.

If you only want to allow access to specific ports, set the Default firewall action to DROP and then create firewall rules for the traffic you do want to allow.

Adding a Firewall Rule

Firewall Rule

  1. Click On Firewall Management
  2.  Next to your Interface enter the following:
    1. Choose Accept or Block for your rule
    2. Source IP Address
      1. Leave field empty to apply this rule to all source IPs
      2. Enter hyphen-separated IPs to apply the rule to an IP range (e.g.
      3. Enter the IPs with slash to apply to a CIDR  (e.g.
    3. Destination Port
      1. Leave field empty to apply the rule to all ports.
      2. Enter colon-separated ports to apply the rule to a port range (e.g. 1024:1028)
      3. Enter comma-separated ports to apply the rule to the list of ports (e.g. 80,443,21)
    4. Choose the protocol (TCP, UDP or ICMP).
  3. Click Add Rule
  4. Repeat these step to apply and additional rules
  5. Click Apply Firewall Rules to active you rules.

Re-Ordering Rules

  1. Use Up and Down arrow buttons in the left column to change firewall rule positions.
    Up and Down arrow buttons

Setting the Default Firewall Rule

The default firewall rule is always processed last, any traffic that does not match one of your firewall rules will have the default rule applied to it.

If you want to explicitly only allow traffic you have specified in your rules then you should set this to Drop.

  1. Set Action to Accept or Drop
  2. Click Save Default Firewall Rules
  3. Click Apply Firewall Rules
    Apply Firewall Rules



Spread the love