/interface/wireguard/wg-export

当前显示英文原文,切换到「中文」可查看译文。

wg-export

Export the selected WireGuard interface and its peers in standard WireGuard configuration format. Select the interface with [find name=...]. The export does not include interface IP addresses, routes or firewall...


interface/wireguard/wg-export

Type: Command

Export the selected WireGuard interface and its peers in standard WireGuard configuration format. Select the interface with [find name=...]. The export does not include interface IP addresses, routes or firewall rules. For an executable RouterOS script, use the regular /interface/wireguard/export command. See WireGuard.

ArgumentTypeDescription
filefileName of the file to export the selected WireGuard interface and its peers to. The file contains [Interface] and [Peer] sections and the private key; store it securely.