Development discussion of WireGuard
 help / color / mirror / Atom feed
From: johnw <johnw.mail@gmail.com>
To: wireguard@lists.zx2c4.com
Cc: jason@zx2c4.com
Subject: Re: Trying out WireGuard's kernel support in OpenBSD's -current snapshots
Date: Thu, 25 Jun 2020 12:48:14 +0800	[thread overview]
Message-ID: <8b294585-d716-c0ff-187c-31dd53ec91b5@gmail.com> (raw)
In-Reply-To: <20200624060722.GA686091@zx2c4.com>

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@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

      reply	other threads:[~2020-06-25  4:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-24  6:07 Jason A. Donenfeld
2020-06-25  4:48 ` johnw [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8b294585-d716-c0ff-187c-31dd53ec91b5@gmail.com \
    --to=johnw.mail@gmail.com \
    --cc=jason@zx2c4.com \
    --cc=wireguard@lists.zx2c4.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).