Skip to main content
The built-in firewall allows you to control inbound and outbound traffic to your VPS through the OnetSolutions control panel.
Prerequisites
  • A VPS with OnetSolutions
  • An OnetSolutions account

How the Firewall Works

When you add your first firewall rule, the firewall becomes active and blocks all traffic by default. You must explicitly allow the traffic you want to permit.
Removing all rules will deactivate the firewall entirely.

Creating Firewall Rules

When adding a new rule, you’ll need to specify:

Common Rules

  • Priority: 10
  • Direction: INPUT
  • Action: ACCEPT
  • Protocol: TCP
  • Destination Port: 22
Create two rules:
  • Priority: 20 / Direction: INPUT / Action: ACCEPT / Protocol: TCP / Destination Port: 80
  • Priority: 21 / Direction: INPUT / Action: ACCEPT / Protocol: TCP / Destination Port: 443
  • Priority: 30
  • Direction: INPUT
  • Action: ACCEPT
  • Protocol: ICMP

Sending E-mail

To let your VPS send e-mail (an application, notifications, a mail server), use the Sending e-mail section at the bottom of your instance’s firewall page, in the console. It shows the outbound SMTP ports concerned: 25, 465, 587 and 2525.
1

Turn the switch on

Turn on Allow this server to send e-mail.
2

Describe your use

In What will these e-mails be used for?, write in your own words what your server sends, for example transactional e-mails from your application (password resets, invoices) and their volume.
3

Accept the commitments

Tick the two commitments shown, which reference the acceptable use policy and the terms of service, then click Allow sending.
The outbound SMTP ports open within minutes and the section shows Sending e-mail allowed. To withdraw the authorization, turn the switch off.
For your e-mails to reach their recipients, set up SPF, DKIM and the reverse DNS of your IP address.
If the section says that the authorization is managed by OnetSolutions, contact support to change it.

Best Practices

  • Always allow SSH access before activating the firewall
  • Use specific IP ranges when possible instead of allowing all IPs
  • Regularly review and update your firewall rules
  • Test new rules carefully to avoid locking yourself out
If you lock yourself out, use the KVM Console to access your server and fix the configuration.