Wireguard_kmod strange behaviour with config from Linux

Dmitry Polyakov polyakov at liltechdude.xyz
Thu Jul 22 18:51:50 UTC 2021


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

--
魔法少女リルテチヅデですよ。
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 869 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20210722/607fb22e/attachment.sig>


More information about the freebsd-questions mailing list