Guides tagged “firewall”
Step-by-step MdmHost guides about firewall, sorted A-Z.
91 guides · page 4 of 5
Port forwarding and masquerading with firewalld
Forward a port to another local port or to a different host with firewalld, enable masquerading so replies find their way back, then test and make the rules permanent.
Port forwarding and NAT with UFW before.rules
Forward a public port on your VPS to a backend server or VPN client with UFW. Turn on IP forwarding, add a nat table to before.rules, allow routed traffic and test from outside.
Port open in the firewall but still unreachable: how to fix it
You allowed a port in the firewall but connections still fail. Work through each layer, from the listening address to the server and client networks, to find the real block.
Ports, protocols and TCP vs UDP explained
How ports and protocols let one server run many services, the real difference between TCP and UDP, and which one common services use.
Protect SSH from brute-force attacks with Fail2ban
Install Fail2ban, create a safe jail.local for SSH, check which addresses are banned and unban yourself if you mistype a password too often.
Protect your website with Cloudflare WAF custom rules
Use Cloudflare WAF custom rules to block bad countries, bots and attack paths, challenge visitors to wp-login.php, and allow your own IP, before traffic reaches your hosting.
Put Remote Desktop behind a WireGuard VPN
Install WireGuard on your Windows server, connect your own computer as a client, then limit the RDP port 3389 rule to the VPN subnet so only VPN users can reach the login screen.
Rate-limit SSH and other ports with ufw limit
Use ufw limit to slow down SSH brute-force attempts. Learn how the 6-connections-in-30-seconds rule works, apply it to a custom SSH port, pair it with Fail2ban and test it.
RDP over UDP vs TCP: check and choose the transport
Remote Desktop can carry your session over TCP, UDP or both. Learn how each is used, how to see which one your session runs on, and how to force TCP when UDP misbehaves.
Read and tune UFW firewall logs
Turn on UFW logging at the right level, find [UFW BLOCK] lines in the journal or ufw.log, read the SRC, DPT and PROTO fields and keep log volume under control.
Read the Imunify360 Incidents log to understand attacks (root guide)
Use the Imunify360 Incidents tab and CLI as root to see brute-force attempts, WAF hits and blocked IPs, spot patterns, and decide when to whitelist, block or tune rules.
Restrict outgoing traffic with UFW egress rules
Switch UFW to deny outgoing traffic by default, then allow only DNS, NTP, HTTPS and package mirrors. Block outbound SMTP and avoid breaking system updates along the way.
Secure Remote Desktop on Windows Server
Stop password-guessing on Remote Desktop with strong passwords, Network Level Authentication, a lockout policy and firewall rules limited to your IP.
Set up a UFW firewall on Ubuntu and Debian
Set safe defaults, allow SSH before switching UFW on, open only the ports you use, limit sensitive ports to your own IP, and tidy up old rules.
Set up a UFW firewall on Ubuntu and Debian
Enable UFW without locking yourself out, allow SSH and web ports, restrict services to specific IPs, rate-limit SSH and understand how Docker bypasses UFW.
Set up the Proxmox VE firewall for the host and VMs
Enable the built-in Proxmox firewall safely: allow the web UI and SSH first, then add datacenter, node and per-VM rules, security groups and IP sets.
Stop Docker from bypassing your UFW firewall
Docker-published ports skip UFW rules and stay open to the internet. Learn why it happens, how to bind ports to 127.0.0.1, how to filter with the DOCKER-USER chain and how to test from outside.
Switch from CSF to the Imunify360 firewall (root guide)
Move a cPanel server from CSF/LFD to the Imunify360 firewall as root: plan the switch, migrate allow and deny lists, open the right ports and verify nothing is locked out.
TCP vs UDP explained for server owners
TCP sets up a connection and guarantees delivery; UDP sends independent datagrams with no handshake. Learn the difference, which services use each and why firewall rules must name the protocol.
Test firewall changes safely with an automatic rollback
Schedule an automatic undo before you change firewall rules. If a mistake blocks SSH, the old rules come back by themselves a few minutes later.
Browse by topic
- Getting startedYour first hour with a new server: access, logins and basics.83 guides
- cPanelFiles, databases, email, domains and every cPanel tool, step by step.67 guides
- WHM & resellingWHM, packages, reseller accounts, WHMReseller and running a hosting brand.53 guides
- WordPressInstall, secure, speed up, migrate and fix WordPress sites.49 guides
- Email & webmailMailboxes, webmail, forwarders, spam filters and email delivery.67 guides
- DomainsRegistering, transferring and managing domains and nameservers.27 guides
- SSL certificatesFree AutoSSL, Let's Encrypt, paid certificates and HTTPS.41 guides
- CloudLinuxCloudLinux setup and use: LVE limits, CloudLinux Manager, CageFS and PHP/Node.js selectors.31 guides
- LiteSpeedLiteSpeed Web Server, LSCache and the LiteSpeed Cache plugin: install, settings and tuning.35 guides
- Imunify360Malware scanning, firewall and proactive defence with Imunify360.24 guides
- SoftaculousInstall, update, clone and back up apps with Softaculous.24 guides
- WP SquaredcPanel's WordPress platform: sites, plugins, staging and backups.9 guides
- SitePadBuild and publish websites with the SitePad builder.9 guides
- SitejetDesign, edit and publish sites with the Sitejet builder.9 guides
- WHMResellerAlpha and master resellers with WHMReseller: install, setup and use.12 guides
- VirtFusionInstall, set up and manage VirtFusion: hypervisors, packages, servers and WHMCS integration.28 guides
- VirtualizorManage your VPS with Virtualizor: power, OS reinstall, VNC, IPs and backups.44 guides
- PleskWebsites, email, databases and settings in the Plesk panel.53 guides
- DirectAdminUsers, domains, email and reseller tools in DirectAdmin.41 guides
- WHMCSBilling, automation, products and client management with WHMCS.52 guides
- Control panelscPanel & WHM, Plesk, DirectAdmin and other panels on your VPS.107 guides
- SecurityKeys, passwords, firewalls and keeping a server patched.138 guides
- Networking & DNSIP addresses, reverse DNS, ports and traffic.72 guides
- Websites & appsWeb servers, WordPress, PHP, Node.js, SSL and app hosting.83 guides
- DatabasesMySQL, MariaDB, PostgreSQL, Redis and MongoDB on a VPS.80 guides
- Billing & accountInvoices, renewals, the client area and your account.9 guides
- TroubleshootingWhen something is not working: checks and fixes.127 guides
- Linux VPSSSH, packages, services and everyday Linux administration.265 guides
- Windows VPS & RDPRemote Desktop, Windows Server settings and Admin RDP tips.73 guides
- Docker & DevOpsContainers, Git deploys, automation, monitoring and backups.82 guides
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.
