Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Jul 2021 23:51:28 +0500
From:      Dmitry Polyakov <polyakov@liltechdude.xyz>
To:        freebsd-questions@freebsd.org
Subject:   Wireguard_kmod strange behaviour with config from Linux
Message-ID:  <877dhimbbj.fsf@liltechdude.xyz>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
Hello!

Some time's ago I decided to move all what I want from server from
Ubuntu to FreeBSD.  All passed normally but not VPN. When I tried to
simply copy wireguard server config and change Endpoint value in client
config to server IP, I get that I could only connect to the server (on
the server I could connect to anywhere as always). I think this is DNS
trouble or something, because `ping freebsd.org` initially wait for some
time and after constantly return network error. FreeBSD 13,
wireguard-kmod 0.0.20210606_1. I setup wireguard simply by copypast
config and run "service wireguard start". Client is GNU/Linux
(network-manager). All followed configs works perfectly on linux
server. Sorry for my bad english.

-- server config --
[Interface]
Address = 10.66.66.1/24,fd42:42:42::1/64
ListenPort = 62346
PrivateKey = (private key)

[Peer]
PublicKey = (public key)
PresharedKey = (psk key)
AllowedIPs = 10.66.66.2/32,fd42:42:42::2/128


-- client config --
[Interface]
PrivateKey = (private key)
Address = 10.66.66.2/32,fd42:42:42::2/128
DNS = 94.140.14.14,94.140.15.15

[Peer]
PublicKey = (public key)
PresharedKey = (psk key)
Endpoint = (endpoint):62346
AllowedIPs = 0.0.0.0/0,::/0

--
魔法少女リルテチヅデですよ。

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----

iQJNBAEBCgA3FiEEAbBRoIRjq1x/LhdPuT3EB6aJ2cMFAmD5vjAZHHBvbHlha292
QGxpbHRlY2hkdWRlLnh5egAKCRC5PcQHponZw3pBD/4+yasFdev3hqZHV1/pPbjZ
woec1AT4M3bVK3gU1cszPXpCaQR9w8JsYaLwQk5Rjm0flUDB56tie8e0Iof1aAdU
vPe8WjH9I7UZy8qVlXLKC63SD07rtEfOH5gicB4Ybfh5qj0d249K95va0ZYrzNN0
ImkHsW34pLMqGoFVdmQ9lZ53iAKdQQt+srjusgFg567Jbv9UL2//O2ArFQlMvAmk
9SZmc5v+4tN3XLnIFo/YwO/R5VpBl5UTN2kGvHQ5m4Fiqwcl/+ACWfHx4fqw8VP+
qcXGC7BjovNrwqdvZ01IcAxRu4lXWrNP4B8/vvYV79VlQtGzfKM5hkbOfgQ59GeV
sgXDvjyU+VfXpOiTcYFBJ+OhtXUzdTv+5Xsy1ZijZChTNuHJ6qWjnnVH5dytCRjy
rezAhvGaGOXeRJ6n9htgxPVUV5fOyomRJiKtOjMJmwTiL5NxxZjEGbkkf2TL6fXf
S/zx8ojctzEEd4N1g+nUoxFC1z69AX/mtZxAakV6QqGZZ+PNMzP+HLR4n3VrJYW6
mcuBrO/38Rf/hvcvn3HJPcAoI8IRwmDhlt4sBI3vgV7202ctWxkFT338gdwTi1lx
QU7YV/CmD52W63rhWGi37WFW8JqGXVxvVrkkE7Hl8xP+Nfo6X6puWt/zxWZn7keV
IpHIcB3EvONPsvpWj2KFiA==
=LE+G
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?877dhimbbj.fsf>