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

johnw johnw.mail at
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

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

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

!/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


Thanks Jason & Matt.

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

More information about the WireGuard mailing list