DewaVPS

Configure Instance Firewalls

DewaVPS Cloud Firewalls provide network-level security by controlling traffic to and from your Instances before it reaches the operating system.

Accessing Firewall Settings

  1. Navigate to InstancesVirtual Machines.
  2. Click on the Instance name.
  3. Select the Firewall tab.

Firewall Tab

Setting Default Policy

Choose the baseline behavior for incoming traffic:

  • ACCEPT: Allow all by default, block specific traffic (less secure)
  • DROP: Block all by default, allow specific traffic (more secure, recommended)

Adding Firewall Rules

1. Click Create

Click the Create button in the Firewall section.

2. Fill the Form

Create Firewall Rule Form

FieldDescription
Source IPIP address or CIDR range (e.g., 192.168.1.0/24)
Use IPsetToggle to use a pre-defined IP List
TypePreset service type or Custom
ProtocolTCP or UDP (auto-filled for presets)
PortPort number or range
ActionACCEPT or DROP
DescriptionNote explaining the rule purpose

3. Select Type

Type Options

Available presets:

  • SSH — Port 22
  • HTTP — Port 80
  • HTTPS — Port 443
  • Custom TCP — Custom TCP port
  • Custom UDP — Custom UDP port
  • ICMP — Ping

4. Select Action

Action Options

  • ACCEPT — Allow the traffic
  • DROP — Block the traffic silently

5. Submit

Click Submit to create the rule.

Example: Allow SSH from Office Network

Filled Firewall Form

FieldValue
Source IP192.168.1.0/24
TypeSSH
Port22 (auto-filled)
ActionACCEPT
DescriptionAllow SSH from office network

Managing IP Lists

IP Lists allow you to group IP addresses for easier management.

Creating an IP List

  1. Click Create in the IP List section.
  2. Enter a name and optional description.
  3. Add IP addresses or CIDR ranges.

Using IP Lists in Rules

Check Use IPset and enter the IP List name in the Source IP field.

Managing Rules

  • Edit: Click the edit icon to modify a rule
  • Disable/Enable: Toggle the switch to temporarily disable a rule
  • Delete: Click the delete icon to permanently remove a rule

On this page