Securing a wireless network is a top priority for any administrator, whether a home user or an IT professional. MikroTik By default, systems often come with an open interface or basic settings that require immediate intervention to secure the perimeter. Ignoring this step exposes local resources to unauthorized access, which can lead to data theft or the use of your network for illegal activities.
The procedure for setting a password on Wi-Fi connection The RouterOS operating system isn't complicated, but it does require attention to configuration details. Unlike consumer routers, there's no single "protect network" button, as the system's flexibility requires manual configuration of security profiles. You'll be working with the interface. Wireless, where encryption and user authentication parameters are defined.
In this article, we'll detail the steps for creating a secure access key using both graphical utilities and the command line. We'll cover the settings. WPA2-PSK, which are currently the de facto standard for most home and office networks. Proper configuration of these parameters ensures that your network remains inaccessible to unauthorized clients.
Preparing to set up security
Before making any changes to the wireless interface configuration, ensure you have physical or wired access to the device. Connect your computer to any LAN port on the router. MikroTik Using an Ethernet cable to avoid connection interruptions while applying new security rules. If you try to change Wi-Fi settings while connected to a wireless network, you'll lose connection to the router immediately after the settings are applied.
To manage the equipment, the utility is most often used WinBox, which provides full access to all RouterOS functions. You can also use the web interface by navigating to the gateway's IP address in a browser, but WinBox is considered a more stable tool for in-depth configuration. Make sure you have an administrator login and password, as without superuser rights, changing security profiles will be impossible.
It is recommended to determine in advance the type of encryption that your client devices will support. Although modern standards offer WPA3Many older devices may not support it, so the universal choice remains AES and WPA2. Check the list of connected devices to understand which security protocols are required for your infrastructure.
⚠️ Important: If you are configuring a remote router, be sure to save the current configuration to a backup file before making any changes in the Wireless section.
Control interfaces may differ depending on the version of the firmware installed. RouterOSIn new versions (v7 and higher), the menu structure has been significantly redesigned compared to the classic v6. Always consult the manufacturer's official documentation if the default menu paths do not match those described in the instructions.
Configuration via the WinBox utility
Run the program WinBox and connect to your device by entering the MAC address or IP address, as well as the administrator credentials. After successful authorization, find the section in the main menu on the left WirelessThis is where all the tools for managing the radio module are concentrated, including creating access points and configuring security profiles.
In the window that opens, double-click on the name of your wireless interface (usually it is wlan1 or wifi1). Go to the tab Wireless and make sure that the operating mode (Mode) is set to the value ap bridge, which means the device is working as an access point. Below, in the field Band, select the frequency range that matches your equipment. Then click the button Security Profile or go to the tab of the same name in the interface settings window.
In the security settings section, you need to activate the profile. Make sure the profile is selected in the drop-down list. default or create a new one. This profile contains key parameters: Authentication Types And EncryptionFor maximum compatibility and security, please select wpa2 psk in authentication types and aes ccm in encryption methods. In the field WPA Pre-Shared Key Enter your new complex password.
After entering all the parameters, click the button OK to save the profile, and then again OK in the interface settings window. The changes are applied immediately, and the wireless network will restart with the new settings. Now any device attempting to connect will request the key you entered.
☑️ Check WinBox settings
Configuration via web interface
If using specialized software isn't possible, you can configure it through a browser. Open any modern browser and enter your router's IP address in the address bar. MikroTikAfter entering your login and password, you will be taken to the interface. WebFig (in older versions) or QuickSetFor detailed configuration, it's best to avoid the simplified QuickSet wizard and go to the full menu.
Find the menu on the left side of the screen Wireless and select the desired interface. The web version's interface may look slightly different, but the logic remains the same. Go to the tab Security Or find the "Edit Security Profile" button. Here, you'll fill in the same fields as in the desktop version: select a security protocol and create a key.
Pay special attention to the field WPA Pre-Shared KeyWhen entering a password through a web interface, a "show characters" feature is often available, allowing you to visually check the entered combination for typos. Use a combination of uppercase and lowercase letters, numbers, and special characters to increase the password's resistance to brute-force attacks.
Don't forget to press the button Apply or OK at the bottom of the page to save the changes. The web interface may require a page refresh to display the current connection status of clients. If the devices no longer see the network after applying the settings, check whether the channel or channel width has been changed in the main wireless module settings.
⚠️ Note: When configuring via the web interface, the session may be interrupted when applying Wi-Fi settings if you are connected wirelessly. Always use a cable.
Creating and editing security profiles
In the system RouterOS There's a flexible profile system that allows you to apply different security settings to different virtual access points. You can create a separate profile for guests with limited access and another profile for office employees. To create a new profile, go to the menu Wireless -> Security Profiles and click on the plus +.
In the window that opens, give the profile a descriptive name, for example, office-secure. In the section Mode Select dynamic keys if you're using an external RADIUS server, or static keys for local authentication. For most use cases, simply checking the box is sufficient. static keys 1 and enter the password in the appropriate field, although using WPA2 PSK in the main profile is a more modern standard.
An important parameter is Group Key Update, which determines the group encryption key refresh interval. By default, it is 1 hour (3600 seconds), which is a reasonable balance between security and network overhead. Reducing this value improves security but may increase the load on the router's processor and client devices.
| Parameter | Recommended value | Description |
|---|---|---|
| Authentication Types | wpa2 psk | An authentication type that provides strong encryption |
| Encryption | aes ccm | A data encryption algorithm that is resistant to hacking |
| Group Key Update | 1h (3600s) | Group encryption key lifetime |
| WPA Pre-Shared Key | Complex password | Access key length from 8 to 63 characters |
Once you've created a profile, you need to assign it to a specific wireless interface. Return to the interface settings. wlan1 and in the field Security Profile Select the profile you created from the list. This action will associate the physical radio module with the specified security rules.
What is WPS and should I enable it?
WPS (Wi-Fi Protected Setup) allows you to connect to a network by pressing a button or using a PIN code. However, this protocol has known vulnerabilities that allow attackers to recover the PIN code and gain access to the network. It is recommended to keep WPS disabled on MikroTik routers for maximum security.
Additional network security measures
Setting a password is only the first step. To create a truly secure infrastructure, it is recommended to implement additional restrictions. One effective method is Hide SSID (Hide network name). When this option is enabled, the router stops broadcasting the network name, and users will have to enter the network name manually when connecting.
Another powerful tool is Access ListIn this section, you can create rules that allow connections only to specific devices based on their MAC addresses. Even if an attacker learns the password, they won't be able to connect unless their device is whitelisted. This creates two-factor protection: knowledge of the password and the presence of an authorized hardware address.
It is also worth paying attention to the transmitter power. Setting the power too high (tx-power) may result in the signal being picked up outside the monitored area, for example, in a parking lot or a neighboring building. Reducing the power to an optimal level sufficient for indoor coverage reduces the radius of a potential attack.
Don't forget to update your firmware regularly. RouterOSDevelopers are constantly patching vulnerabilities that could allow Wi-Fi security to be bypassed. You can check for updates in the section System -> Packages -> Check for Updates.
Solving common connection problems
After setup, users may experience connection difficulties. Often, the problem lies in incompatible encryption standards. If you only selected WPA3, older laptops and phones simply won't see the network. In such cases, you should select mixed compatibility mode in the security profile or leave it wpa2 psk.
Another common error is entering the password incorrectly. System MikroTik The password is case-sensitive. Make sure Caps Lock is disabled on the client device and the correct keyboard layout is selected. Passwords containing special characters may sometimes be processed incorrectly by some operating systems if they contain rare characters.
If the device reports "Unable to connect" or is endlessly trying to obtain an IP address, check your DHCP server settings. Make sure the address pool isn't exhausted and the server is running on the appropriate interface (the Bridge interface to which the WLAN is bound). A missing IP address will create the illusion of an incorrect password, although the problem lies with the network infrastructure.
⚠️ Important: After changing the encryption type or password, you must "forget the network" on the client device and reconnect, otherwise conflicts with saved profiles may occur.
FAQ: Frequently Asked Questions
How do I reset my Wi-Fi password if I forgot it?
If you have lost access to the settings, you will have to reset the router configuration. MikroTik to factory settings. To do this, with the power on, press and hold the button Reset on the device body until the indicator starts flashing ACT (usually 10-15 seconds). After this, the router will revert to the factory passwords indicated on the sticker at the bottom.
Is it possible to set different passwords for 2.4 GHz and 5 GHz?
Yes, it is possible. Since the 2.4 GHz and 5 GHz frequency ranges are MikroTik are presented as separate interfaces (e.g., wlan1 And wlan2), you can assign each of them its own unique security profile with a different password.
What is the minimum password length for WPA2?
The WPA2 standard requires a password (Pre-Shared Key) to contain between 8 and 63 characters. The system will not allow passwords shorter than 8 characters, and passwords longer than 63 characters will be truncated or rejected upon entry.
Does a complex password affect internet speed?
No, password complexity and encryption key length do not affect data transfer speed. Processors MikroTik hardware accelerates AES encryption, so using strong passwords does not create any noticeable load on the channel or device.
What should I do if the internet connection disappears after setup?
Check that your computer's antivirus or firewall isn't blocking the new connection. Also, make sure the DHCP client on the WAN (Internet) interface is enabled in the DHCP settings and is receiving an address from the ISP. Sometimes changing Wi-Fi settings requires restarting the DHCP client on the ISP connection port.