admin@script-mikrotik.mywifi.web.id — ScriptBox v1.0
Session: script-mikrotik.mywifi.web.id
Welcome

MikroTik Script Generator

RouterOS script generators for people running community networks (RT RW Net) and local ISPs. Fill in the form, the script appears in the terminal below it, then Copy and paste it into a Winbox New Terminal.

Every MikroTik topic in our videos gets a generator here, so the numbers and interface names can match your own network. Ask for a new generator in the video comments or with the Script Request form.

Always back up first (/export file=backup-before) and turn on Safe Mode before running a script on a router your customers are using.

Generator List
#NameRouterOSDescription
;;; Basics
0 Correct Router Clock: WIB/WITA/WIT Time Zone + NTP v6v7 The router clock always matches the Indonesian time zone, so logs, schedulers, vouchers and customer time limits stay right.
1 Basic Router Setup v6v7 A new router ready for internet: WAN (DHCP/static/PPPoE), LAN bridge, DHCP server, DNS, NAT, clock & NTP.
;;; PPPoE & Hotspot
2 Hotspot Voucher Generator v6v7 Make dozens to hundreds of random hotspot users at once, with a profile and time limit.
3 Isolate Late-Paying Customers + Notice Page v6v7 Customers on the isolation list lose internet and every HTTP page goes to the billing notice; the payment portal still opens.
4 PPPoE Server + Customer Plans v6v7 A complete PPPoE server: IP pool, plan profiles with speed limits, customer accounts and NAT.
;;; Bandwidth & Queue
5 Stop Game Ping Spikes (fq-codel / CAKE) v7 Replace pfifo/default-small queue types with fq-codel or CAKE so ping stays flat when bandwidth is full.
6 Fair Bandwidth Sharing with PCQ + Simple Queue v6v7 One rule for all customers: bandwidth is shared evenly per IP, nobody hogs the line.
;;; Routing & Failover
7 2-ISP Failover with Netwatch ICMP v7 Switch to the backup ISP only when the main one is really down (e.g. 4 of 5 pings lost), no flapping.
8 Recursive Failover (Checks the Internet, Not Just the Modem) v6v7 Switch ISPs when the internet is down even while the modem/gateway is still up, with no script, on v6 and v7.
9 PCC Load Balancing for 2-4 ISPs + Failover v6v7 Combine several ISPs: connections are spread per customer IP, and when one ISP goes down its traffic moves to another.
10 Port Forwarding (DST-NAT) v6v7 Open access from the internet to a CCTV, server or router inside the LAN, with optional hairpin NAT.
11 Route Chosen IPs/Customers Through a Chosen ISP (PBR) v6v7 Chosen customers, servers or networks always go out through the ISP you pick; the rest keep the main path.
;;; Firewall & Security
12 Stop NetCut & Rogue Static IPs (ARP Reply-Only) v6v7 Only devices that got an IP from DHCP (or are listed) can use the network; fake ARP and self-assigned IPs do not work.
13 Anti Tethering / No Hotspot Sharing (TTL) v6v7 Stop voucher customers from sharing their connection to other devices through their phone's hotspot.
14 Block Gambling, Ad & Other Sites via DNS v6v7 Blocked domains cannot be opened from the customer network; on v7 the gambling/ad lists update themselves from the internet (adlist).
15 Router Hardening (Close Holes from the Internet) v6v7 Turn off unused services, limit Winbox/SSH to the admin network, close router access from the WAN.
16 Port Knocking: Winbox/SSH Closed Until You Knock v6v7 The Winbox/SSH ports are invisible from the internet; they only open for your IP after knocking on secret ports in order.
;;; Monitoring
17 Automatic Backup Sent by Email v6v7 The router emails its backup file and .rsc export every day/week, so the configuration is safe even if the router breaks or is reset.
18 Netwatch Alerts to Telegram v6v7 Get a Telegram message when an AP, OLT, server or the ISP link goes down and comes back.
19 itemsnewest: Route Chosen IPs/Customers Through a Chosen ISP (PBR)
About

The generators here follow our videos: every MikroTik and community-network topic comes with a generator you can adjust yourself, free and without signing up.

Run by the MyWifi Next team, a billing and management app for community networks and ISPs.

MikroTik, RouterOS and Winbox are trademarks of MikroTik SIA. This site is not affiliated with MikroTik. Scripts are provided as is; use them at your own risk.