ufw allow from 10.0.0.5 to any port 3306

Category: Security & Hardening

ufw allow from 10.0.0.5 to any port 3306

Allow one host to reach a specific port

Lets the single IP 10.0.0.5 connect to MySQL's port 3306 while everyone else is blocked by the default policy. This is the classic pattern for database access from an app server. Check the result with ufw status verbose.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.