Teksolvr
Back to Home

Network Port: 3306

Network Port Reference Guide

Registered Service Name

MySQL Database

Transport Protocol

TCP

Functional Overview

Port 3306 is the standard default port for MySQL and MariaDB database server connections.

Security Risks & Vulnerabilities

Critical asset target. Exploitation of MySQL authentication bypasses or vulnerabilities can result in total data leaks. Bind MySQL to localhost (127.0.0.1) or lock down firewall routing.

How to audit network port status

1. Scan Open Ports: Use our Port Scanner utility to verify if this port is actively listening on your host.

2. Verify Encryption: Audit the service layer to confirm SSL/TLS is protecting transmission payload.

3. Hardening Rules: Apply the firewall instructions below to shut down unauthorized inbound ports.

UFW Firewall Rules

Allow Command

sudo ufw allow 3306/tcp

Block Command

sudo ufw deny 3306/tcp

iptables Firewall Rules

Allow Command

sudo iptables -A INPUT -p tcp --dport 3306 -s 192.168.1.0/24 -j ACCEPT

Block Command

sudo iptables -A INPUT -p tcp --dport 3306 -j DROP