Page MenuHomeVyOS Platform

wirguard: implement 'set interfaces wireguard wg01 peer name...'
Closed, ResolvedPublicFEATURE REQUEST

Description

set interfaces wireguard wg01 address '10.1.1.1/24'
set interfaces wireguard wg01 description 'wg01-test'
set interfaces wireguard wg01 listen-port '12345'
set interfaces wireguard wg01 peer node1 key z80pwzfFfwfte3p06iIVVBDPfUL+MSH0dL9I33nJzTo=
set interfaces wireguard wg01 peer node1 allowed-ips '10.2.2.0/24'
set interfaces wireguard wg01 peer node1 endpoint '192.168.0.113:12345'
set interfaces wireguard wg01 peer node2 key 7QQU75St+Kr4+B097E7qzMv0PbBtbvLCyGCpTwRxBEI=
set interfaces wireguard wg01 peer node2 allowed-ips '10.1.1.0/24'
set interfaces wireguard wg01 peer node2 endpoint '192.168.0.130:12345'
set protocols static interface-route 10.2.2.0/24 next-hop-interface wg01

Details

Difficulty level
Unknown (require assessment)
Version
-
Why the issue appeared?
Will be filled on close

Related Objects

StatusSubtypeAssignedTask
ResolvedFEATURE REQUESThagbard
ResolvedFEATURE REQUESThagbard

Event Timeline

hagbard changed the task status from Open to In progress.Aug 22 2018, 4:58 PM
hagbard triaged this task as Normal priority.
hagbard created this task.

@runar, it's gonna look like the below:

set interfaces wireguard wg01 address '10.2.0.1/24'
set interfaces wireguard wg01 listen-port '12345'

set interfaces wireguard wg01 peer TESTPEER allowed-ips '1.2.3.4/24'
set interfaces wireguard wg01 peer TESTPEER allowed-ips '4.3.2.1/24'
set interfaces wireguard wg01 peer TESTPEER endpoint '127.0.0.1:1024'
set interfaces wireguard wg01 peer TESTPEER peer-pubkey 'QIgKRXNMGm5IM3EwdK3W7oWYrBRh7eDwqi/pGe+sAA4='

https://github.com/hagbard-01/vyos-1x/tree/T791

@hagbard
Thats much better! :D
"peer" in "peer-pubkey" is also a bit redundant, just call it "pubkey"

Other then that its thumbs-up from me :)