| Server: | Port: | Interface Name: |
| Net: | 1stIP: | Clients: |
| Allowed Net(s): | DNS: | |
| ServerPrivateKey: | ||
| ServerPublicKey: | ||
This tool allows you to quickly generate complete WireGuard VPN configurations for MikroTik routers and multiple client devices. Simply enter your server details, network information, and the number of clients you need. The tool will automatically create unique key pairs, peer settings, and ready-to-use configuration files for each user.
You can preview the generated configuration directly in the browser and download client files individually or all at once in a ZIP package. It also provides QR codes for easy import into mobile WireGuard apps.
Whether you’re setting up a small remote-access VPN or deploying multiple peers, this generator helps automate the process, reduce errors, and speed up configuration with just a few clicks.
This tool helps streamline the WireGuard setup process and provides ready-to-use configurations with minimal effort.
| Server: | Port: | Interface Name: |
| Net: | 1stIP: | Clients: |
| Allowed Net(s): | DNS: | |
| ServerPrivateKey: | ||
| ServerPublicKey: | ||
Server config {{ server }}:{{ port }}
/interface wireguard
add listen-port={{ port }} mtu=1420 name={{interfacename}} private-key="{{ serverkeys.privateKey }}"
/ip firewall filter
add action=accept chain=input comment="Allow Wireguard from All" dst-port={{port}} protocol=udp
add action=accept chain=input comment="Allow DNS from Wireguard Users" dst-port=53 in-interface={{interfacename}} protocol=udp
/ip address
add address={{ network }}.1/24 comment="Wireguard Interface" interface={{ interfacename }} network={{ network }}.0
/interface wireguard peers
{{ line }}
add allowed-address={{ network }}.{{ client }}/32 comment="{{ value.name }}" endpoint-address={{ network }}.{{ client }} interface={{interfacename}} public-key="{{ value.publicKey }}" preshared-key="{{ value.preSharedKey }}"
Client configs (first ip: {{network}}.{{startip}}, count: {{ clientcount }})
[Interface]
## {{ value.name }}
Address = {{ network }}.{{ client }}/32
PrivateKey = {{ value.privateKey }}
DNS = {{ dns }}
[Peer]
PublicKey = {{ serverkeys.publicKey }}
PreSharedKey = {{ value.preSharedKey }}
AllowedIPs = {{ network }}.1/32,{{allowednets}}
Endpoint = {{ server }}:{{ port }}
PersistentKeepalive = 10
All rights reserved