VirtFusion

Configure the VirtFusion firewall for VPS servers

Use the VirtFusion network firewall to filter traffic to a VPS before it reaches the operating system: enable it, add allow rules, set a default policy and test.

IntermediateVirtFusion VPS2 min read

The VirtFusion firewall filters traffic at the hypervisor, before packets reach your VPS. It is a useful outer layer on top of the firewall inside the operating system, and it keeps working even if the VPS is busy or misconfigured.

Before you start

  • Access to the VirtFusion control panel for the server.
  • Your provider must have enabled the firewall feature.
  • A list of services you run and their ports (SSH 22, HTTP 80, HTTPS 443, and so on).
  • Your own public IP if you want to restrict SSH to it (check your IP).

Enable the VirtFusion firewall

  1. Log in to the control panel and open the server.
  2. Open the Firewall section.
  3. Add your allow rules before turning on a default deny policy, otherwise you cut your own SSH session.

Add rules

ServiceProtocolPortSource
SSHTCP22Your IP, or any
WebTCP80, 443Any
DNS (if you host DNS)UDP and TCP53Any
PingICMP—Any
  1. Create one rule per service with action accept.
  2. Add equivalent IPv6 rules if the server has IPv6.
  3. Set the default inbound policy to drop, then apply.

Tip: Keep a second SSH session open while applying rules. If something goes wrong, use the VNC console, which does not depend on the network firewall.

Check afterwards

  • From another machine, test allowed ports: nc -zv SERVER_IP 443.
  • Test a blocked port; it should time out.
  • Check that outbound traffic (updates, email) still works.

Troubleshooting

  • Locked out of SSH: disable the firewall in the panel or remove the deny policy, then fix the rule.
  • Website down after enabling: port 443 or 80 rule missing, or IPv6 rule missing while visitors use IPv6.
  • Rules seem ignored: make sure you clicked apply and the firewall is enabled for the right interface.

Frequently asked questions

Do I still need UFW or firewalld inside the VPS?

It is good practice. The hypervisor firewall is the outer layer; an OS firewall protects you if the outer one is disabled.

Does the firewall protect against DDoS?

No. It filters by rule; large attacks need upstream DDoS protection.

Can I restrict SSH to my office IP?

Yes, set the rule source to that IP, but keep console access in case your IP changes.

Next steps

Was this guide helpful?

Still stuck?

Ask MdmHost AI for a quick answer, or open a ticket and our team will take a look. We are here 24/7.