Jump to content

Question

Posted

KeeneticOS v4.0.2 (4.00.C.2.0-1) [KN-1912] При восстановлении настроек из файла создается заново приватный ключ WireGuard. Т.е. на второй стороне нужно заново прописывать вновь созданный при восстановлении настроек ключ. 

5 answers to this question

Recommended Posts

  • 0
Posted

Сейчас тоже с этим столкнулся. У меня много устройств в wireguard сети. Неужели нет варианта достать ключ со старого роутера?

  • 0
Posted (edited)
1 час назад, ssedov сказал:

Сейчас тоже с этим столкнулся. У меня много устройств в wireguard сети. Неужели нет варианта достать ключ со старого роутера?

А "show interface Wireguard0" это не то

Скрытый текст
....
"wireguard": {
        "public-key": "Ii..............KSw=",
        "listen-port": 65104,
        "status": "up",
        "peer": [
            {
                "public-key": "5+Pfg....DD8=",
                "local": "10.10.98.13",
                "local-port": 65104,
                "via": "GigabitEthernet0/Vlan9",
....

 

 

Edited by vasek00
  • 0
Posted
В 16.12.2023 в 22:35, vasek00 сказал:

А "show interface Wireguard0" это не то

Там нет приватных ключей в выводе

  • 0
Posted
12 часа назад, ssedov сказал:

Там нет приватных ключей в выводе

Тогда

/opt/home # opkg list | grep wireguard
wireguard-go - v0.0.20230223-1 - This is an implementation of WireGuard in Go.
wireguard-tools - 1.0.20210914-2 - WireGuard is a novel VPN that runs inside the Linux Kernel and utilizes state-of-the-art cryptography. It aims to be faster, simpler, leaner, and more useful than IPSec, while avoiding the massive headache. It intends to be considerably more performant than OpenVPN.  WireGuard is designed as a general purpose VPN for running on embedded interfaces and super computers alike, fit for many different circumstances. It uses UDP.  This package provides the userspace control program for WireGuard, `wg(8)`, a netifd protocol helper, and a re-resolve watchdog script.
/opt/home # wg show --help
Usage: wg show { <interface> | all | interfaces } [public-key | private-key | listen-port | fwmark | peers | preshared-keys | endpoints | allowed-ips | latest-handshakes | transfer | persistent-keepalive | dump]
/opt/home # 
/opt/home # wg show nwg4 public-key
JvU.......CkM=
/opt/home # wg show nwg4 private-key
kIW.......aXw=
/opt/home # 

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

This site uses cookies. By clicking "I accept" or continuing to browse the site, you authorize their use in accordance with the Privacy Policy.