2026-07-17 09:08:16 +08:00
# MikroTik RouterOS Patch
[](https://github.com/elseif/MikroTikPatch/actions/workflows/main.yml)

2026-07-17 09:01:41 +08:00
[](./LICENSE)
[](./CODE_OF_CONDUCT.md)
2026-07-15 09:43:32 +08:00
2026-07-21 09:29:18 +08:00
**English** | [中文 ](./README_CN.md )
2025-08-13 19:14:57 +08:00
2026-07-21 09:29:18 +08:00
> ## ⚠️ Important Notice
2026-07-21 09:16:27 +08:00
>
2026-07-21 09:29:18 +08:00
> **This project and its tools are for testing purposes only. Use at your own risk. Please use the officially licensed version for production environments.**
## 🏗️ Architecture Support
### x86 / arm64 (This Project)
- **Homepage:** https://mikrotik.ltd/
- **Demo:** https://demo.mikrotik.ltd/
- **License: Installing `option.npk` will automatically grant the highest-level license.**
- **License Bot** https://t.me/ROS_Keygen_Bot
2026-07-21 09:38:40 +08:00
- **Docker: ** `docker run -d --privileged --name chr ghcr.io/elseif/chr:latest`
2024-06-15 07:18:14 +08:00
2026-07-21 09:16:27 +08:00
### arm64, arm, mipsbe, mmips, ppc, smips, x86
2026-07-21 09:29:18 +08:00
- **Homepage:** https://routeros.ltd/
- **Licensing:** Sponsorship required. *CHR versions (x86/Arm64) support online direct licensing.*
- **Features:** Supports online custom branded package creation.
---
2026-07-18 16:51:07 +08:00
2026-07-21 09:29:18 +08:00
## 🔧 Feature Guide
All features below require the `option.npk` package to be installed first.
### 1. Enable Container Mode (No Physical Reboot Required)
2026-07-21 09:16:27 +08:00
```bash
2026-07-21 09:29:18 +08:00
# Step 1: Enable container mode
2026-07-21 09:16:27 +08:00
/system/device-mode/update container=yes
2026-07-21 09:29:18 +08:00
# Step 2: Force reboot (execute in a new terminal)
2026-07-21 09:16:27 +08:00
/system/shell cmd="reboot -f"
```
2026-07-21 09:29:18 +08:00
### 2. Shell Access
#### A. Via Terminal
2026-07-21 09:16:27 +08:00
```bash
/system/shell
2026-07-21 09:29:18 +08:00
# or shorthand
2026-07-21 09:16:27 +08:00
/sh
```
2026-07-21 09:29:18 +08:00
#### B. Via SSH / Telnet
2026-07-21 09:16:27 +08:00
```bash
2026-07-21 09:29:18 +08:00
# Username: devel
# Password: Same as the admin password
2026-07-21 09:16:27 +08:00
ssh devel@< router-ip >
```
2026-07-21 09:29:18 +08:00
### 3. x86 Architecture: CHR ↔ x86 Mode Switch
2026-07-18 16:51:07 +08:00
2026-07-21 09:16:27 +08:00
```bash
2026-07-21 09:29:18 +08:00
# Execute after entering shell
keygen chr # Switch to CHR mode
keygen x86 # Switch to x86 mode
2026-07-21 09:16:27 +08:00
```
2026-07-21 09:29:18 +08:00
### 4. Boot Auto-Run Script
2026-07-18 17:00:15 +08:00
2026-07-21 09:29:18 +08:00
1. Create or edit the `/rw/disk/rc.local` file.
2. Write your script content, for example:
2026-07-18 16:51:07 +08:00
```bash
#!/bin/sh
# This script will be executed *before* RouterOS *loader* start.
# You can put your own initialization stuff in here
echo "Hello, world!"
```
2026-07-21 09:29:18 +08:00
3. You will see the output during boot: `Starting rc.local...`
4. After boot, check the output:
2026-07-17 09:01:41 +08:00
2026-07-21 09:16:27 +08:00
```bash
2026-07-21 09:29:18 +08:00
# Enter shell
2026-07-21 09:16:27 +08:00
cat /ram/startup.catlog | grep 'Hello'
```
2026-07-17 09:01:41 +08:00
2026-07-21 09:16:27 +08:00
---
2026-07-21 09:29:18 +08:00
## ☁️ Cloud Services
2026-07-21 09:16:27 +08:00
2026-07-21 09:29:18 +08:00
| Feature | Command |
2026-07-21 09:16:27 +08:00
|------|------|
2026-07-21 09:29:18 +08:00
| Online Upgrade | `system/package/update/install` |
| Dynamic DNS | `ip/cloud/set ddns-enabled=yes` |
| Cloud Backup | `/system/backup/cloud/upload-file action=create-and-upload password=any` |
| Internet Detection | `/interface/detect-internet/set detect-interface-list=all` |
2026-07-21 09:16:27 +08:00
---
2026-07-21 09:29:18 +08:00
## 📚 Resources
2026-07-21 09:16:27 +08:00
2026-07-21 09:29:18 +08:00
- [MikroTik Official Documentation ](https://manual.mikrotik.com/ )
- [Telegram Group ](https://t.me/+99Mw06p3K7NlMmNl )
- [GitHub Source Code ](https://github.com/elseif/MikroTikPatch )
2026-07-21 09:16:27 +08:00
---
2026-07-21 09:29:18 +08:00
## 💖 Sponsors
2026-05-26 06:54:14 +08:00
[](https://dartnode.com "Powered by DartNode - Free VPS for Open Source")
2026-07-21 09:16:27 +08:00
[DartNode(aff) ](https://dartnode.com?aff=SnazzyLobster067 ) | [ZMTO(aff) ](https://console.zmto.com/?affid=1588 ) | [Vultr(aff) ](https://www.vultr.com/?ref=9807160-9J )
2024-07-14 22:16:10 +08:00
2025-09-22 02:23:17 +08:00
2025-07-04 00:26:48 +08:00
2024-06-18 17:46:28 +08:00
2025-01-27 15:17:41 +02:00
2024-06-15 07:18:14 +08:00
2025-09-22 00:34:33 +08:00