[Question or Feature Request] Any wg1.conf option to limit peer IP as 1-to-1?

KeXianbin(http://diyism.com) kexianbin at diyism.com
Mon Dec 17 08:53:09 CET 2018

On my machine(, does the option "AllowedIPs =" in
wg1.conf take effects in both input and ouput directions?
It seems that "AllowedIPs =" only added ip route rule
" dev wg1  scope link" on my side,
can it prevent the peer to send packets to my from
On Mon, Dec 17, 2018 at 3:40 PM Jason A. Donenfeld <Jason at zx2c4.com> wrote:
> On Mon, Dec 17, 2018 at 2:42 AM KeXianbin(http://diyism.com)
> <kexianbin at diyism.com> wrote:
> > AllowedIPs =
> > [...]
> > If I want to limit the peer to a fixed IP, any wg1.conf
> > OPTION to config it?
> >
> > Currently,  the peer can set any IP, for example, and can
> > send packets to my from
> Setting that peer's allowedips to should accomplish
> exactly what you want; that peer is _only_ allowed to send packets as
> that IP. If the peer attempts to send packets as, WireGuard
> should reject those packets. If it doesn't, that sounds like a major
> bug.

More information about the WireGuard mailing list