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
Description
Description
Details
Details
- Version
- -
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | FEATURE REQUEST | hagbard | T427 Wireguard support | ||
Resolved | FEATURE REQUEST | hagbard | T791 wirguard: implement 'set interfaces wireguard wg01 peer name...' |
Event Timeline
Comment Actions
@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='
Comment Actions
@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 :)