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'