Community discussions

MikroTik App
 
shripadrayewar
just joined
Topic Author
Posts: 8
Joined: Wed Aug 09, 2017 6:44 am

Convert Wireguard COnfig

Sat Oct 29, 2022 1:31 pm

Hi All,
Required help with script to to convert Openwrt Wireguard config from file to Mikrotik CLI command.

im using /tool fetch to download config from server and store in a file
Openwrt Syntax1:-

config interface 'wg_mgmnt'
option proto 'wireguard'
list addresses '10.50.0.180/32'
option private_key 'Private_Key'

config wireguard_wg_mgmnt
option persistent_keepalive '25'
option public_key 'Public_Key'
option description 'Management VPN'
option endpoint_port '54321'
option endpoint_host 'Server_IP'
list allowed_ips '10.50.0.1'
list allowed_ips ''
option preshared_key 'Preshared_Key'
option route_allowed_ips '1'

Who is online

Users browsing this forum: No registered users and 12 guests