Date: Tue, 26 Jan 2021 10:04:24 +0300 From: =?UTF-8?B?w5Z6a2FuIEtJUklL?= <ozkan.kirik@gmail.com> To: Vasily Postnicov <shamaz.mazum@gmail.com> Cc: freebsd-net@freebsd.org Subject: Re: wireguard if_wg manual page is missing? How to use? Message-ID: <CAAcX-AFry4FmDG_XVDVW0BRwQJ7XvPbsuC-98vFMj45LTGR=vA@mail.gmail.com> In-Reply-To: <CADnZ6B=Ga3-3nS9d63DMJaRvL94XQkj=DA%2BxwLrWNJgA2epj2A@mail.gmail.com> References: <CAAcX-AGuovhdJRwCs5ypA=GC-X7yL8H=6OB30xebQjsGBZgnQQ@mail.gmail.com> <CADnZ6B=Ga3-3nS9d63DMJaRvL94XQkj=DA%2BxwLrWNJgA2epj2A@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Thank you so much On Tue, Jan 26, 2021 at 9:42 AM Vasily Postnicov <shamaz.mazum@gmail.com> wrote: > 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 <http://0.0.0.0/0allowed-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=96zka= n 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 o= f > > 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?CAAcX-AFry4FmDG_XVDVW0BRwQJ7XvPbsuC-98vFMj45LTGR=vA>