prefixkit RU

IP & network

MikroTik config generator

A ready script for a MikroTik from scratch: internet via DHCP, static or PPPoE, a second ISP with failover, VLANs with a guest network, a sane firewall, locked-down services, SIP ALG off and CAKE against bufferbloat.

Internet

Local network

VLAN

The first VLAN is a guest network isolated from the main LAN. Tagged traffic arrives on the bridge: set the same VLAN ID on the switch or access point.

Options

Script

The script is built in your browser; passwords are not sent anywhere.

How to apply it

  1. Reset the router without the default configuration: System → Reset Configuration → No Default Configuration. This wipes current settings, so take a backup first.
  2. Connect with WinBox by MAC address (Neighbors tab) and open New Terminal.
  3. Paste the whole script. Or upload the .rsc to Files and run /import file-name=prefixkit-mikrotik.rsc.
  4. Set the admin password (/password), or create your own user and disable admin.

What the script does

Need a VPN to the router? Keys and client configs with QR codes come from the WireGuard generator. To see whether a port is open from outside, use the port check.