RouterOS CHR VPS Setup Guide
Secure a MikroTik Cloud Hosted Router, build a basic firewall, set up WireGuard and check your licence level.
A RouterOS server is a router on the open internet, which makes it a popular target. Secure it first, and check your licence, which determines how fast it can send data.
- Works on: RouterOS 7 CHR
- Minimum server: 256 MB of RAM and 128 MB of disk
- Sold on: our Global plans
Understand CHR licensing
CHR's speed depends on its licence level from MikroTik. Check this before relying on the server.
- Free: limited to 1 Mbps upload per interface
- P1: limited to 1 Gbps per interface
- P10: limited to 10 Gbps per interface
- P-Unlimited: no limit
Connect to your router
Use WinBox, or connect over SSH with the login details from your order.
ssh admin@YOUR_SERVER_IPCheck your version and licence
See what you are running before making any change.
/system resource print
/system license printUpdate RouterOS
Older versions have well-known vulnerabilities, so update before anything else. The router restarts when the update installs.
/system package update check-for-updates
/system package update installReplace the default admin
Create your own full-access account. Log in with it to confirm that it works, then disable admin.
/user add name=deploy group=full password=CHOOSE_A_LONG_PASSWORD
/user disable adminTurn off services you do not use
Close old protocols, and limit management to your own address.
If your own address changes, use the browser console in your dashboard to correct these settings.
/ip service disable telnet,ftp,www,api,api-ssl
/ip service set winbox address=YOUR_OWN_IP/32
/ip service set ssh address=YOUR_OWN_IP/32Add an input firewall
A router has no firewall rules until you add them. Order matters, because rules run from the top, so add your own address before the final drop rule.
Make sure the rule for your own address is correct before adding the final drop, or you will lock yourself out.
/ip firewall filter
add chain=input connection-state=established,related action=accept
add chain=input connection-state=invalid action=drop
add chain=input protocol=icmp action=accept
add chain=input src-address=YOUR_OWN_IP action=accept
add chain=input action=dropSet up a WireGuard interface
RouterOS 7 includes WireGuard. Allow its port above the final drop rule. Use place-before to control the position.
/interface wireguard add name=wg0 listen-port=13231
/ip address add address=10.10.0.1/24 interface=wg0
/ip firewall filter add chain=input protocol=udp dst-port=13231 action=accept place-before=0
/interface wireguard printBack up your configuration
Export a text copy that you can restore later, and store it outside the router.
/export file=config-backup
/file printGet a server for this guide
MikroTik RouterOS 7 plans run everything in this guide, from $5.52/mo.
See MikroTik RouterOS 7 plansTable of Contents
- 1.1. Understand CHR licensing
- 2.2. Connect to your router
- 3.3. Check your version and licence
- 4.4. Update RouterOS
- 5.5. Replace the default admin
- 6.6. Turn off services you do not use
- 7.7. Add an input firewall
- 8.8. Set up a WireGuard interface
- 9.9. Back up your configuration
RouterOS CHR VPS Setup Guide: Frequently Asked Questions
Quick answers to common questions.
How do I secure a MikroTik CHR router on a VPS?
Secure a MikroTik CHR router by updating RouterOS first, replacing the default admin account, and turning off services you do not use. Then limit WinBox and SSH to your own address, add an input firewall that ends with a drop rule, and export a configuration backup. A RouterOS server sits on the open internet, so finish these steps before you rely on it.
Why is my RouterOS CHR upload speed limited to 1 Mbps?
Your RouterOS CHR is probably on the free licence, which limits upload to 1 Mbps per interface. CHR speed depends on the licence level from MikroTik: P1 allows up to 1 Gbps per interface, P10 up to 10 Gbps, and P-Unlimited has no limit. Run /system license print to see which level your router has before you rely on it for real traffic.
How do I update RouterOS 7 on a CHR VPS?
Update RouterOS 7 on a CHR VPS by running /system package update check-for-updates and then /system package update install. The router restarts when the update installs, so expect a short disconnect. Do this before any other change, because older RouterOS versions have well-known vulnerabilities, and check your current version first with /system resource print.
How do I replace the default admin user in RouterOS?
Create your own full-access user, log in with it, and only then disable admin. In RouterOS the command is /user add name=deploy group=full password=CHOOSE_A_LONG_PASSWORD, followed by /user disable admin. The name deploy is only an example. Bots try the admin name first, so removing it from use cuts out most automated login attempts against your CHR.
In what order should RouterOS input firewall rules go?
RouterOS firewall rules run from the top down, so accept established and related connections first, drop invalid ones, allow ICMP, accept your own address, and put the final drop rule last. A CHR router has no input rules until you add them. Check that the rule for your own address is correct before adding the drop, or you will lock yourself out.
How much RAM and disk does a RouterOS CHR need?
MikroTik lists 256 MB of RAM and 128 MB of disk as the minimum for a RouterOS 7 CHR, which is tiny next to a normal operating system. Even the smallest Global plan has far more than that, so choose a plan for its CPU and network capacity rather than its disk. Remember that throughput also depends on your CHR licence level, not only on the size of the server.
What do I do if I lock myself out of my RouterOS CHR?
Open the browser console in your NodexVPS dashboard and fix the settings from there. The console works even when WinBox and SSH are blocked, so you can correct a wrong firewall address rule or a service restriction on your RouterOS CHR. This is also the fix when your own public address changes after you have limited management access to it.
How do I back up a MikroTik CHR configuration?
Run /export file=config-backup to save a text copy of your MikroTik CHR configuration, then check it exists with /file print. Download the file and store it somewhere other than the router, so you can restore it if the server is rebuilt. A text export is easy to read and compare, which helps when you want to see what changed.
Explore More VPS Hosting Options
Find the right server for your project.