How to configure MikroTik for a small business: a secure baseline step by step
Update RouterOS, replace the admin user, close management services, set up the firewall and a guest network — with ready-to-use commands.
Read articlePersonal admin accounts, trusted hosts, no management on WAN, lockout and firmware updates — the first settings for any FortiGate.
A firewall protects the network, but it is also a target: several FortiOS vulnerabilities have been exploited in recent years, most often on devices whose management interface was reachable from the internet. These settings close the most common gaps.
192.168.1.0/24 and the internet port wan1. Make a configuration backup first and keep a console cable or local access in case you lock yourself out.Create named administrators with long unique passwords and trusted hosts — they can only log in from the listed networks. Then delete the default admin account. Enable two-factor authentication (FortiToken) for administrators where possible.
config system admin
edit "netadmin"
set accprofile "super_admin"
set password "Long-Unique-Password"
set trusthost1 192.168.1.0 255.255.255.0
next
end
# log in as netadmin, then remove the default account:
config system admin
delete "admin"
endRemove HTTPS, SSH and other management protocols from WAN interfaces. Manage the firewall only from the office network or through VPN.
config system interface
edit "wan1"
set allowaccess ping
next
endLock out an address after repeated failed logins. If you do not use FortiCloud single sign-on for administrators, turn it off — it was the entry point of CVE-2026-24858.
config system global
set admin-lockout-threshold 3
set admin-lockout-duration 900
set admin-forticloud-sso-login disable
endCheck System → Firmware regularly and follow Fortinet PSIRT advisories. Use the recommended upgrade path between major versions, and update during a maintenance window. Treat critical SSL VPN and management flaws as emergencies.
Save the configuration after every change and keep copies off the device. Send logs to FortiAnalyzer or a syslog server so they survive a compromise.
execute backup config tftp fgt-backup.conf 192.168.1.10The firewall must be the best-protected device in the network — not the one nobody has logged into for a year.
Need help with this? Contact CySec for a free consultation.
Update RouterOS, replace the admin user, close management services, set up the firewall and a guest network — with ready-to-use commands.
Read articleGive staff secure access to office files and 1C from home — without opening RDP or Winbox to the internet.
Read articleA practical checklist with commands: personal admin account, SSH keys, firewall, automatic security updates and fail2ban.
Read articleOur engineers can review your current setup and propose concrete improvements.