ROUTER SCRIPTING HUB

Mikrotik Automation Scripts

Expertly written scripts to automate, optimize, and secure your ISP network.
Copy, Paste, and Relax.

Important Note / Zaroori Elaan

All scripts below are 100% FREE for self-service (DIY). You can download and install them yourself.
(Yeh tamam scripts bilkul muft hain. Aap khud download kar ke install kar sakte hain.)


Need Professional Help? If you want us to install and configure these for you, Service Charges will apply.
Contact Support on WhatsApp

How to Install? (Tareeqa)

1
Download Script

Sab se pehlay niche diye gaye button se .rsc file download karein.

2
Upload to Router

Apna Winbox open karein aur "Files" menu mein jayen. Downloaded file ko wahan Drag & Drop karein.

3
Run Command

Ab "New Terminal" open karein aur yeh command likh kar Enter dabayen:

/import file-name.rsc
Watch Video Tutorial
Router Migration
/export file=backup_config
/system backup save name=full_backup
# Clean sensitive data...
UTILITY

Transfer all PPPoE users, Queues, and IP settings from old Routerboard to new CCR seamlessly.

Anti-Hack Firewall
/ip firewall filter add chain=input
src-address-list=!Admin_IPs action=drop
# Block Port Scanners...
SECURITY

Block brute-force attacks, DNS amplification, and unauthorized Winbox access. Includes Anti-Lockout.

Network Straightener
/ip firewall mangle add action=mark-connection
# Optimize TCP MSS for gaming...
/queue tree add name="Global"
PERFORMANCE

Fix lag issues, stabilize ping, and prioritize gaming traffic over heavy downloads automatically.

One-Click Setup
/ip dns set servers=8.8.8.8
/system clock set time-zone-name=Asia/Karachi
/ip service set www disabled=yes
SETUP

Initial config for new routers. Sets up NTP, DNS, Timezone, and disables unused services in 5 seconds.

Expired User Redirect
/ip firewall nat add action=dst-nat
chain=dstnat src-address-list=Expired_Users
to-addresses=192.168.10.1
BILLING

Automatically redirects unpaid customers to a "Bill Due" HTML page instead of cutting internet.

Auto Failover & Sync
/tool netwatch add host=8.8.8.8
up-script="Enable_Primary"
# Recursive Routing...
REDUNDANCY

Automatically switch internet lines (WAN1 -> WAN2) if one goes down. Requires 100% uptime.

Night Unlimited
/system scheduler add name="Start_Night"
start-time=01:00:00 on-event="Double_Speed"
# Boost Bandwidth
MARKETING

Scheduler to automatically double user speeds from 1 AM to 8 AM. Great for attracting gamers.

Auto Email Backup
/tool e-mail send to="admin@gmail.com"
subject="Daily Backup" file=backup.rsc
# SMTP Configured
MAINTENANCE

Sends router configuration backup to your email daily at 3 AM. Never lose data again.

Hotspot Auto-Config
/ip hotspot setup
interface=bridge1
# Custom Login Page Integrated
HOTSPOT

Complete Hotspot configuration with Profiles, Users, and Walled Garden for unblocked sites.