Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Jan 2021 09:42:41 +0300
From:      Vasily Postnicov <shamaz.mazum@gmail.com>
To:        =?UTF-8?B?w5Z6a2FuIEtJUklL?= <ozkan.kirik@gmail.com>
Cc:        freebsd-net@freebsd.org
Subject:   Re: wireguard if_wg manual page is missing? How to use?
Message-ID:  <CADnZ6B=Ga3-3nS9d63DMJaRvL94XQkj=DA%2BxwLrWNJgA2epj2A@mail.gmail.com>
In-Reply-To: <CAAcX-AGuovhdJRwCs5ypA=GC-X7yL8H=6OB30xebQjsGBZgnQQ@mail.gmail.com>
References:  <CAAcX-AGuovhdJRwCs5ypA=GC-X7yL8H=6OB30xebQjsGBZgnQQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello.

I discovered that public key derivation in if_wg is not working
properly. You will need to apply the following patch:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D252894 and reinstall
the kernel (I tested it with Mullvad VPN).
Then you must create WireGuard interface like so:
ifconfig wg0 create private-key <Your private key here> listen-port
12345 # 12345 is just a random unused port
Then add a peer (endpoint):
ifconfig wg0 peer public-key <Peer's public key> allowed-ips 0.0.0.0/0
allowed-ips <more allowed IPs> endpoint <Endpoint's IP:port>
Then assign IP addres to wg0:
ifconfig wg0 inet <Your IP address in private network>

After these steps wg0 should go up. Then configure your firewall and
add new routes as you wish. Here is my configuration for Mullvad:
https://lists.freebsd.org/pipermail/freebsd-net/2021-January/057385.html
Do not forget to patch the kernel, otherwise it will not work.

=D0=B2=D1=82, 26 =D1=8F=D0=BD=D0=B2. 2021 =D0=B3. =D0=B2 09:12, =C3=96zkan =
KIRIK <ozkan.kirik@gmail.com>:
>
> Hello,
>
> I'm running FreeBSD 13-ALPHA2 amd64.
> But no such manual page was found: if_wg or wg.
> Is it possible to share how to use and how to debug connection status of
> if_wg kernel module?
>
> Thanks
> _______________________________________________
> freebsd-net@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADnZ6B=Ga3-3nS9d63DMJaRvL94XQkj=DA%2BxwLrWNJgA2epj2A>