Page MenuHomeVyOS Platform

generate wireguard client command prompt has some error
Closed, InvalidPublic

Description

Dear Developers,
Today I tried to generate wireguard cline configuration, it was an awesome feature. you know what I didn't need to configure it manually. But i also find a little bit bug here . Seem lie the command line prompt duplicat clien addres.

run generate wireguard client-config ted interface wg01 server 20.249.23.245 address 172.16.134.5
Possible completions:
  <Enter>       Execute the current command
  address       IPv4/IPv6 address used by client


[edit]
run generate wireguard client-config ted interface wg01 server 20.249.23.245 address 172.16.134.5 address
Possible completions:
  <x.x.x.x>     IPv4/IPv6 address used by client
  <h:h:h:h:h:h:h:h>

vyos@vyos-host# run generate wireguard client-config ted interface wg01 server 20.249.xxx.xxx address 172.16.134.5 address 172.16.145.5
Possible completions:
  <Enter>       Execute the current command

Details

Version
1.3.1S1 release
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Unspecified (please specify)

Event Timeline

dongjunbo created this object in space S1 VyOS Public.
dongjunbo updated the task description. (Show Details)
Viacheslav subscribed.

Works fine VyOS 1.3-stable-202308240442

vyos@r1# run generate wireguard client-config c1 interface wg0 server 203.0.113.1 address 10.0.0.2/32 


WireGuard client configuration for interface: wg0

To enable this configuration on a VyOS router you can use the following commands:

=== VyOS (server) configurtation ===

set interfaces wireguard wg0 peer c1 allowed-ips '10.0.0.2/32'
set interfaces wireguard wg0 peer c1 pubkey '1exxxxxxxxxxxxxxxxxxxxxxxxs='

=== RoadWarrior (client) configuration ===


[Interface]
PrivateKey = aAHxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxGM=
Address = 10.0.0.2/32
DNS = 1.1.1.1

[Peer]
PublicKey = pxxxxxxxxxxxxxxxxxxxxxxxxxxA=
Endpoint = 203.0.113.1:58777
AllowedIPs = 0.0.0.0/0, ::/0
dmbaturin changed the task status from Not Applicable to Invalid.Sep 25 2023, 1:38 PM