r/WireGuard • • Mar 01 '19

Wireguard-go on linux

I'm on a system where I can't compile a kernel module but do have access to the tun device. (Crostini container on Chrome OS) As such would wireguard-go be a viable option?

Has anyone had success with this?

Any walk-throughs?

A normally setup wireguard server is able to see my connection to it, but I'm getting stuck otherwise.

5 Upvotes

7 comments sorted by

3

u/Swedophone Mar 01 '19

I'm using wireguard-go on my openvz container with success.

Do you see incoming and/or outgoing wireguard packets on the WAN interface?

1

u/satmandu Mar 01 '19

I haven't done a packet trace yet.

Any recommendations on startup scripts?

2

u/Swedophone Mar 01 '19

I'm using /etc/rc.local which works for me. (I couldn't use /etc/network/interfaces since it's overwritten before booting by the openvz host.)

#!/bin/sh -e
wg-quick up wg0

2

u/jaminmc Apr 05 '19

How are you using wg-quick on the OpenVZ host? when I tried installing Wireguard-go on my instance, it doesn't include wg, or wg-quick.

I'm trying to get it to run on a ubuntu 16.04 OpenVZ

1

u/Swedophone Apr 05 '19

I'm running Debian 7 and 9 on my containers and I was able to install wireguard-tools (containing wg and wg-quick) from Debian unstable.

For Ubuntu you should be able to use the PPA which is described in the install instructions on wireguard.com. But install the wireguard-tools package instead of wireguard to avoid building the module. https://launchpad.net/~wireguard/+archive/ubuntu/wireguard

1

u/Daniel15 Jul 03 '19

I'm a bit late to reply, but I just wrote a blog post on using WireGuard on OpenVZ, as I wanted to get it running on a cheap $4/year VPS I've got: https://d.sb/2019/07/wireguard-on-openvz-lxc

1

u/empathicglowkitten Jul 31 '19

Thank you! That was exactly what I was looking for!