What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

Yes. For most Ubuntu VPS deployments, keep a host firewall such as UFW enabled even when your hosting provider supplies a cloud firewall or security group. The provider layer filters traffic before it reaches the virtual machine; UFW enforces rules on the machine itself. Using both gives you separate control points, provided you configure them deliberately and allow SSH before enabling UFW.

What each firewall protects

A cloud firewall and UFW are not two interfaces for the same control. They operate at different points in the network path.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Question Provider cloud firewall UFW on Ubuntu
Where is it enforced? Upstream of the VPS, before packets reach the virtual network interface. Inside the Ubuntu instance, on the host networking stack.
Primary scope Controls traffic crossing the provider’s instance boundary. Controls traffic arriving at or leaving this particular operating system.
Traffic between instances Depends on the provider’s virtual-network design and rule model. Can apply host-specific rules to traffic that reaches the instance, including traffic from another machine on the same private network.
How quickly rules change Usually requires an edit in the provider console or API and may be managed centrally. Can be changed directly with local commands without editing cloud configuration.
Failure mode A mistaken rule can expose or block the instance before the operating system sees the connection. A mistaken rule can block services locally or, if SSH is omitted, lock you out.
Best use Broad perimeter filtering and a consistent policy across several instances. Per-host exceptions, local service restrictions, source-IP rules and emergency changes.

Because the layers are independent, a request normally has to pass both. That is useful defense in depth: an overly broad cloud rule does not automatically make every listening service reachable if UFW blocks it, and a temporary host-rule mistake does not necessarily expose the machine if the cloud policy still denies the traffic.

Why a host firewall still matters

It limits services that should not be public

Applications often open ports for administration, databases, monitoring, caches or internal APIs. A cloud rule may be written for the whole project or network, while UFW can express the policy for one server. You can allow a management port only from a known address, permit a service on a private interface, or deny a port on this host without changing every instance’s perimeter policy.

#1 Best Overall
Sale
Compressed Air Duster,130000RPM Super Power Cordless Air Duster,Rechargeable Brushless Blower,3 Gear Adjustable Blower with LED Light,Dust Remover for Computer/House/Outdoor/Car
  • Powerful Turbo Fan:CAGIWIRU Electric Air Duster have reached speed up to 130000RPM,Can efficient remove dust and debris.With LED light and Three Adjustable Speed to meet with different cleaning tasks.
  • With Attached USB C Fasting Charging cable.Charing 3 hours,Enjoy up to 240 minutes of use on the lowest setting, For third speed can use for 25mins.with four charging options to meet with your needs.
  • Wide Application:Upgraded attached 5 different nozzles,making it suitable for a variety of scenes, such as car,pet, pc, keyboards, and other electronic devices. It also serves for office and home clean duster.
  • Handy Design & Portable:Cordless air duster electric nozzle is Light weight and small size, design and comfortable to hold and space saving, convenient to carry around. You can put it in your room or inside the car without taking up space.
  • Warranty & Support: Our Electric air duster comes with 5 years warranty and 24/7 customer service. During this period, if you have any questions,pls kindly feel free to contact us.

It covers local network paths

Servers in the same provider network can often communicate over private addresses. If an application is intended to be reachable only by one front-end server, enforce that restriction on the destination host as well as in the provider configuration. Host rules provide a second check when an instance is moved, attached to another network, or affected by a cloud-rule change.

It gives you a fast, local control plane

Changing a UFW rule is useful during incident response or maintenance when you need to stop one service immediately. The change is local and does not depend on a cloud console session, account permission, or propagation delay. That convenience is also a reason to document and audit local rules: two administrators can otherwise create a policy that no longer matches the provider layer.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Ubuntu’s starting state is not a security policy

On Ubuntu Server, UFW is installed but initially disabled by default. Installation alone does not mean that filtering is active. The current Ubuntu documentation describes the incoming default as deny, but you should inspect the live configuration rather than assume a particular image or release has the same settings. An older community wiki page says ports are open by default; that conflicts with current documentation and should not be used as your configuration authority.

Before enabling UFW, set the defaults explicitly. If the incoming policy has been changed to allow, enabling the service can leave every listening port reachable unless individual deny rules happen to cover them.

sudo ufw default deny incoming
sudo ufw default allow outgoing

The second command permits outbound connections by default, which is a common VPS baseline for updates, DNS, package downloads and application calls. If your threat model requires outbound filtering, replace that broad policy with an explicit egress design; do not assume the command above is mandatory for every environment.

Safe UFW setup without losing SSH

Use the following order from an existing SSH session. Keep that session open until the final checks succeed, and have your provider’s web console or rescue environment available before making changes.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
EVEO® Screen Cleaner Spray Kit (Streak-Free) TV Screen Cleaner for Smart TV, Lcd, LEd, Oled | Computer Screen Cleaner Spray and Wipe Microfiber Cloth - TV, Monitor, Laptop, iPad, Car - 6.7oz 1 Pack
  • Screen Cleaner is Your Screen’s New Bestfriend! - EVEO is proud to present a screen cleaner that’s perfectly suited for your TV. Meet your new screen cleaner, computer screen cleaner, laptop cleaner, iPad cleaner, Macbook,tv cleaner or any other electronic device. Our screen cleaner spray and wipe along with the included plush microfiber cloth, easily removes dust, fingerprints & other smudges on the screen’s surface. Clean effectively for a streak-free screen
  • Gentle on your Screens - Our screen cleaner spray and wipes is compatible to be used even for the most sensitive LCD, LED, CRT, and OLED screens in proper use. Be at ease knowing that this product is compatible with all the major brands: LG, SONY, Samsung, Sharp, iPad, iPhone, Android screens, Kindle, PC monitors - we’ve got you covered! Can be used as LCD screen cleaner, tv cleaner, smart tv screen cleaner, and more
  • Premium Super Soft Plush Microfiber Cloth - Included in this efficient screen cleaning kit. This screen cleaner spray and wipe has our signature plush microfiber cloth specially designed to comply with screens and monitors and leave them streak-free. Has been shown to effectively absorbs stubborn stains, zero streaks, and no fiber shedding. Always use this together with our screen cleaner for the best results
  • Easy-to-Use Screen Cleaner Kit + microfiber cleaning cloth - The EVEO Screen Cleaning Kit will easily be your new favorite tool when it comes to taking care of the things you love most, quick and easy solution for a streak-free screen. Simply screw on the sprayer gun on the screen cleaner bottle. Spray the cleaning liquid onto the microfiber cloth, then wipe the screen until desired cleanliness & shine is achieved.
  • Quality Screen Care Kit Worth Purchasing - Enjoy a convenient Screen Cleaner anytime, anywhere you need it. Your satisfaction is our top priority. We stand behind the quality of our products and that’s why, you shouldn’t be worrying at all. We manufacture the Best Screen Cleaner. and can be used for laptop cleaning kit, laptop screen cleaner, tv screen cleaner for smart tv. MacBook screen cleaner, monitor cleaner or screen cleaner spray for electronic devices with microfiber cleaning cloth
  1. Confirm the active SSH port

    Check the SSH daemon configuration and your provider’s access instructions. The default is commonly port 22, but a hardened server may use another TCP port. Substitute the real port in every later command.

  2. Set explicit default policies

    sudo ufw default deny incoming
    sudo ufw default allow outgoing

    These commands define what happens to traffic that does not match an allow rule.

  3. Allow SSH before enabling

    For the standard service profile:

    sudo ufw allow OpenSSH

    For a custom port, use a numeric rule:

    sudo ufw allow <custom-ssh-port>/tcp

    Do not run sudo ufw enable first. Enabling without an SSH allow rule can terminate your only management path and force recovery through the provider console or rescue mode.

  4. Add only the public services you actually run

    A web server normally needs HTTP and HTTPS:

    sudo ufw allow 80/tcp
    sudo ufw allow 443/tcp

    Do not open database, cache, control-panel or monitoring ports to the entire Internet unless the service’s design requires it. Prefer a source-restricted rule when access is limited to an administrator or another server.

    Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  5. Enable the firewall

    sudo ufw enable

    Confirm the prompt only after checking that the SSH rule is present. UFW then loads the policy and starts its service according to the Ubuntu release’s service management.

  6. Verify the effective rules

    sudo ufw status verbose

    Check that the status is active, the incoming default is deny, the outgoing default is allow (if that is your design), and the expected SSH and application ports are listed.

    Rank #3
    BladeHawks RGB Gaming Mouse Pad Extra Large Extended 31.5x12 Inch-Black
    • 【Large size】:Measuring 800 x 300 mm/ 31. 5×12 inches, which is wider and taller than others. Large mouse pad can perfectly fit your keyboard and mouse of any size, and there is also ample space for peripherals such as phones, tablets, etc.
    • 【LED backlight mouse pad】:Blade Hawks RGB mouse pad provides 7 static modes and 7 dynamic modes will give you the options you are looking for. Power-off memory function remembers the last lighting mode you selected. The super glow fiber Chroma will give you a colorful gaming setup that you want.
    • 【Anti-slip rubber base】:Made from Natural rubber, this gaming mousepad will firmly grip your desktop, allowing you to enjoy the ultimate precision in the games you are most passionate about. It also comes with a texture that enhances this ability even further.
    • 【Smooth and waterproof surface】: Micro-textured cloth surface, for extremely precise mouse control and a smooth movement. When liquid splashes on the gaming mouse pad, it forms water droplets and slides down. Will not delay your work or gameplay.
    • 【Plug and play】: This mouse and keyboard pad is powered by USB, plug and play, no driver required. One button control light modes. Press one time to change the lighting mode, press twice to change the brightness, press and hold about 3 seconds turn ON/OFF.
  7. Mirror the intended allows in the cloud firewall

    Permit the same required ports in the provider’s firewall or security group. If the cloud layer denies a port, UFW cannot make it reachable; if the cloud layer allows a port that UFW denies, the host still blocks it. Keep the two policies documented together.

Useful rule patterns

Restrict administration to a known source

If SSH should be reachable only from one fixed public address, add a source-specific rule instead of allowing the port globally. Replace the example address and port with your values.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
sudo ufw allow from 203.0.113.10 to any port 22 proto tcp

If you already created a broad SSH rule, remove it after the restricted rule is confirmed, using the rule number shown by:

sudo ufw status numbered

Then delete the unwanted entry by number:

sudo ufw delete <rule-number>

Allow a private service only from another host

For an application that should accept connections from one internal server, specify that server’s private address and the service port. This keeps the rule narrower than an unrestricted port allow.

sudo ufw allow from 10.0.0.12 to any port 5432 proto tcp

The address and port above are examples; use the actual private address and service. Apply an equivalent restriction in the cloud firewall when its rule model supports source ranges.

Use profiles carefully

sudo ufw allow OpenSSH relies on the installed application profile. A numeric port rule is more explicit when SSH uses a nonstandard port or when a profile may not match the daemon’s configuration. Always inspect the resulting status instead of trusting the command’s name.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #4
Sale
Vaydeer Wrist Rest for Keyboard and Mouse, Computer Ergonomic Wrist Support Pad, Soft Memory Foam Arm Cushion for Desk, Palm Hand Office Laptop Typing
  • 【Softer and More Comfortable】Vaydeer wrist rest has unique diamond pattern, which is the combination of softness and aesthetics. The materials of wrist rest are improved into higher quality memory foam and covered with silky smooth lycra. The computer wrist rest makes you as comfortable and cushiony as like rest your wrists on clouds.
  • 【Ergonomic Wrist Saver】The wrist rests for keyboard and mouse comes with a 17.32×3.15×0.83 inch keyboard wrist pad and a 5.94×3.15×0.83 inch mouse wrist support. Based on ergonomic design, the unique concave shape is the perfect fit for your wrist joints. The wrist rest pad fits most computer keyboards and laptops, improve hand and wrist posture, release your wrist and arm stress.
  • 【Non-Slip Rubber Bottom】Featuring an anti-skid silicone base on the bottom, this wrist keyboard support stays firmly in place on your desk, preventing the padding from sliding around, ensuring stable and consistent wrist support during extended computer sessions.
  • 【Better Experience & Pain Relief】Our keyboard arm rest is beneficial to alleviate the soreness caused by direct contact and friction between your arm and a hard desk surface, reducing the risk of wrist fatigue or carpal tunnel. The soft texture of memory foam can evenly distribute the pressure around your wrists and provide good support with just enough give.
  • 【Helpful in Multiple Scenarios】Whether you're working, studying, writing, typing, gaming, this keyboard and mouse rest combo is an essential accessory to add comfort and support to your hands and wrists. It’s also a great gift for men, women, family, friend, coworker, gamer, teacher, etc.

How to coordinate the two layers

Start with the narrowest policy that supports the workload. At the cloud layer, allow only the ports that must enter the instance from the Internet or from designated private networks. At the host layer, repeat those required allows and add host-specific restrictions. A typical public web server therefore has TCP 80 and 443 open at both layers, SSH restricted at both layers where possible, and database ports allowed only from the application tier.

When troubleshooting, test each layer separately. A cloud deny produces a timeout before the packet reaches Ubuntu. A cloud allow followed by a UFW deny also commonly appears as a timeout, but the UFW status and system logs can reveal the local block. Conversely, a successful connection proves that both layers currently permit the traffic; it does not prove that an unrelated port is protected.

Record why each rule exists, its source range, the service owner and a review date. Remove temporary maintenance rules when the work ends. On a multi-server deployment, keep a simple matrix of public, private and administrative ports so that a cloud-console change does not silently diverge from the host policy.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Lockout recovery and common mistakes

You enabled UFW and SSH stopped working

Do not repeatedly retry from the same client. Open the provider’s out-of-band console, serial console or rescue environment and log in there. Inspect the policy:

sudo ufw status numbered

Add the correct SSH rule, then test a new SSH session before closing the console session:

sudo ufw allow OpenSSH
sudo ufw status verbose

If the server uses a custom port, add that numeric TCP rule instead. If no console or rescue path exists, contact the provider’s support channel; host-level firewall changes cannot be repaired over a connection that the firewall is blocking.

Best Value
Sale
Under Desk Cable Management Tray No Drill, Metal Mesh Cable Management Under Desk with Clamp Mount, 2 Hole Cable Tray with Wire Management and Cord Organizer for Home Office Standing Desk
  • 【No Drill Mounted】Cable management tray can be assembled in as little as 3 minutes or less-simply. Side clips easily clampe the edge of desk, pass through the holes on the sides, and secure excess cables with baskets. Desk cable management supports inward or outward installation to meet your needs in different scenarios, and provides you with great convenience when collecting and organizing wires.
  • 【Rubber Pad Protects Desk】Wire organizer under desk built-in soft rubber pads on the clamp protect your desk from scratches, so you will not damage your furniture or office.
  • 【Sturdy and Beautiful】Cord management under desk is made of high-quality carbon steel and holds about 15 lbs. The wire basket has 2 holes on each side of the tray to enable your cables to pass freely. Cable baskets are suitable for desk thickness use from 0.4" to 2.4".
  • 【Space Saving & Keep Organized】Desk cable management tray holds all your power cords, outlet strips, USB hubs and computer transformers hidden from your feet, and the data cables will not enter the vacuum cleaner to keep your desk clean and tidy. Desk wire organizer is also suitable for use in the kitchen and outdoors.
  • 【Reduce Safety Risks】Cable tray under desk keeps all plugs away from your kids, no more worry about tripping. Using 2 holes wire tray saves extra space, helps you easily cabling and wire protection. The mesh design is not easy to accumulate dust, but avoids safety accidents caused by messy wires.

The cloud firewall allows a port but the service is unreachable

  • Confirm the service is listening on the expected address and port.
  • Check that UFW is active and has an allow rule for the same protocol and port.
  • Verify that the application is bound to an interface reachable from the client, not only to loopback.
  • Check routing, the provider’s network policy and the client’s own firewall.

You opened a port but it is still inaccessible

Both layers must allow the traffic. Add the rule in the provider firewall as well as UFW, and confirm that the provider rule applies to this instance, region, network interface or security-group attachment. A rule created for another project or network has no effect on this VPS.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

You changed the SSH port

Changing the daemon’s port and changing UFW are separate operations. Add the new UFW rule and test it from a second session before removing the old rule. Keep the old rule temporarily only if policy permits it, then delete it after migration.

Docker, IPv6 and other edge cases

Container-published ports

Container runtimes can install packet-filter rules when publishing a port. That processing may cause traffic to a published container port to take a path different from the simple UFW rule you expect. Treat every published port as a separate exposure review: check the runtime’s networking documentation, inspect the effective host rules, and test from an external network. Do not assume that an absent UFW allow automatically means a published container port is unreachable.

IPv6

If the VPS has IPv6 connectivity, verify that UFW’s IPv6 handling is enabled and that your rules cover both address families. Testing only an IPv4 address can leave an IPv6 listener exposed or can make a service appear broken for IPv6 clients. Confirm the setting on the target Ubuntu release and test with an IPv6 client when the address is publicly routed.

Rule order and broad allows

A broad allow for a port can defeat the intent of a later source restriction. Review numbered rules after every change, remove obsolete entries and avoid copying rules from a different server without checking interfaces, addresses and ports.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

When might you omit UFW?

Some tightly managed images use another host firewall, an orchestration policy or a security agent that owns the packet-filter configuration. In that case, the answer is not to run two competing managers; document which component is authoritative and verify that it enforces the required host-level policy. For a normal Ubuntu VPS with no equivalent host control, relying only on the provider firewall leaves you without local filtering and makes the instance’s protection depend entirely on cloud configuration.

Likewise, installing UFW is not a substitute for patching, SSH key hygiene, least-privilege accounts, service authentication, backups or application-level access controls. A firewall reduces reachable attack surface; it does not make an exposed service safe by itself.

A practical maintenance checklist

  • Keep UFW enabled unless another documented host firewall is authoritative.
  • Set and periodically verify explicit incoming and outgoing defaults.
  • Allow SSH before enabling or changing the policy, and retain an out-of-band recovery path.
  • Open only required ports; restrict administration and private services by source where feasible.
  • Keep cloud-firewall and UFW rules aligned and record the reason for each exception.
  • Review container-published ports and IPv6 behavior after software, image or network changes.
  • After every firewall change, verify with sudo ufw status verbose and test from the network locations that should be allowed and denied.

Bottom line

A provider firewall is valuable perimeter protection, but it does not replace a host firewall. On a conventional Ubuntu VPS, enable UFW, set an explicit deny-incoming policy, allow your real SSH port first, add only the services you need, verify the active rules, and mirror the required allows in the cloud firewall. The combination gives you upstream filtering plus per-host control without requiring either layer to carry the entire security burden.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.