Page MenuHomeVyOS Platform
Feed Search

Sep 1 2018

hagbard added a comment to T427: Wireguard support.

@Watcher7 fixed via: https://github.com/vyos/vyatta-cfg-system/pull/75/files, should be in the next rolling iso.

Sep 1 2018, 1:12 AM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
hagbard added a comment to T427: Wireguard support.

@Watcher7 /opt/vyatta/etc/netdevice.... found it, I try

Sep 1 2018, 1:01 AM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)

Aug 31 2018

c-po closed T811: Rewrite 'service dhcpv6-server' in new XML style format as Resolved.
Aug 31 2018, 8:35 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
hagbard added a comment to T427: Wireguard support.

I'm gonna have a look asap, currently a little stuck with private live and preshared keys.

Aug 31 2018, 3:30 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)

Aug 30 2018

Watcher7 added a comment to T427: Wireguard support.

I believe /usr/share/vyos/interface-types.json needs to be patched to handle wireguard interfaces so that they show up in show interfaces. Scratch that, it's there, but they don't seem to appear in show interfaces.

Aug 30 2018, 6:59 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)

Aug 29 2018

c-po added a comment to T733: Regression: Python snmp configuration parser doesn't set 'community6' SNMP fields.

This produces

Aug 29 2018, 8:14 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)

Aug 28 2018

c-po closed T778: Rewrite 'service dhcp-server' in new XML style format as Resolved.
Aug 28 2018, 8:42 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
c-po closed T782: Cleanup dhcp-server configuration, a subtask of T778: Rewrite 'service dhcp-server' in new XML style format, as Resolved.
Aug 28 2018, 8:42 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
c-po closed T782: Cleanup dhcp-server configuration as Resolved.
Aug 28 2018, 8:42 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
c-po closed T806: Update Wiki for new 1.2.0 DHCP syntax changes as Resolved.
Aug 28 2018, 8:41 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
c-po closed T806: Update Wiki for new 1.2.0 DHCP syntax changes, a subtask of T782: Cleanup dhcp-server configuration, as Resolved.
Aug 28 2018, 8:41 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
c-po closed T810: Cant change broadcast-relay service source IP as Resolved.
Aug 28 2018, 8:32 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)

Aug 27 2018

c-po created T806: Update Wiki for new 1.2.0 DHCP syntax changes.
Aug 27 2018, 9:15 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
c-po edited projects for T801: vyos-1x config parser does not support reading string with spaces, added: VyOS 1.2 Crux (VyOS 1.2.0-rc1); removed VyOS 1.2 Crux.
Aug 27 2018, 9:14 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
c-po edited projects for T782: Cleanup dhcp-server configuration, added: VyOS 1.2 Crux (VyOS 1.2.0-rc1); removed VyOS 1.2 Crux.
Aug 27 2018, 9:14 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
c-po edited projects for T778: Rewrite 'service dhcp-server' in new XML style format, added: VyOS 1.2 Crux (VyOS 1.2.0-rc1); removed VyOS 1.2 Crux.
Aug 27 2018, 9:14 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
dmbaturin updated the task description for T805: Drop config compatibility with Vyatta Core older than 6.5.
Aug 27 2018, 8:43 PM · VyOS 1.3 Equuleus (1.3.0-epa1)
c-po added a comment to T805: Drop config compatibility with Vyatta Core older than 6.5.

As stated on IRC I'm fine with the support removal as one can always upgrade through VyOS 1.1.x.

Aug 27 2018, 8:40 PM · VyOS 1.3 Equuleus (1.3.0-epa1)
dmbaturin renamed T805: Drop config compatibility with Vyatta Core older than 6.5 from Drop forward compatibility with Vyatta Core older than 6.5 to Drop config compatibility with Vyatta Core older than 6.5.
Aug 27 2018, 8:37 PM · VyOS 1.3 Equuleus (1.3.0-epa1)
dmbaturin created T805: Drop config compatibility with Vyatta Core older than 6.5.
Aug 27 2018, 8:36 PM · VyOS 1.3 Equuleus (1.3.0-epa1)
hagbard added a comment to T793: wireguard: implement fwmark, pre-shared key .

preshared-key implementation progress: https://github.com/hagbard-01/vyos-1x/tree/T793

Aug 27 2018, 3:40 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)

Aug 26 2018

hagbard added a comment to T793: wireguard: implement fwmark, pre-shared key .

pre-sharedkey is the last item to implement, before I can close this task. everything else has been implemented via https://github.com/vyos/vyos-1x/pull/46.

Aug 26 2018, 7:42 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
hagbard closed T791: wirguard: implement 'set interfaces wireguard wg01 peer name...' as Resolved.

done via: https://github.com/vyos/vyos-1x/pull/46

Aug 26 2018, 7:41 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
hagbard closed T791: wirguard: implement 'set interfaces wireguard wg01 peer name...', a subtask of T427: Wireguard support, as Resolved.
Aug 26 2018, 7:41 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
c-po closed T776: Update VyOS Kernel to latest 4.14.62 as Resolved.
Aug 26 2018, 7:34 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
c-po closed T792: Update VyOS Kernel 4.14 -> 4.18 and iproute2 as Resolved.
Aug 26 2018, 7:34 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
hagbard added a comment to T427: Wireguard support.

@c-po yes, Sir not a problem at all, takes less than 30 secs. to implement. Once I know how to proceed with the sonarcloud issues...

Aug 26 2018, 6:20 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
c-po added a comment to T427: Wireguard support.

Is there still time for a small CLI change?

Aug 26 2018, 6:07 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
c-po edited projects for T558: Configurable Negative TTL caching in forwarder, added: VyOS 1.2 Crux (VyOS 1.2.0-rc1); removed VyOS 1.2 Crux.
Aug 26 2018, 4:34 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc4)
c-po edited projects for T692: TFTP server functionality, added: VyOS 1.2 Crux (VyOS 1.2.0-rc1); removed VyOS 1.2 Crux.
Aug 26 2018, 4:34 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)

Aug 24 2018

hagbard added a comment to T427: Wireguard support.

mtu implementation has been added for review, currently there seem to be a few issues with integration, so if you need it you can rebuilt the package via dpkg-buildbackage -tc -us -uc and download the sources from here: https://github.com/hagbard-01/vyos-1x

Aug 24 2018, 6:57 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
syncer added a comment to T774: Wireguard: Write wiki documentation.

Hey @zx2c4 !
Available out of the box in Rolling and in future LTS releases

Aug 24 2018, 6:28 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc3), Restricted Project
zx2c4 added a comment to T774: Wireguard: Write wiki documentation.

Please let me know what I need to add to wireguard.com/install/ in relation to VyOS's support.

Aug 24 2018, 5:55 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc3), Restricted Project
hagbard added a comment to T427: Wireguard support.

ICMP Type 3, Code 4 messages are generated by the kernel, pmtud is not a wg feature, but I hear you. I see that often that ICMP is filtered away in general and that can create you a lot of grief. It's been always on my list since I started the implementation.

Aug 24 2018, 4:41 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
Watcher7 added a comment to T427: Wireguard support.

Fantastic, thank you for your hard work.
It seems wireguard will handle MTU changes beyond the default 1420 on its interfaces cleanly. Can I suggest that the MTU be made modifiable under set interfaces wireguard wg0 mtu <size>? This would be nice for situations where fragmentation between wireguard peer connections is acceptable.

Aug 24 2018, 3:13 AM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)

Aug 23 2018

hagbard added a comment to T791: wirguard: implement 'set interfaces wireguard wg01 peer name...'.

https://github.com/vyos/vyos-1x/pull/44
I cancelled #43 due to the sonar issues.

Aug 23 2018, 9:12 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
hagbard added a comment to T793: wireguard: implement fwmark, pre-shared key .

https://github.com/vyos/vyos-1x/pull/44

Aug 23 2018, 9:11 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
hagbard renamed T793: wireguard: implement fwmark, pre-shared key from wireguard: implement fwmark, pre-sahred key to wireguard: implement fwmark, pre-shared key .
Aug 23 2018, 7:09 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
hagbard added a comment to T791: wirguard: implement 'set interfaces wireguard wg01 peer name...'.

Staged for review:
https://github.com/vyos/vyos-1x/pull/43

Aug 23 2018, 7:06 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
hagbard changed the status of T793: wireguard: implement fwmark, pre-shared key from Open to In progress.
Aug 23 2018, 6:53 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
hagbard added a comment to T427: Wireguard support.
In T427#18231, @runar wrote:

All nodes are equally alike, the only difference is that one of the parties needs to have a known UDP port number for other peers to connect to.

Aug 23 2018, 4:50 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
hagbard added a comment to T427: Wireguard support.
Aug 23 2018, 4:38 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
runar added a comment to T427: Wireguard support.

I think the best is to use the default from the protocoll.. (autogenerate port if none is specified) 51820 could be a completion help option on the listen-port command

Aug 23 2018, 2:16 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
mrjones added a comment to T427: Wireguard support.

maybe if the listen-port is not specified, it uses the default 51820
the option to chose client/server might be confusing, because it is both

Aug 23 2018, 1:51 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
runar added a comment to T427: Wireguard support.

@c-po, As far as i can see it does not distinguish between server and client mode.
From the manual:

Aug 23 2018, 8:04 AM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
c-po added a comment to T427: Wireguard support.

If there is an official unofficial port, ad wg distinguishes if its running in server or client mode, why not use something like:

Aug 23 2018, 6:32 AM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)

Aug 22 2018

hagbard added a comment to T427: Wireguard support.

interface: wg01
public key: QIgKRXNMGm5IM3EwdK3W7oWYrBRh7eDwqi/pGe+sWF4=
private key: (hidden)
listening port: 44971

Aug 22 2018, 10:57 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
mrjones added a comment to T427: Wireguard support.

51820 is the official unofficial port

Aug 22 2018, 10:24 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
hagbard added a comment to T427: Wireguard support.

@runar I didn't find anything the documentation which mentions a default port. I've made it optional, wg is generating if not set, but I didn't find anything in their code yet, it appears to start at 51820.
Proto is always udp.
If the listen port is not defined, you basically run as client, if it is defined you run as server. The client connects to <endpoint> which is basically IP:port from the server, if the authentication fits, it uses the src port of that client package send sends the answer to taht src ip and src port. I think it have seen it in netlink.c in their src tree. Should be all good now. I'm also almost done with the syntax rewrite, still doing testing, but I expect it to have it ready for release maybe tomorrow.

Aug 22 2018, 10:16 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
runar added a comment to T427: Wireguard support.

@hagbard i actually haven't tried it in real life, only looked at the command syntax'es.

Aug 22 2018, 7:42 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
hagbard added a comment to T791: wirguard: implement 'set interfaces wireguard wg01 peer name...'.

You bet. If you want to follow: https://github.com/hagbard-01/vyos-1x/tree/T791

Aug 22 2018, 7:40 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
runar added a comment to T791: wirguard: implement 'set interfaces wireguard wg01 peer name...'.

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

Aug 22 2018, 7:35 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
hagbard added a comment to T791: wirguard: implement 'set interfaces wireguard wg01 peer name...'.

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

Aug 22 2018, 7:15 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
hagbard changed the status of T791: wirguard: implement 'set interfaces wireguard wg01 peer name...' from Open to In progress.
Aug 22 2018, 4:58 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
hagbard changed the status of T791: wirguard: implement 'set interfaces wireguard wg01 peer name...', a subtask of T427: Wireguard support, from Open to In progress.
Aug 22 2018, 4:58 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
hagbard triaged T791: wirguard: implement 'set interfaces wireguard wg01 peer name...' as Normal priority.
Aug 22 2018, 4:58 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
hagbard added a comment to T427: Wireguard support.

@c-po, @syncer I do appreciate your feedback too of course :).

Aug 22 2018, 4:57 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
hagbard added a comment to T427: Wireguard support.

@runar Thanks a lot for your feedback, yes I was heading into that direction already before I release anything but followed as a guide the implementation here: https://github.com/Lochnair/vyatta-wireguard.

Aug 22 2018, 4:52 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
hagbard added a comment to T742: Replace poptop and xl2tpd with accel-ppp.

Here it is:
https://github.com/vyos/vyos-accel-ppp

Aug 22 2018, 4:42 PM · VyOS 1.3 Equuleus (1.3.0-epa1)
c-po added a comment to T427: Wireguard support.

I agree with syncer and runar.

Aug 22 2018, 11:39 AM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
syncer added a comment to T427: Wireguard support.

I have the same feelings on that

Aug 22 2018, 10:59 AM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
runar added a comment to T427: Wireguard support.

I think that using the key as a peer identifier makes the configuration unreadable its quite hard to identify each peer when you have more than one of them. I would like to se the peer identifier to be a name/description instead and that key is added as a leafNode instead...

Aug 22 2018, 10:58 AM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)

Aug 21 2018

syncer added a comment to T742: Replace poptop and xl2tpd with accel-ppp.

will add you to github org
move repo there, and for it back to your account

Aug 21 2018, 11:06 PM · VyOS 1.3 Equuleus (1.3.0-epa1)
hagbard added a comment to T742: Replace poptop and xl2tpd with accel-ppp.

@syncer how do you get https://github.com/hagbard-01/vyos-accel-ppp into your repo?
It builds the accel-ppp package, which I then later will need for the cli stuff.

Aug 21 2018, 11:02 PM · VyOS 1.3 Equuleus (1.3.0-epa1)
hagbard added a comment to T742: Replace poptop and xl2tpd with accel-ppp.

All right, back here.

Aug 21 2018, 6:50 PM · VyOS 1.3 Equuleus (1.3.0-epa1)
hagbard added a comment to T427: Wireguard support.

Going to leave this task open for a bit, to track bugs and updates which may come our the next couple of days.

Aug 21 2018, 6:42 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
hagbard closed T779: adding /etc/modprobe/wireguard.conf to https://github.com/vyos/vyos-wireguard as Wontfix.

I leave the code section in the wireguard.py script to load the kmod, which works well. However somebody should take care of the vyos-wireguard package, there is also an update available, not an urgent one though.
Once I have time I see that I can fork it from the original source (debian repo sid) and we just add what we need (recompile for our newer kernel). Can also come from the original wireguard source, using git-buildpackage.

Aug 21 2018, 6:41 PM · Rejected
hagbard closed T779: adding /etc/modprobe/wireguard.conf to https://github.com/vyos/vyos-wireguard, a subtask of T427: Wireguard support, as Wontfix.
Aug 21 2018, 6:41 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
hagbard closed T790: wireguard: add status commands as Resolved.
Aug 21 2018, 6:36 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
hagbard closed T790: wireguard: add status commands, a subtask of T427: Wireguard support, as Resolved.
Aug 21 2018, 6:36 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
hagbard added a comment to T774: Wireguard: Write wiki documentation.

@mrjones No prob at all, you are a great help. Thanks for your contribution.

Aug 21 2018, 4:17 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc3), Restricted Project
hagbard added a comment to T427: Wireguard support.

@mrjones, @Lochnair yep, that's correct. I'm not really happy with how the packages and kmods made it to us, it's also not the latest version and i think no one is tracking it. I raised that question in https://phabricator.vyos.net/T779, but no one answered yet. So i may have to contact @dmbaturin via email directly.
Do you guys think I should implement a 'show wireguard version' or something similar?

Aug 21 2018, 4:16 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
Lochnair added a comment to T427: Wireguard support.

@mrjones Seems like it's currently 0.0.20180708, based on this: https://github.com/vyos/vyos-wireguard/blob/current/debian/changelog

Aug 21 2018, 2:55 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
mrjones added a comment to T427: Wireguard support.

What version of Wireguard is it that we are using? Where can I see when it is updated?

Aug 21 2018, 11:17 AM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)

Aug 20 2018

mrjones added a comment to T774: Wireguard: Write wiki documentation.

There is a start, I will adjust it after I can test it out myself!
Things are happening fast.
regarding the syslog documentation, I will have more time to dive into it on thursday/friday. I didn't fiddle with it myself, and I will take it as a learning moment as well.

Aug 20 2018, 11:01 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc3), Restricted Project
hagbard added a comment to T774: Wireguard: Write wiki documentation.

show interfaces wireguard <tab completion> [<enter>]

Aug 20 2018, 10:39 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc3), Restricted Project
mrjones added a comment to T774: Wireguard: Write wiki documentation.

Yes, send a preview, and I can add it to the wiki right away

Aug 20 2018, 10:11 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc3), Restricted Project
mrjones added a comment to T774: Wireguard: Write wiki documentation.

I added the persistent-keepalive.

Aug 20 2018, 10:10 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc3), Restricted Project
hagbard added a comment to T774: Wireguard: Write wiki documentation.

I've added the status commands, once https://github.com/vyos/vyos-1x/pull/39 is merged you should have them in the latest iso. Let me know if you need a preview.

Aug 20 2018, 10:00 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc3), Restricted Project
hagbard changed the status of T790: wireguard: add status commands, a subtask of T427: Wireguard support, from Open to In progress.
Aug 20 2018, 9:59 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
hagbard changed the status of T790: wireguard: add status commands from Open to In progress.

https://github.com/vyos/vyos-1x/pull/39

Aug 20 2018, 9:59 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
hagbard added a comment to T774: Wireguard: Write wiki documentation.

The following has been added:

Aug 20 2018, 5:08 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc3), Restricted Project
hagbard added a comment to T779: adding /etc/modprobe/wireguard.conf to https://github.com/vyos/vyos-wireguard.

Can please anyone answer my questions above? My main concern is that we build ourselves an ugly maintenance nightmare here.

Aug 20 2018, 4:07 PM · Rejected
syncer added a project to T774: Wireguard: Write wiki documentation: Restricted Project.
Aug 20 2018, 2:07 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc3), Restricted Project
alkersan closed T784: Bring back update dns dynamic operation as Resolved.
Aug 20 2018, 6:00 AM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
alkersan closed T784: Bring back update dns dynamic operation, a subtask of T757: Rewrite 'service dns dynamic' in new XML style format, as Resolved.
Aug 20 2018, 6:00 AM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
hagbard changed the status of T774: Wireguard: Write wiki documentation from Open to In progress.
Aug 20 2018, 1:33 AM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc3), Restricted Project
hagbard changed the status of T774: Wireguard: Write wiki documentation, a subtask of T427: Wireguard support, from Open to In progress.
Aug 20 2018, 1:33 AM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
hagbard added a comment to T774: Wireguard: Write wiki documentation.

You want to authenticate your host, not your interfaces. Theoretically, it's possible. If you travel, you carry usually one piece of ID with your passport, to identify yourself.
The listen port is mandatory, the peer endpoint on the server side however is optional. When the client initiates (client needs peer endpoint) the connection and passes the authentication part, the server side finds the way back on the data the client has sent (basically src IP and src port, src port is the clients listen-port by the way, that's why it's mandatory).

Aug 20 2018, 1:33 AM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc3), Restricted Project

Aug 19 2018

mrjones added a comment to T774: Wireguard: Write wiki documentation.

yes, but if I use several interfaces, wg01, wg02, wg03, then should have the option to use a different keypair for each one of them?

Aug 19 2018, 9:02 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc3), Restricted Project
mrjones added a comment to T427: Wireguard support.

Is it supposed to not accept "=" ?

Aug 19 2018, 8:48 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
hagbard added a comment to T774: Wireguard: Write wiki documentation.

Thanks a lot.
The keypair is unique per host, it is used to authenticate and to decrypt the incoming traffic. So for authentication it wouldn't make much sense to deal with multiple keys.
Encryption is done via the public key, which has to come from your peer. So the traffic to a peer is always encrypted with the public key, only the one who has the private key or at least the knowledge of the content of the private key, can decrypt the message/traffic. That's at least the basic idea.
On the server side you basically receive a message encrypted with your public key, which contains the public key for authentication (see the link above and look for DH_PUBKEY(private key) in the code example). So given that, theoretically you only need to store the private key since the public key is always computed during connection initiation. But that would mean in my case, that 'show wireguard pubkey' would have to compute it as well any time you need it to send it to your peers when you create a new tunnel. (wg pubkey < your_private_key will give you the same result).
I just have a native OS api to read a file but would have to call a subprocess to call wg, that's why I store the public key in a file as well, the content is the same.

Aug 19 2018, 7:03 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc3), Restricted Project
mrjones added a comment to T774: Wireguard: Write wiki documentation.

sure thing!

Aug 19 2018, 5:57 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc3), Restricted Project
hagbard added a comment to T774: Wireguard: Write wiki documentation.

It does for me, I probably just need to be white listed.
Would you like to do https://phabricator.vyos.net/T759 as well?
It's syslog configuration, which I rewrote a month or so ago.

Aug 19 2018, 5:45 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc3), Restricted Project
mrjones added a comment to T774: Wireguard: Write wiki documentation.

I will edit it, I missed that it was already implemented,

Aug 19 2018, 5:42 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc3), Restricted Project
hagbard added a comment to T427: Wireguard support.

In case you are interested: https://www.wireguard.com/protocol

Aug 19 2018, 5:40 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
hagbard added a comment to T427: Wireguard support.

I didn't know you are online...

Aug 19 2018, 5:39 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)
mrjones added a comment to T774: Wireguard: Write wiki documentation.

Not completed yet, so I will not close the task.

Aug 19 2018, 5:34 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc3), Restricted Project
hagbard added a comment to T774: Wireguard: Write wiki documentation.

wg pubkey (generates a public key using the private key, for example: wg pubkey < "private key here")
For extra security you can also use a pre-shared key that can be generate with this command:
wg genpsk (this is optional, and the same pre-shared key should be used on both hosts)

Aug 19 2018, 5:31 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc3), Restricted Project
mrjones added a comment to T427: Wireguard support.

set interfaces wireguard wg0 listen-port (optional)

Aug 19 2018, 5:30 PM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)