Trying out WireGuard's kernel support in OpenBSD's -current snapshots

johnw johnw.mail at gmail.com
Thu Jun 25 06:48:14 CEST 2020


Hi List,

I just migrate existing Linux wireguard server to OpenBSD wireguard server.

below is what I did.


Upgrade to recent snapshot and pkg_add wireguard-tools

--------------------------------------------
OpenBSD 6.7-current (GENERIC.MP) #297: Wed Jun 24 17:15:28 MDT 2020
deraadt at amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
--------------------------------------------

then cp -r all /etc/wirequard from linux to openbsd
create /etc/hostname.wg0

---------------- /etc/hostname.wg0 ----------
inet 192.168.44.1 255.255.255.0 NONE \
description "interface on wg0 (VPN)"
up

!/usr/local/bin/wg setconf wg0 /etc/wireguard/wg0.conf
---------------------------------------------

sh /etc/netstart wg0
config corresponding nat on pf.conf and sysctl net.inet.ip.forwarding=1

Done.

Thanks Jason & Matt.

-- 
Key fingerprint: CDB3 6C62 254B C088 1E5D DD32 182C 97DB CF2C 80AC


More information about the WireGuard mailing list