Server: |
Port: |
Interface Name: |
Net: |
1stIP: |
Clients: |
Allowed Net(s): |
||
ServerPrivateKey: |
||
ServerPublicKey: |
Server: |
Port: |
Interface Name: |
Net: |
1stIP: |
Clients: |
Allowed Net(s): |
||
ServerPrivateKey: |
||
ServerPublicKey: |
Server config {{ server }}:{{ port }}
Mikrotik
/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
/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 }}"
Default
[Interface]
Address = {{ network }}.1/24
ListenPort = {{ port }}
PrivateKey = {{ serverkeys.privateKey }}
# PublicKey = {{ serverkeys.publicKey }}
# Server = {{ server }}
{{ line }}
[Peer]
## {{ value.name }}
AllowedIPs = {{ network }}.{{ client }}/32
PublicKey = {{ value.publicKey }}
# PrivateKey = {{ value.privateKey }}
Client configs (first ip: {{network}}.{{startip}}, count: {{ clientcount }})
[Interface]
## {{ value.name }}
Address = {{ network }}.{{ client }}/24
PrivateKey = {{ value.privateKey }}
[Peer]
PublicKey = {{ serverkeys.publicKey }}
AllowedIPs = {{ network }}.1/32,{{allowednets}}
Endpoint = {{ server }}:{{ port }}
PersistentKeepalive = 10
Download Links:
Import server config