Server rental store

Firewall configuration

# Firewall Configuration

This article details the necessary firewall configuration for a secure MediaWiki 1.40 installation. Properly configuring your firewall is critical for protecting your wiki from unauthorized access and malicious attacks. This guide assumes a basic understanding of networking and firewall concepts. We will cover essential ports, recommended rules, and common firewall software options.

== Understanding the Need for a Firewall

A firewall acts as a barrier between your MediaWiki server and the outside world. It examines incoming and outgoing network traffic based on predefined rules. By blocking unwanted traffic, a firewall significantly reduces the risk of security breaches. Without a properly configured firewall, your wiki is vulnerable to attacks such as SQL injection, cross-site scripting (XSS), and denial-of-service (DoS) attacks. It’s also essential for compliance with many security standards. Consider using a Web Application Firewall (WAF) for more advanced protection.

== Essential Ports

MediaWiki relies on several network ports for proper operation. These ports must be open in your firewall to allow legitimate traffic. Here’s a breakdown of the essential ports:

Port Protocol Description
80 TCP HTTP - Standard web traffic. Required if not using HTTPS.
443 TCP HTTPS - Secure web traffic. Highly recommended for all wikis. Requires a SSL certificate.
22 TCP SSH - Secure Shell. Used for remote server administration. Restrict access to trusted IPs.
3306 TCP MySQL/MariaDB - Database server port. Only accessible from the MediaWiki server itself.
53 UDP/TCP DNS - Domain Name System. Required for name resolution.

⚠️ *Note: All benchmark scores are approximate and may vary based on configuration. Server availability subject to stock.* ⚠️