Skip to content
statance
MenuClose
← All ports

Port 8291: MikroTik Winbox

High risk

Port 8291 is Winbox, the management protocol used by MikroTik’s Winbox application to configure RouterOS devices. It should not be reachable from the public internet.

Port
8291
Protocol
TCP
Service
MikroTik Winbox
Expose to internet?
No

Is port 8291 safe to open?

Winbox gives full control of the router. A 2018 Winbox vulnerability let attackers read the user database without logging in, and huge numbers of unpatched MikroTik routers were taken over and used in botnets. Management services on a router should not face the internet.

How to secure MikroTik Winbox

  • Restrict Winbox to management addresses: /ip service set winbox address=192.168.88.0/24.
  • Disable unused services: /ip service disable telnet,ftp,www,api.
  • Keep RouterOS updated and change the default admin user.
  • Use a VPN (WireGuard is built into RouterOS 7) for remote management.

Check if port 8291 is open

Linux: what is listening on this port

sudo ss -tlpn | grep ':8291 '

Windows (PowerShell): what is listening

Get-NetTCPConnection -LocalPort 8291 -State Listen | Select-Object LocalAddress, OwningProcess, @{n='Process';e={(Get-Process -Id $_.OwningProcess).Name}}

From another machine: is it reachable

nc -zv HOST 8291 # or nmap -p 8291 HOST # Windows Test-NetConnection HOST -Port 8291

Restrict port 8291 in the firewall

Replace 10.0.0.0/8 with the network or address that needs access. Docker publishes container ports through its own iptables rules, which bypass ufw; bind published ports to 127.0.0.1 (-p 127.0.0.1:8291:8291) instead of relying on the host firewall.

ufw: allow only your private network, deny everyone else

sudo ufw allow from 10.0.0.0/8 to any port 8291 proto tcp sudo ufw deny 8291/tcp

firewalld: allow one source network only

sudo firewall-cmd --permanent --remove-port=8291/tcp sudo firewall-cmd --permanent --add-rich-rule='rule family="ipv4" source address="10.0.0.0/8" port port="8291" protocol="tcp" accept' sudo firewall-cmd --reload

iptables

sudo iptables -A INPUT -p tcp --dport 8291 -s 10.0.0.0/8 -j ACCEPT sudo iptables -A INPUT -p tcp --dport 8291 -j DROP

Windows Firewall (PowerShell, as Administrator)

New-NetFirewallRule -DisplayName "Block 8291 from internet" -Direction Inbound -Protocol TCP -LocalPort 8291 -RemoteAddress Internet -Action Block

Monitor port 8291

Run a TCP port monitor against your public IP on port 8291: here, a failed connection is the healthy result, so you know the firewall is still doing its job. On Linux, the Statance agent also reports every listening port on the server. TCP port monitoring.

Related ports

Port 22SSHMedium risk
Port 23TelnetCritical risk
Port 51820WireGuardLow risk

FAQ

What is port 8291 used for?

Port 8291 is Winbox, the management protocol used by MikroTik’s Winbox application to configure RouterOS devices.

Is it safe to open port 8291?

Not to the public internet. Winbox gives full control of the router. A 2018 Winbox vulnerability let attackers read the user database without logging in, and huge numbers of unpatched MikroTik routers were taken over and used in botnets. Management services on a router should not face the internet.

Is port 8291 TCP or UDP?

MikroTik Winbox uses TCP on port 8291.

How do I check if port 8291 is open?

On the server, run sudo ss -tulpn | grep ':8291 ' (Linux) or Get-NetTCPConnection -LocalPort 8291 (Windows) to see what is listening. From another machine, run nc -zv HOST 8291 or Test-NetConnection HOST -Port 8291.

All ports →

Know the moment a port stops answering.

TCP, HTTP, DNS and SSL checks from six regions, plus server metrics from a one-line agent.