Infrastructure 101

Open Ports

Ports are the "Digital Entry Points" to your server. Every open port is a door—make sure you only leave the right ones unlocked.

Scan My Ports

Check for exposed service ports instantly

01 The Digital Receptionist

Your server has one IP address, but it can do many things at once—serve a website, receive emails, or allow you to upload files. Ports are like Extension Numbers in a large office. If you want the website, you call extension 443. If you want to send mail, you call extension 25.

02 The "House Windows" Analogy

Think of your server as a house with 65,535 possible windows (ports).

Safe Ports (80/443)
The front door where guests enter to see your website.

Risk Ports (22/3306)
The side windows to your office or basement. They should be locked for everyone but you.

Hackers use "Port Scanners" to walk around your digital house and see which windows were accidentally left open.

03 Common Ports You Should Know

Here are the most common ports encountered during a security audit:

Port 443

HTTPS (Secure)

The gold standard for websites. This port must be open for your site to work.

Port 22

SSH (Access)

Used for remote administration. If open to the public, hackers will try to "Brute Force" your password.

Port 3306

MySQL (Database)

Should never be open to the public. Hackers can use it to steal your user data directly.

04 The Risk of "Shadow" Services

Sometimes, developers install software (like a printer server or a database UI) that opens a port without them realizing it. These unmanaged services often have old security bugs that give hackers a backdoor into your entire server.

Rule of Thumb: If you don't know why a port is open, close it. It's better to break a small feature than to lose your entire server.

05 How to secure your ports

Securing your ports is done using a Firewall (like UFW on Linux or AWS Security Groups).

1. Block Everything by Default

Your firewall should be set to "Deny All" incoming traffic. You then explicitly "Allow" only the ports you need.

2. Move SSH to a custom port

Changing your SSH port from 22 to something random (like 4829) can stop 99% of automated bot attacks.

3. Use a VPN or IP Whitelist

If you need access to a database or SSH, configure your firewall to ONLY allow your specific IP address to connect.

Is your basement door open? Run a quick scan on the homepage to see which common ports your server is exposing to the public.

06 Frequently Asked Questions

Is port 80 always dangerous?

Port 80 is for standard HTTP traffic. It's not 'dangerous' by itself, but it's unencrypted. Most modern sites use it only to redirect users to the secure Port 443 (HTTPS).

Should I close Port 22 (SSH)?

You shouldn't necessarily close it, but you should restrict it. Only your IP address should be allowed to access it. Leaving it open to the whole world allows hackers to try and guess your password (Brute Force).

How do I see which ports are open?

You can use tools like Nmap or run a scan right here on LamaniSecure. We'll check for the most common 'dangerous' ports for you.

What is a 'Stealth' port?

A stealth port is one that doesn't even acknowledge a connection request. To a hacker, it looks like the computer at that address doesn't even exist.

Lock Your Digital Doors

Only keep the services open that your users actually need.

Run a Port Audit